{
  "Module 24: Scanning with Specialized Tools": [
    {
      "question": "1. What is the primary purpose of DnsScan in a penetration test?",
      "options": [
        "A. Brute-forcing login pages",
        "B. Enumerating DNS records and subdomains",
        "C. Exploiting SQL injection vulnerabilities",
        "D. Capturing wireless traffic"
      ],
      "num_answers": 1,
      "answer": "B. Enumerating DNS records and subdomains",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ DnsScan is used to discover DNS records and subdomains to expand the attack surface.",
        "A": "❌ Brute-forcing logins is done by tools like Hydra or Burp Intruder.",
        "C": "❌ SQLi exploitation is not DnsScan’s purpose.",
        "D": "❌ Wireless capture is done with tools like Wireshark/airmon-ng."
      }
    },
    {
      "question": "2. Which of the following BEST describes a common use of Nmap NSE (Nmap Scripting Engine) scripts?",
      "options": [
        "A. Only basic host discovery",
        "B. Automating advanced service enumeration and vulnerability checks",
        "C. Encrypting traffic between Nmap and the target",
        "D. Replacing all firewall rules on the target"
      ],
      "num_answers": 1,
      "answer": "B. Automating advanced service enumeration and vulnerability checks",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ NSE scripts extend Nmap to perform in-depth enumeration and vulnerability checks automatically.",
        "A": "❌ Host discovery is just one basic Nmap function, not the main NSE goal.",
        "C": "❌ NSE does not encrypt traffic to the target.",
        "D": "❌ NSE cannot directly change the target’s firewall rules."
      }
    },
    {
      "question": "3. Recon-ng is BEST described as:",
      "options": [
        "A. A web application fuzzer only",
        "B. A framework for automated OSINT and reconnaissance",
        "C. A wireless cracking toolkit",
        "D. A local password cracking utility"
      ],
      "num_answers": 1,
      "answer": "B. A framework for automated OSINT and reconnaissance",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Recon-ng is a modular OSINT/reconnaissance framework with a Metasploit-like interface.",
        "A": "❌ It does more than just web fuzzing.",
        "C": "❌ Wireless cracking is out of scope for recon-ng.",
        "D": "❌ Password cracking is not its primary job."
      }
    },
    {
      "question": "4. What is the main purpose of WPScan?",
      "options": [
        "A. Scanning generic Linux kernel vulnerabilities",
        "B. Scanning WordPress sites for vulnerabilities, plugins, and themes",
        "C. Cracking WPA/WPA2 wireless passwords",
        "D. Scanning DNS records for zone transfers"
      ],
      "num_answers": 1,
      "answer": "B. Scanning WordPress sites for vulnerabilities, plugins, and themes",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ WPScan focuses specifically on WordPress core, plugins, themes, and common misconfigurations.",
        "A": "❌ Kernel vulns are not WPScan’s target.",
        "C": "❌ That’s for tools like aircrack-ng.",
        "D": "❌ DNS scanning is not WPScan’s role."
      }
    },
    {
      "question": "5. Which of the following BEST describes Nikto?",
      "options": [
        "A. A low-level packet sniffer",
        "B. A web server vulnerability scanner",
        "C. A DNS brute-force tool",
        "D. A password hash cracker"
      ],
      "num_answers": 1,
      "answer": "B. A web server vulnerability scanner",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Nikto is used to identify insecure configurations, outdated software, and known issues on web servers.",
        "A": "❌ Packet sniffers include tools like tcpdump/Wireshark.",
        "C": "❌ DNS brute-forcing is not Nikto’s main function.",
        "D": "❌ Hash cracking is done by tools like John or Hashcat."
      }
    },
    {
      "question": "6. Which Nmap command uses NSE scripts for default vulnerability and service checks?",
      "options": [
        "A. nmap -sP target",
        "B. nmap -sS target",
        "C. nmap -sV --script=default target",
        "D. nmap -sU target"
      ],
      "num_answers": 1,
      "answer": "C. nmap -sV --script=default target",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ -sV with --script=default runs a set of default NSE scripts with version detection.",
        "A": "❌ -sP (or -sn) is ping scan only.",
        "B": "❌ -sS is SYN scan and doesn’t automatically run NSE scripts.",
        "D": "❌ -sU is UDP scan without NSE by default."
      }
    },
    {
      "question": "7. A CEH wants to find hidden WordPress users and enumerate usernames. Which tool is MOST suitable?",
      "options": [
        "A. Nikto",
        "B. WPScan",
        "C. Recon-ng",
        "D. DnsScan"
      ],
      "num_answers": 1,
      "answer": "B. WPScan",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ WPScan can enumerate WordPress usernames via multiple techniques.",
        "A": "❌ Nikto is generic web server scanning, not WP-specific.",
        "C": "❌ Recon-ng’s focus is broader OSINT, not specifically WP enumeration.",
        "D": "❌ DnsScan is for DNS enumeration, not WP user enumeration."
      }
    },
    {
      "question": "8. Which of the following BEST defends against noisy Nikto scans?",
      "options": [
        "A. Rate-limiting and WAF rules for suspicious HTTP patterns",
        "B. Disabling DNSSEC",
        "C. Enabling Telnet on the web server",
        "D. Turning off HTTPS and using HTTP only"
      ],
      "num_answers": 1,
      "answer": "A. Rate-limiting and WAF rules for suspicious HTTP patterns",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Nikto generates many HTTP requests; WAF/rate-limits can detect and block this behavior.",
        "B": "❌ DNSSEC is unrelated to Nikto.",
        "C": "❌ Telnet increases risk, not defenses.",
        "D": "❌ Removing HTTPS makes things worse, not better."
      }
    },
    {
      "question": "9. A tester wants to perform DNS subdomain enumeration using DnsScan. What is a typical input required?",
      "options": [
        "A. A list of usernames",
        "B. A list of potential subdomain names (wordlist)",
        "C. A list of password hashes",
        "D. A list of IP addresses only"
      ],
      "num_answers": 1,
      "answer": "B. A list of potential subdomain names (wordlist)",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ DnsScan uses wordlists to brute-force or enumerate possible subdomain names.",
        "A": "❌ Usernames are for login attacks, not DNS enumeration.",
        "C": "❌ Hash lists are for cracking, not DNS scanning.",
        "D": "❌ It needs hostnames/subdomains, not only IPs."
      }
    },
    {
      "question": "10. Which of the following Nmap NSE categories is MOST appropriate for brute-forcing logins on services like FTP or SSH?",
      "options": [
        "A. safe",
        "B. intrusive",
        "C. brute",
        "D. vuln"
      ],
      "num_answers": 1,
      "answer": "C. brute",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ Scripts in the 'brute' category are used for brute-force authentication.",
        "A": "❌ 'safe' scripts have minimal impact and don’t typically brute-force.",
        "B": "❌ 'intrusive' may cause noticeable changes but not necessarily brute-force.",
        "D": "❌ 'vuln' focuses on vulnerability detection, not password guessing."
      }
    },
    {
      "question": "11. In recon-ng, modules are used to:",
      "options": [
        "A. Add firewall rules on target systems",
        "B. Extend recon-ng functionality for tasks like domain, host, and contact enumeration",
        "C. Compile custom malware binaries",
        "D. Encrypt all HTTP traffic on the target"
      ],
      "num_answers": 1,
      "answer": "B. Extend recon-ng functionality for tasks like domain, host, and contact enumeration",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Recon-ng modules perform specific reconnaissance tasks (domains, hosts, contacts, etc.).",
        "A": "❌ It doesn’t manage remote firewalls.",
        "C": "❌ Malware compilation is not its purpose.",
        "D": "❌ It does not modify the target’s HTTP encryption."
      }
    },
    {
      "question": "12. A CEH wants to find outdated WordPress plugins with known CVEs. Which WPScan option is MOST relevant?",
      "options": [
        "A. Enabling verbose output only",
        "B. Using the vulnerability database update and plugin enumeration flags",
        "C. Using only a port scan with WPScan",
        "D. Using only DNS enumeration with WPScan"
      ],
      "num_answers": 1,
      "answer": "B. Using the vulnerability database update and plugin enumeration flags",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ WPScan relies on an updated vuln DB and enumeration options to map plugins to known CVEs.",
        "A": "❌ Verbose output alone does not find vulns.",
        "C": "❌ WPScan is not a generic port scanner.",
        "D": "❌ WPScan is not a DNS enumeration tool."
      }
    },
    {
      "question": "13. Why is running Nikto directly against production web servers often considered high risk from an operational perspective?",
      "options": [
        "A. Nikto always deletes files from the server",
        "B. Nikto may generate a high volume of requests, triggering alerts or causing minor performance impact",
        "C. Nikto changes the server’s SSL certificates",
        "D. Nikto disables HTTP/2 support"
      ],
      "num_answers": 1,
      "answer": "B. Nikto may generate a high volume of requests, triggering alerts or causing minor performance impact",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Nikto is noisy; lots of test requests can stress or alarm production systems.",
        "A": "❌ It does not delete files.",
        "C": "❌ It doesn’t change certificates.",
        "D": "❌ It does not modify HTTP/2 configuration."
      }
    },
    {
      "question": "14. A CEH wants to run a safe NSE script that just collects basic info and should not break services. Which category is MOST appropriate?",
      "options": [
        "A. intrusive",
        "B. exploit",
        "C. safe",
        "D. malware"
      ],
      "num_answers": 1,
      "answer": "C. safe",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ 'safe' scripts are designed to have minimal impact and be non-disruptive.",
        "A": "❌ 'intrusive' may be noisy or disruptive.",
        "B": "❌ 'exploit' attempts to exploit vulnerabilities.",
        "D": "❌ 'malware' is not a standard NSE category."
      }
    },
    {
      "question": "15. Which of the following is a good reason to combine DnsScan with recon-ng in a single engagement?",
      "options": [
        "A. DnsScan encrypts recon-ng traffic end-to-end",
        "B. DnsScan finds subdomains, recon-ng correlates them with additional OSINT data",
        "C. Recon-ng is required for DnsScan to work",
        "D. Both tools are only for internal network scanning"
      ],
      "num_answers": 1,
      "answer": "B. DnsScan finds subdomains, recon-ng correlates them with additional OSINT data",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Use DnsScan to enumerate subdomains, then feed them into recon-ng for deeper OSINT (contacts, hosts, etc.).",
        "A": "❌ DnsScan does not encrypt recon-ng traffic.",
        "C": "❌ They are independent tools.",
        "D": "❌ Both are commonly used for Internet-facing targets."
      }
    },
    {
      "question": "16. When using WPScan against a target, which setting BEST reduces the chance of being blocked quickly by rate-limits?",
      "options": [
        "A. Maximum threads and no delays",
        "B. Lower thread count and custom request delays",
        "C. Enabling only DNS mode",
        "D. Disabling SSL verification"
      ],
      "num_answers": 1,
      "answer": "B. Lower thread count and custom request delays",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Slower scanning with delays helps avoid triggering rate-limiting/WAFs immediately.",
        "A": "❌ High speed = more likely to be blocked.",
        "C": "❌ WPScan is not a DNS scanner.",
        "D": "❌ SSL verification doesn’t directly affect rate-limits."
      }
    },
    {
      "question": "17. Which of the following is a typical output of Nikto that is useful for a CEH?",
      "options": [
        "A. Identified open wireless networks",
        "B. Known vulnerable CGI scripts and default files on the web server",
        "C. Cracked user credentials",
        "D. List of all internal IP addresses"
      ],
      "num_answers": 1,
      "answer": "B. Known vulnerable CGI scripts and default files on the web server",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Nikto identifies dangerous files, outdated software, and insecure CGI scripts.",
        "A": "❌ Wireless networks are out of its scope.",
        "C": "❌ It doesn’t crack credentials.",
        "D": "❌ It doesn’t automatically reveal all internal IPs."
      }
    },
    {
      "question": "18. Which recon-ng feature allows a tester to store collected data from modules (domains, hosts, contacts) for later analysis?",
      "options": [
        "A. Local text file logging only",
        "B. Integrated database/workspaces",
        "C. Automatic SIEM forwarding",
        "D. Kernel-level packet capture"
      ],
      "num_answers": 1,
      "answer": "B. Integrated database/workspaces",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Recon-ng uses workspaces and a database to store module results for correlation and reporting.",
        "A": "❌ It is more structured than simple text logs.",
        "C": "❌ It does not natively push to SIEM by default.",
        "D": "❌ It is not a low-level packet capture tool."
      }
    },
    {
      "question": "19. A CEH uses an Nmap NSE script `http-enum.nse`. What is the MOST likely objective?",
      "options": [
        "A. Enumerate HTTP applications and directories on a web server",
        "B. Crack HTTPS encryption keys",
        "C. Perform DNS zone transfers",
        "D. Enumerate SNMP communities"
      ],
      "num_answers": 1,
      "answer": "A. Enumerate HTTP applications and directories on a web server",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ `http-enum` is used to enumerate web applications, directories, and resources.",
        "B": "❌ It does not crack encryption keys.",
        "C": "❌ That would be DNS-related, not HTTP.",
        "D": "❌ SNMP enumeration uses different scripts."
      }
    },
    {
      "question": "20. In WPScan, what is a common way to attempt password guessing against WordPress login?",
      "options": [
        "A. Using the 'user-enum' feature only",
        "B. Using the 'brute-force' or 'passwords' option with a wordlist",
        "C. Using a Nikto plugin",
        "D. Using only DNS requests"
      ],
      "num_answers": 1,
      "answer": "B. Using the 'brute-force' or 'passwords' option with a wordlist",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ WPScan supports login brute-force using a wordlist against discovered usernames.",
        "A": "❌ User enumeration is separate from password guessing.",
        "C": "❌ Nikto and WPScan are separate tools.",
        "D": "❌ DNS requests alone cannot brute-force logins."
      }
    },
    {
      "question": "21. A CEH runs DnsScan and discovers multiple subdomains like dev.example.com and staging.example.com. Why is this valuable?",
      "options": [
        "A. These subdomains are always load balancers",
        "B. Non-production subdomains often have weaker security or outdated code",
        "C. Subdomains cannot be attacked directly",
        "D. These subdomains are always honeypots"
      ],
      "num_answers": 1,
      "answer": "B. Non-production subdomains often have weaker security or outdated code",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Dev/staging sites often lag in patches and may expose debug info or weak auth.",
        "A": "❌ They are not always load balancers.",
        "C": "❌ They are valid attack surfaces.",
        "D": "❌ They are not always honeypots."
      }
    },
    {
      "question": "22. Which of the following BEST describes how recon-ng modules are typically executed?",
      "options": [
        "A. As standalone binaries outside the framework",
        "B. As Python-based modules loaded and run from recon-ng’s console",
        "C. As kernel modules inside the operating system",
        "D. As browser plugins"
      ],
      "num_answers": 1,
      "answer": "B. As Python-based modules loaded and run from recon-ng’s console",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Recon-ng modules are Python scripts loaded and executed inside the recon-ng framework.",
        "A": "❌ They are not standalone binaries in typical usage.",
        "C": "❌ Not kernel modules.",
        "D": "❌ Not browser plugins."
      }
    },
    {
      "question": "23. When using Nikto, what is a good practice to avoid missing HTTPS-only sites?",
      "options": [
        "A. Scan only port 80",
        "B. Always use a proxy",
        "C. Explicitly specify HTTPS or port 443 when scanning",
        "D. Disable SSL support in Nikto"
      ],
      "num_answers": 1,
      "answer": "C. Explicitly specify HTTPS or port 443 when scanning",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ Many modern sites redirect to or only serve HTTPS; specifying HTTPS/443 ensures full coverage.",
        "A": "❌ Port 80-only scanning may miss secured sites.",
        "B": "❌ Proxy use is optional, not mandatory for HTTPS.",
        "D": "❌ Disabling SSL support prevents testing HTTPS hosts."
      }
    },
    {
      "question": "24. A CEH wants to run only 'vuln' category NSE scripts against a specific web server. Which is the BEST Nmap syntax?",
      "options": [
        "A. nmap --script=vuln -p80,443 target",
        "B. nmap --script=default -p80,443 target",
        "C. nmap --script=brute -p80,443 target",
        "D. nmap --script=safe -p80,443 target"
      ],
      "num_answers": 1,
      "answer": "A. nmap --script=vuln -p80,443 target",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ --script=vuln runs vulnerability detection scripts for the selected ports.",
        "B": "❌ 'default' runs a general set, not only vulnerability scripts.",
        "C": "❌ 'brute' focuses on brute-force login attempts.",
        "D": "❌ 'safe' focuses on low-impact information gathering."
      }
    },
    {
      "question": "25. During a web app assessment, why might a CEH run BOTH Nikto and Nmap HTTP NSE scripts against the same target?",
      "options": [
        "A. To perform identical scans twice for no reason",
        "B. Because Nikto and Nmap HTTP NSE scripts complement each other and may find different issues",
        "C. Because Nmap cannot scan HTTP at all",
        "D. Because Nikto only checks DNS records"
      ],
      "num_answers": 1,
      "answer": "B. Because Nikto and Nmap HTTP NSE scripts complement each other and may find different issues",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Each tool has different checks and signatures; combining them improves coverage.",
        "A": "❌ They are not fully identical; overlap exists but results differ.",
        "C": "❌ Nmap has many HTTP-related NSE scripts.",
        "D": "❌ Nikto targets web server issues, not just DNS."
      }
    }
  ]
}
