{
  "Module 08: Enumeration & System Hacking": [
    {
      "question": "1. Which command is used to enumerate user accounts on a Windows system using NetBIOS?",
      "options": ["A. nbtstat -A <IP>", "B. net view", "C. net use", "D. ping <IP>"],
      "num_answers": 1,
      "answer": "A. nbtstat -A <IP>",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Queries NetBIOS over TCP/IP for remote name table info that can reveal users.",
        "B": "❌ Lists shared resources/computers, not NetBIOS user tables.",
        "C": "❌ Maps network resources; not for user enumeration.",
        "D": "❌ Connectivity test only; no enumeration."
      }
    },
    {
      "question": "2. What is the purpose of enumeration in ethical hacking?",
      "options": ["A. Identifying vulnerabilities in code", "B. Extracting information such as usernames, shares, and network resources", "C. Exploiting a system vulnerability", "D. Installing malware on a target"],
      "num_answers": 1,
      "answer": "B. Extracting information such as usernames, shares, and network resources",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ Code review is different from network/service enumeration.",
        "B": "✅ Enumeration actively pulls detailed info from services.",
        "C": "❌ That’s exploitation, a later phase.",
        "D": "❌ Malware installation is not the goal of enumeration."
      }
    },
    {
      "question": "3. Which tool can be used to enumerate SNMP information from a target?",
      "options": ["A. SNMPWalk", "B. Wireshark", "C. Metasploit", "D. Aircrack-ng"],
      "num_answers": 1,
      "answer": "A. SNMPWalk",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Walks SNMP OIDs to dump device information.",
        "B": "❌ Packet analyzer; not dedicated to SNMP enumeration.",
        "C": "❌ Exploit framework; not a direct SNMP walker.",
        "D": "❌ Focused on Wi-Fi cracking, not SNMP."
      }
    },
    {
      "question": "4. Which port does SNMP enumeration typically use?",
      "options": ["A. 21", "B. 25", "C. 161", "D. 110"],
      "num_answers": 1,
      "answer": "C. 161",
      "answer_keys": ["C"],
      "explanations": {
        "A": "❌ FTP control uses 21.",
        "B": "❌ SMTP uses 25.",
        "C": "✅ SNMP agents listen on UDP 161 (traps on 162).",
        "D": "❌ POP3 uses 110."
      }
    },
    {
      "question": "5. The process of exploiting a vulnerability to gain access is known as:",
      "options": ["A. Scanning", "B. Gaining access", "C. Maintaining access", "D. Covering tracks"],
      "num_answers": 1,
      "answer": "B. Gaining access",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ Scanning identifies open ports/services.",
        "B": "✅ The exploitation step that yields initial foothold.",
        "C": "❌ Persistence after access is established.",
        "D": "❌ Hiding evidence post-compromise."
      }
    },
    {
      "question": "6. Which Windows command shows all user accounts on a system?",
      "options": ["A. net user", "B. ipconfig", "C. tasklist", "D. netstat"],
      "num_answers": 1,
      "answer": "A. net user",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Displays local user accounts.",
        "B": "❌ Shows network configuration.",
        "C": "❌ Lists running processes.",
        "D": "❌ Shows network connections."
      }
    },
    {
      "question": "7. Which tool is commonly used for SMB enumeration?",
      "options": ["A. Enum4linux", "B. Burp Suite", "C. Nikto", "D. OpenVAS"],
      "num_answers": 1,
      "answer": "A. Enum4linux",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Gathers SMB/NetBIOS/LDAP info from *nix hosts.",
        "B": "❌ Web proxy for HTTP testing, not SMB.",
        "C": "❌ Web server vulnerability scanner.",
        "D": "❌ Vulnerability manager, not SMB-specific."
      }
    },
    {
      "question": "8. Which protocol does LDAP enumeration use?",
      "options": ["A. TCP 139", "B. TCP 389", "C. UDP 161", "D. TCP 443"],
      "num_answers": 1,
      "answer": "B. TCP 389",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ NetBIOS Session Service.",
        "B": "✅ LDAP default (LDAPS typically 636).",
        "C": "❌ SNMP agent port.",
        "D": "❌ HTTPS; not LDAP."
      }
    },
    {
      "question": "9. Which step follows gaining access in system hacking?",
      "options": ["A. Scanning", "B. Reconnaissance", "C. Maintaining access", "D. Enumeration"],
      "num_answers": 1,
      "answer": "C. Maintaining access",
      "answer_keys": ["C"],
      "explanations": {
        "A": "❌ Pre-exploitation phase.",
        "B": "❌ Initial information gathering stage.",
        "C": "✅ Establish persistence/backdoors after foothold.",
        "D": "❌ Active info extraction occurs earlier."
      }
    },
    {
      "question": "10. The attacker erases logs and uses timestamps modification to cover tracks. This technique is known as:",
      "options": ["A. Data hiding", "B. Log manipulation", "C. Steganography", "D. Anti-forensics"],
      "num_answers": 1,
      "answer": "D. Anti-forensics",
      "answer_keys": ["D"],
      "explanations": {
        "A": "❌ Too broad; not specific.",
        "B": "❌ A tactic within anti-forensics, but not the umbrella term.",
        "C": "❌ Hiding data in carriers (images/audio).",
        "D": "✅ Collective measures to impede investigation."
      }
    },
    {
      "question": "11. Which Windows file stores password hashes?",
      "options": ["A. SAM", "B. config.sys", "C. hosts", "D. system32.dll"],
      "num_answers": 1,
      "answer": "A. SAM",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Security Accounts Manager holds local hashes.",
        "B": "❌ Legacy system configuration file.",
        "C": "❌ DNS name-to-IP overrides.",
        "D": "❌ Generic DLL, not credential store."
      }
    },
    {
      "question": "12. What is the role of 'Maintaining Access' in system hacking?",
      "options": ["A. Establish a backdoor or rootkit for persistence", "B. Delete target files permanently", "C. Encrypt network traffic", "D. Stop antivirus processes"],
      "num_answers": 1,
      "answer": "A. Establish a backdoor or rootkit for persistence",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Persistence ensures continued access.",
        "B": "❌ Destruction is not the goal of this phase.",
        "C": "❌ Encryption is unrelated to persistence.",
        "D": "❌ AV tampering may occur but isn’t the definition."
      }
    },
    {
      "question": "13. The command 'net use \\\\target\\IPC$' is used for:",
      "options": ["A. Enumerating user sessions", "B. Establishing null sessions", "C. Running exploits remotely", "D. Modifying registry values"],
      "num_answers": 1,
      "answer": "B. Establishing null sessions",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ Not specifically for session listing.",
        "B": "✅ Connects to IPC$ which historically enabled null sessions on older systems.",
        "C": "❌ Does not execute exploits by itself.",
        "D": "❌ Registry edits use other tools/commands."
      }
    },
    {
      "question": "14. Which tool allows privilege escalation on Windows systems?",
      "options": ["A. Mimikatz", "B. Ettercap", "C. Nikto", "D. Angry IP Scanner"],
      "num_answers": 1,
      "answer": "A. Mimikatz",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Dumps credentials/tickets enabling lateral movement and escalation.",
        "B": "❌ ARP spoofing/MITM tool.",
        "C": "❌ Web server vulnerability scanner.",
        "D": "❌ Simple IP scanner; no escalation features."
      }
    },
    {
      "question": "15. Which method best helps to clear event logs on a compromised Windows machine?",
      "options": ["A. del /f /q logs", "B. Clear-EventLog", "C. net stop logs", "D. format C:"],
      "num_answers": 1,
      "answer": "B. Clear-EventLog",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ Deleting files may not clear event database properly.",
        "B": "✅ PowerShell cmdlet designed to clear Windows event logs.",
        "C": "❌ No such generic 'logs' service; stopping services doesn’t purge logs.",
        "D": "❌ Destructive disk wipe; not a log-clearing method."
      }
    }
  ]
}
