YUNOVA · Ethical Hacking

Module 2: Building a lab

Notes for offline study · 30 November 2026

VirtualBox or VMware

Key points

  • Virtualization से आप एक ही computer पर कई अलग operating systems को virtual machines (VM) के रूप में चला सकते हैं।
  • VirtualBox free और open-source है; VMware Workstation भी lab के लिए लोकप्रिय विकल्प है।
  • VM host computer से अलग रहती है, इसलिए lab में गलती होने पर भी आपका असली system सुरक्षित रहता है।
  • VM चलाने के लिए BIOS/UEFI में hardware virtualization (Intel VT-x या AMD-V) चालू होना चाहिए और पर्याप्त RAM होनी चाहिए।

Installing Kali Linux in a VM

Key points

  • Kali Linux एक Debian-based distribution है जिसमें penetration testing के tools पहले से installed आते हैं।
  • Kali की official website से ready-made VirtualBox/VMware image या installer ISO मिलती है; download सिर्फ़ official source से करें।
  • VM को कम से कम 2 GB RAM (बेहतर 4 GB) और 20 GB से ज़्यादा disk देना ठीक रहता है।
  • Install के बाद system update करें और default password बदल दें।

Installing a vulnerable target: DVWA and Metasploitable

Key points

  • DVWA (Damn Vulnerable Web Application) जानबूझकर कमज़ोर बनाया गया PHP/MySQL web app है, जिस पर web attacks सीखे जाते हैं।
  • DVWA में security level (low, medium, high, impossible) बदलकर आप देख सकते हैं कि defence कैसे attack को रोकता है।
  • Metasploitable 2 जानबूझकर vulnerable Linux VM है, जिसका इस्तेमाल network services और exploitation सीखने में होता है।
  • इन machines को कभी internet पर expose न करें; इन्हें सिर्फ़ isolated lab network में रखें।

Host-only and NAT networking for a safe lab

Key points

  • NAT mode में VM host के ज़रिए internet तक पहुँचती है, पर बाहर का network सीधे VM तक नहीं पहुँच पाता।
  • Host-only network में VMs सिर्फ़ आपस में और host से बात कर सकती हैं, internet से नहीं।
  • Vulnerable targets जैसे Metasploitable को host-only या internal network में रखें ताकि वे बाहर expose न हों।
  • Bridged mode VM को आपके असली LAN पर डाल देता है, इसलिए vulnerable machines के लिए इससे बचें।

Snapshots

Key points

  • Snapshot किसी VM की उस समय की पूरी स्थिति save कर लेता है।
  • कोई risky काम करने से पहले snapshot लें; कुछ टूटे तो कुछ seconds में पुरानी स्थिति पर लौट सकते हैं।
  • Fresh install के बाद एक 'clean' snapshot रखें, ताकि हर practice के बाद target को नया जैसा कर सकें।
  • Snapshots disk space लेते हैं, इसलिए पुराने और बेकार snapshots हटाते रहें।

TryHackMe and Hack The Box accounts

Key points

  • TryHackMe guided 'rooms' देता है जिनमें step-by-step सीखना आसान है; यह beginners के लिए अच्छा शुरुआती platform है।
  • Hack The Box पर machines और challenges ज़्यादा open-ended होते हैं; Starting Point section शुरुआत के लिए है।
  • दोनों platforms पर target machines तक पहुँचने के लिए आम तौर पर उनकी VPN (OpenVPN) file से connect करना होता है, या browser-based attack box इस्तेमाल होता है।
  • इन platforms पर दी गई machines को ही attack करें; platform के अपने infrastructure को attack करना rules के ख़िलाफ़ है।

Free on YUNOVA · yunova.in · Sign in to add your own lesson notes to this sheet.