{
  "Module 25: Advanced Scanning (Nessus, OpenVAS, Amass, Metasploit, PowerSploit)": [
    {
      "question": "1. Which vulnerability scanner uses a plugin-based architecture and relies on NASL scripts to detect vulnerabilities?",
      "options": [
        "A. OpenVAS",
        "B. Nikto",
        "C. Recon-ng",
        "D. Nmap"
      ],
      "num_answers": 1,
      "answer": "A. OpenVAS",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ OpenVAS uses a plugin-based engine and NASL scripts for its vulnerability checks.",
        "B": "❌ Nikto is a web server scanner and does not use NASL.",
        "C": "❌ Recon-ng is an OSINT/recon framework, not a NASL-based scanner.",
        "D": "❌ Nmap is a port scanner that can use NSE scripts, not NASL."
      }
    },
    {
      "question": "2. Nessus plugins are written in which scripting language?",
      "options": [
        "A. Lua",
        "B. Python",
        "C. NASL",
        "D. YAML"
      ],
      "num_answers": 1,
      "answer": "C. NASL",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ Nessus plugins are written in NASL (Nessus Attack Scripting Language).",
        "A": "❌ Lua is used by Nmap NSE, not Nessus plugins.",
        "B": "❌ Python may integrate with Nessus, but plugins themselves are NASL.",
        "D": "❌ YAML is a data format, not a scripting language for Nessus plugins."
      }
    },
    {
      "question": "3. Which command in Amass performs active enumeration, including DNS brute forcing and scraping external sources?",
      "options": [
        "A. amass track",
        "B. amass enum -active",
        "C. amass viz",
        "D. amass intel"
      ],
      "num_answers": 1,
      "answer": "B. amass enum -active",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ 'amass enum -active' enables active techniques like DNS brute forcing.",
        "A": "❌ 'amass track' monitors changes over time, not full active enumeration.",
        "C": "❌ 'amass viz' is for visualization, not scanning.",
        "D": "❌ 'amass intel' is mainly for high-level intel gathering, not full active enumeration."
      }
    },
    {
      "question": "4. Which of the following is a major advantage of using OpenVAS over Nessus?",
      "options": [
        "A. Supports more exploit modules",
        "B. Fully free and open-source",
        "C. Faster scanning performance",
        "D. Requires no configuration"
      ],
      "num_answers": 1,
      "answer": "B. Fully free and open-source",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ OpenVAS is free and open-source, which is a key advantage for many orgs.",
        "A": "❌ OpenVAS is a scanner, not an exploitation framework like Metasploit.",
        "C": "❌ Performance depends on setup; it's not inherently faster than Nessus.",
        "D": "❌ OpenVAS still requires configuration and tuning."
      }
    },
    {
      "question": "5. You want to enumerate subdomains of a target using a passive, OSINT-only approach. Which Amass mode should you use?",
      "options": [
        "A. amass brute",
        "B. amass enum -passive",
        "C. amass track",
        "D. amass viz"
      ],
      "num_answers": 1,
      "answer": "B. amass enum -passive",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ 'amass enum -passive' uses only passive sources and avoids active probing.",
        "A": "❌ 'amass brute' is active brute forcing of DNS records.",
        "C": "❌ 'amass track' is for tracking changes over time.",
        "D": "❌ 'amass viz' is used to visualize results, not enumerate."
      }
    },
    {
      "question": "6. Which Metasploit command updates vulnerability, exploit, and module databases?",
      "options": [
        "A. reload_all",
        "B. msfupdate",
        "C. db_rebuild",
        "D. msfconsole --update"
      ],
      "num_answers": 1,
      "answer": "B. msfupdate",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ 'msfupdate' updates Metasploit modules and related content.",
        "A": "❌ 'reload_all' reloads modules in the current console session.",
        "C": "❌ 'db_rebuild' is not the standard command for updates.",
        "D": "❌ 'msfconsole --update' is not the typical update command."
      }
    },
    {
      "question": "7. PowerSploit is primarily used for:",
      "options": [
        "A. Network scanning",
        "B. Privilege escalation, exploitation, and post-exploitation",
        "C. Container scanning",
        "D. DNS enumeration"
      ],
      "num_answers": 1,
      "answer": "B. Privilege escalation, exploitation, and post-exploitation",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ PowerSploit is a PowerShell post-exploitation framework for red teams.",
        "A": "❌ Network scanning is more Nmap/Nessus territory.",
        "C": "❌ Container scanning is not its primary use.",
        "D": "❌ DNS enumeration is better handled by tools like Amass or dnsrecon."
      }
    },
    {
      "question": "8. Which tool provides a graphical dashboard, credentialed scanning, and compliance auditing?",
      "options": [
        "A. WPScan",
        "B. Nessus",
        "C. Nmap",
        "D. Hydra"
      ],
      "num_answers": 1,
      "answer": "B. Nessus",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Nessus offers a rich GUI, credentialed scans, and compliance checks.",
        "A": "❌ WPScan focuses on WordPress security, not general compliance.",
        "C": "❌ Nmap is primarily a CLI port scanner with limited GUI front-ends.",
        "D": "❌ Hydra is for brute-force credential attacks, not compliance scanning."
      }
    },
    {
      "question": "9. Which Metasploit module type is used to gather information without disrupting systems?",
      "options": [
        "A. Exploit",
        "B. Auxiliary",
        "C. Payload",
        "D. Encoder"
      ],
      "num_answers": 1,
      "answer": "B. Auxiliary",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Auxiliary modules perform tasks like scanning, fuzzing, and recon.",
        "A": "❌ Exploit modules attempt to compromise systems.",
        "C": "❌ Payloads are the code run after exploitation.",
        "D": "❌ Encoders modify payloads to avoid detection, not gather info."
      }
    },
    {
      "question": "10. Which OpenVAS component handles scanning tasks and vulnerability detection?",
      "options": [
        "A. GSAD",
        "B. OSPD-OpenVAS",
        "C. Redis",
        "D. Manager"
      ],
      "num_answers": 1,
      "answer": "B. OSPD-OpenVAS",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ OSPD-OpenVAS is the scanner engine responsible for executing tests.",
        "A": "❌ GSAD is the Greenbone Security Assistant (web interface).",
        "C": "❌ Redis is used as a backend database/cache, not the scanner itself.",
        "D": "❌ The Manager coordinates tasks but does not perform the scanning logic directly."
      }
    },
    {
      "question": "11. Which PowerSploit module is used for PowerShell memory injection?",
      "options": [
        "A. Invoke-Shellcode",
        "B. Invoke-Reflector",
        "C. Invoke-PasswordDump",
        "D. Get-Keystrokes"
      ],
      "num_answers": 1,
      "answer": "A. Invoke-Shellcode",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Invoke-Shellcode injects shellcode into memory via PowerShell.",
        "B": "❌ Invoke-Reflector is not the standard memory injection cmdlet in PowerSploit.",
        "C": "❌ Invoke-PasswordDump targets credential dumping, not injection.",
        "D": "❌ Get-Keystrokes is used for keylogging, not shellcode injection."
      }
    },
    {
      "question": "12. You need to perform credentialed scanning against Windows hosts. Which scanner supports SMB/WinRM authentication natively?",
      "options": [
        "A. Nessus",
        "B. Gobuster",
        "C. WPScan",
        "D. Nikto"
      ],
      "num_answers": 1,
      "answer": "A. Nessus",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Nessus supports credentialed Windows scans over SMB/WinRM to get deep results.",
        "B": "❌ Gobuster is for directory and DNS brute forcing, not credentialed host scanning.",
        "C": "❌ WPScan focuses on WordPress sites, not SMB/WinRM.",
        "D": "❌ Nikto is a web server scanner, not a credentialed OS scanner."
      }
    },
    {
      "question": "13. Amass 'intel' mode is primarily used for:",
      "options": [
        "A. Vulnerability scanning",
        "B. Attack surface mapping and OSINT gathering",
        "C. Post-exploitation",
        "D. Password cracking"
      ],
      "num_answers": 1,
      "answer": "B. Attack surface mapping and OSINT gathering",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ 'amass intel' collects high-level data (ASNs, domains, etc.) for attack surface mapping.",
        "A": "❌ It does not perform vulnerability scanning.",
        "C": "❌ Post-exploitation is beyond Amass’s scope.",
        "D": "❌ Amass does not perform password cracking."
      }
    },
    {
      "question": "14. In Metasploit, the command to list all hosts discovered during scanning is:",
      "options": [
        "A. hosts -a",
        "B. loot",
        "C. db_hosts",
        "D. list_hosts"
      ],
      "num_answers": 1,
      "answer": "C. db_hosts",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ 'db_hosts' shows hosts stored in the Metasploit database.",
        "A": "❌ 'hosts -a' is not the standard syntax to list; 'hosts' alone can show them but db_hosts is the classic command.",
        "B": "❌ 'loot' displays collected files/credentials, not host list.",
        "D": "❌ 'list_hosts' is not a default Metasploit command."
      }
    },
    {
      "question": "15. Which tool is designed to detect vulnerabilities specifically in WordPress installations?",
      "options": [
        "A. WPScan",
        "B. Nessus",
        "C. Nikto",
        "D. Amass"
      ],
      "num_answers": 1,
      "answer": "A. WPScan",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ WPScan focuses on WordPress core, plugins, and theme vulnerabilities.",
        "B": "❌ Nessus is a general-purpose vulnerability scanner.",
        "C": "❌ Nikto scans web servers broadly, not just WordPress.",
        "D": "❌ Amass is for asset discovery and subdomain enumeration."
      }
    },
    {
      "question": "16. Which Nessus scan type provides the most accurate results but requires administrative credentials?",
      "options": [
        "A. Non-credentialed scan",
        "B. Ping sweep",
        "C. Credentialed scan",
        "D. SYN scan"
      ],
      "num_answers": 1,
      "answer": "C. Credentialed scan",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ Credentialed scans log into the host, enabling deeper and more accurate checks.",
        "A": "❌ Non-credentialed scans see only what is exposed over the network.",
        "B": "❌ Ping sweeps only check host availability.",
        "D": "❌ SYN scans are port scans, not full vulnerability assessments."
      }
    },
    {
      "question": "17. Which PowerSploit function is used to enumerate processes, services, and environment variables?",
      "options": [
        "A. Get-Data",
        "B. Get-ProcessInfo",
        "C. Get-HostInfo",
        "D. Get-SystemInfo"
      ],
      "num_answers": 1,
      "answer": "D. Get-SystemInfo",
      "answer_keys": ["D"],
      "explanations": {
        "D": "✅ Get-SystemInfo gathers detailed information about the compromised host.",
        "A": "❌ Get-Data is not the standard enumeration cmdlet in PowerSploit.",
        "B": "❌ Get-ProcessInfo is not the canonical PowerSploit function name.",
        "C": "❌ Get-HostInfo is a generic-sounding name, not the PowerSploit cmdlet used here."
      }
    },
    {
      "question": "18. Which Metasploit module would you select to scan for open ports on a remote host?",
      "options": [
        "A. exploit/windows/smb/psexec",
        "B. auxiliary/scanner/portscan/tcp",
        "C. auxiliary/admin/smb/ms17_010",
        "D. payload/windows/shell_reverse_tcp"
      ],
      "num_answers": 1,
      "answer": "B. auxiliary/scanner/portscan/tcp",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ This auxiliary module performs TCP port scanning within Metasploit.",
        "A": "❌ psexec is an exploit module for remote code execution.",
        "C": "❌ ms17_010 is for exploiting EternalBlue-style SMB vulnerabilities.",
        "D": "❌ This is a payload, not a scanner."
      }
    },
    {
      "question": "19. Which Amass output option generates a visual graph of discovered infrastructure?",
      "options": [
        "A. amass graph",
        "B. amass viz",
        "C. amass visual",
        "D. amass display"
      ],
      "num_answers": 1,
      "answer": "B. amass viz",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ 'amass viz' creates graph data for visualizing relationships in the attack surface.",
        "A": "❌ 'amass graph' is not the standard subcommand name.",
        "C": "❌ 'amass visual' is not a valid subcommand.",
        "D": "❌ 'amass display' is not the command for graph output."
      }
    },
    {
      "question": "20. OpenVAS uses which backend database to store vulnerability information?",
      "options": [
        "A. MongoDB",
        "B. SQLite",
        "C. Redis",
        "D. MySQL"
      ],
      "num_answers": 1,
      "answer": "C. Redis",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ Redis is used as a key-value store/cache by OpenVAS/Greenbone stack.",
        "A": "❌ MongoDB is not the default backend for OpenVAS.",
        "B": "❌ SQLite is lightweight but not the main OpenVAS backend.",
        "D": "❌ MySQL is not the primary storage engine here."
      }
    },
    {
      "question": "21. Which command in Metasploit shows available exploits matching 'smb'?",
      "options": [
        "A. search smb",
        "B. find smb",
        "C. exploit smb",
        "D. module smb"
      ],
      "num_answers": 1,
      "answer": "A. search smb",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ 'search smb' lists modules (including exploits) related to SMB.",
        "B": "❌ 'find' is not the standard Metasploit search command.",
        "C": "❌ 'exploit smb' is not a valid way to search.",
        "D": "❌ 'module smb' is not a valid command."
      }
    },
    {
      "question": "22. Which Nessus scan template is used specifically for detecting compliance issues?",
      "options": [
        "A. Host Discovery",
        "B. Advanced Scan",
        "C. CIS Benchmark Scan",
        "D. Basic Network Scan"
      ],
      "num_answers": 1,
      "answer": "C. CIS Benchmark Scan",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ CIS Benchmark Scan templates are tailored to check compliance with CIS standards.",
        "A": "❌ Host Discovery just finds live hosts.",
        "B": "❌ Advanced Scan is flexible but not specifically for compliance.",
        "D": "❌ Basic Network Scan focuses on vulnerabilities, not detailed policy compliance."
      }
    },
    {
      "question": "23. PowerSploit is written in which language?",
      "options": [
        "A. Python",
        "B. Bash",
        "C. PowerShell",
        "D. Ruby"
      ],
      "num_answers": 1,
      "answer": "C. PowerShell",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ PowerSploit is a collection of offensive security modules written in PowerShell.",
        "A": "❌ It is not a Python framework.",
        "B": "❌ Bash scripts are common in Linux, but PowerSploit targets Windows PowerShell.",
        "D": "❌ Ruby is used by Metasploit, not PowerSploit."
      }
    },
    {
      "question": "24. Which scanning tool integrates with Metasploit via the MSF RPC API?",
      "options": [
        "A. WPScan",
        "B. Nessus",
        "C. Nikto",
        "D. Hydra"
      ],
      "num_answers": 1,
      "answer": "B. Nessus",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Nessus can integrate with Metasploit via APIs to share vulnerability data.",
        "A": "❌ WPScan does not natively integrate with Metasploit in this way.",
        "C": "❌ Nikto integration is not via MSF RPC by default.",
        "D": "❌ Hydra is a password cracker, not a Metasploit-integrated scanner."
      }
    },
    {
      "question": "25. Which of the following tools can enumerate subdomains, map attack surface, and identify ASN & IP ranges?",
      "options": [
        "A. Amass",
        "B. Hydra",
        "C. Nikto",
        "D. Dirbuster"
      ],
      "num_answers": 1,
      "answer": "A. Amass",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Amass is designed for attack surface mapping, including subdomains, ASNs, and IP ranges.",
        "B": "❌ Hydra performs login brute-force attacks, not asset mapping.",
        "C": "❌ Nikto is for web server vulnerability scanning.",
        "D": "❌ Dirbuster is for directory/file brute forcing on web servers."
      }
    }
  ]
}
