{
  "Module 09: Footprinting & Reconnaissance": [
    {
      "question": "1. Which phase focuses on collecting publicly available information about a target without direct interaction?",
      "options": ["A. Scanning", "B. Enumeration", "C. Passive reconnaissance", "D. Exploitation"],
      "num_answers": 1,
      "answer": "C. Passive reconnaissance",
      "answer_keys": ["C"],
      "explanations": {
        "A": "❌ Scanning sends probes to the target (active).",
        "B": "❌ Enumeration actively queries services for details.",
        "C": "✅ Uses third-party sources without touching the target.",
        "D": "❌ Exploitation attempts access, not intel gathering."
      }
    },
    {
      "question": "2. Which DNS record typically maps a domain to an IPv4 address?",
      "options": ["A. MX", "B. A", "C. AAAA", "D. CNAME"],
      "num_answers": 1,
      "answer": "B. A",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ MX specifies mail exchangers.",
        "B": "✅ A records map hostnames to IPv4.",
        "C": "❌ AAAA maps to IPv6.",
        "D": "❌ CNAME is an alias, not an address."
      }
    },
    {
      "question": "3. Which command-line tool is commonly used on Linux to perform DNS lookups and investigate records?",
      "options": ["A. netstat", "B. dig", "C. traceroute", "D. arp"],
      "num_answers": 1,
      "answer": "B. dig",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ netstat shows sockets/routes.",
        "B": "✅ dig performs flexible DNS queries.",
        "C": "❌ traceroute maps network paths.",
        "D": "❌ arp shows LAN IP–MAC mappings."
      }
    },
    {
      "question": "4. What is the primary purpose of a DNS zone transfer?",
      "options": ["A. To resolve a hostname to an IP quickly", "B. To copy a domain’s DNS database from a master to a slave server", "C. To fetch TTL values for caching", "D. To redirect traffic via CNAME"],
      "num_answers": 1,
      "answer": "B. To copy a domain’s DNS database from a master to a slave server",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ That’s normal resolution.",
        "B": "✅ AXFR/IXFR replicate zone data.",
        "C": "❌ TTL is metadata, not the goal.",
        "D": "❌ CNAME is unrelated to replication."
      }
    },
    {
      "question": "5. Which record type identifies the mail servers for a domain?",
      "options": ["A. TXT", "B. NS", "C. MX", "D. SOA"],
      "num_answers": 1,
      "answer": "C. MX",
      "answer_keys": ["C"],
      "explanations": {
        "A": "❌ TXT stores arbitrary text (SPF, etc.).",
        "B": "❌ NS lists authoritative nameservers.",
        "C": "✅ MX points to mail exchangers.",
        "D": "❌ SOA defines zone authority/timers."
      }
    },
    {
      "question": "6. Which Google dork would best find exposed admin portals?",
      "options": ["A. intitle:index.of", "B. filetype:log password", "C. inurl:admin", "D. site:example.com -www"],
      "num_answers": 1,
      "answer": "C. inurl:admin",
      "answer_keys": ["C"],
      "explanations": {
        "A": "❌ Lists directories; not admin-specific.",
        "B": "❌ Targets logs; noisy/less precise.",
        "C": "✅ Filters URLs likely for admin panels.",
        "D": "❌ Host scoping, not admin discovery."
      }
    },
    {
      "question": "7. Which tool is purpose-built for OSINT on people (e.g., social profiles, emails) in a link-graph style?",
      "options": ["A. Shodan", "B. Recon-ng", "C. Maltego", "D. theHarvester"],
      "num_answers": 1,
      "answer": "C. Maltego",
      "answer_keys": ["C"],
      "explanations": {
        "A": "❌ Shodan indexes exposed devices.",
        "B": "❌ Recon-ng is modular OSINT (CLI).",
        "C": "✅ Maltego visualizes entity relationships.",
        "D": "❌ theHarvester scrapes emails/subdomains."
      }
    },
    {
      "question": "8. Which platform is best known as a search engine for Internet-connected devices and services?",
      "options": ["A. Have I Been Pwned", "B. Censys", "C. Shodan", "D. ZoomEye"],
      "num_answers": 1,
      "answer": "C. Shodan",
      "answer_keys": ["C"],
      "explanations": {
        "A": "❌ HIBP tracks breached emails.",
        "B": "❌ Censys is similar but less canonical.",
        "C": "✅ Classic IoT/service search engine.",
        "D": "❌ ZoomEye exists but Shodan is the go-to."
      }
    },
    {
      "question": "9. theHarvester is primarily used to collect:",
      "options": ["A. CVEs and exploits", "B. Emails, hosts, subdomains, and employee names", "C. Firewall policies", "D. WAF signatures"],
      "num_answers": 1,
      "answer": "B. Emails, hosts, subdomains, and employee names",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ CVE search is not its focus.",
        "B": "✅ Scrapes public sources for footprinting.",
        "C": "❌ Doesn’t collect firewall configs.",
        "D": "❌ Not for WAF signatures."
      }
    },
    {
      "question": "10. Which file can reveal disallowed web paths that might contain sensitive content?",
      "options": ["A. sitemap.xml", "B. robots.txt", "C. crossdomain.xml", "D. security.txt"],
      "num_answers": 1,
      "answer": "B. robots.txt",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ Lists intended public pages.",
        "B": "✅ Disallow rules can hint at hidden paths.",
        "C": "❌ Legacy cross-domain policy; not paths.",
        "D": "❌ Lists disclosure contacts/policy."
      }
    },
    {
      "question": "11. What information does a WHOIS lookup commonly reveal?",
      "options": ["A. Router configs", "B. Registrar, registrant (sometimes redacted), nameservers, creation/expiry dates", "C. Internal IPs", "D. TLS session keys"],
      "num_answers": 1,
      "answer": "B. Registrar, registrant (sometimes redacted), nameservers, creation/expiry dates",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ Not exposed via WHOIS.",
        "B": "✅ Standard domain metadata.",
        "C": "❌ Internal IPs remain private.",
        "D": "❌ Keys are never disclosed."
      }
    },
    {
      "question": "12. Which record type can hold SPF and other sender policy data?",
      "options": ["A. PTR", "B. TXT", "C. SRV", "D. HINFO"],
      "num_answers": 1,
      "answer": "B. TXT",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ PTR is reverse DNS.",
        "B": "✅ SPF/DMARC/verification use TXT.",
        "C": "❌ SRV maps services/ports.",
        "D": "❌ HINFO is rarely used host info."
      }
    },
    {
      "question": "13. The command 'nslookup -type=mx example.com' returns:",
      "options": ["A. Nameservers", "B. Mail exchangers for the domain", "C. IPv6 mappings", "D. Canonical names"],
      "num_answers": 1,
      "answer": "B. Mail exchangers for the domain",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ NS records are different.",
        "B": "✅ Queries MX records.",
        "C": "❌ IPv6 are AAAA records.",
        "D": "❌ CNAME are aliases."
      }
    },
    {
      "question": "14. Which recon method best avoids alerting a target’s IPS/IDS?",
      "options": ["A. Full TCP connect scans", "B. Authenticated SMB enumeration", "C. Passive OSINT via public sources", "D. UDP scanning"],
      "num_answers": 1,
      "answer": "C. Passive OSINT via public sources",
      "answer_keys": ["C"],
      "explanations": {
        "A": "❌ Active and logged.",
        "B": "❌ Highly visible.",
        "C": "✅ No direct contact with target systems.",
        "D": "❌ Active and detectable."
      }
    },
    {
      "question": "15. What does a PTR record provide?",
      "options": ["A. Reverse mapping from IP address to hostname", "B. Alias mapping", "C. Web server headers", "D. DNSSEC keys"],
      "num_answers": 1,
      "answer": "A. Reverse mapping from IP address to hostname",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Used for reverse DNS lookups.",
        "B": "❌ CNAME provides aliases.",
        "C": "❌ HTTP headers, not DNS.",
        "D": "❌ DNSSEC keys use DNSKEY/DS."
      }
    },
    {
      "question": "16. Which tool can framework-automate modules for DNS, WHOIS, hosts, and breach data gathering?",
      "options": ["A. Recon-ng", "B. Nikto", "C. Hydra", "D. Sqlmap"],
      "num_answers": 1,
      "answer": "A. Recon-ng",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Modular OSINT framework.",
        "B": "❌ Web server risk scanner.",
        "C": "❌ Password brute-force tool.",
        "D": "❌ SQL injection exploitation."
      }
    },
    {
      "question": "17. Which technique is most accurate for discovering subdomains quickly from certificate transparency logs?",
      "options": ["A. DNS brute-force only", "B. CT log searches (e.g., crt.sh-like sources)", "C. SPF-only parsing", "D. Robots enumeration"],
      "num_answers": 1,
      "answer": "B. CT log searches (e.g., crt.sh-like sources)",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ Slow and incomplete.",
        "B": "✅ CT logs reveal issued subdomain certs.",
        "C": "❌ SPF lists senders, not all subdomains.",
        "D": "❌ robots.txt rarely lists subdomains."
      }
    },
    {
      "question": "18. During recon, you discover 'X-Frame-Options: DENY'. This header primarily mitigates:",
      "options": ["A. SQL injection", "B. Clickjacking", "C. CSRF", "D. XSS"],
      "num_answers": 1,
      "answer": "B. Clickjacking",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ Addressed via input handling/ORM.",
        "B": "✅ Prevents framing/UI redress attacks.",
        "C": "❌ CSRF handled by tokens/SameSite.",
        "D": "❌ XSS mitigated by encoding/CSP."
      }
    },
    {
      "question": "19. Which traceroute output clue often hints at upstream filtering or blocking?",
      "options": ["A. TTL increasing", "B. Consistent low latency", "C. Multiple '*' hops or abrupt timeouts", "D. Private IPs in middle hops"],
      "num_answers": 1,
      "answer": "C. Multiple '*' hops or abrupt timeouts",
      "answer_keys": ["C"],
      "explanations": {
        "A": "❌ Normal hop-by-hop behavior.",
        "B": "❌ Indicates healthy path.",
        "C": "✅ Timeouts/stars often mean filtering/drops.",
        "D": "❌ Private hops can be normal."
      }
    },
    {
      "question": "20. A banner grab from an open service primarily helps you:",
      "options": ["A. Encrypt traffic", "B. Identify service/version to map potential vulnerabilities", "C. Bypass firewalls", "D. Capture passwords"],
      "num_answers": 1,
      "answer": "B. Identify service/version to map potential vulnerabilities",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ Unrelated to encryption.",
        "B": "✅ Versions map to CVEs/config issues.",
        "C": "❌ Banners don’t bypass controls.",
        "D": "❌ Not for credential capture."
      }
    },
    {
      "question": "21. Which header most directly signals whether a site enforces HTTPS for subsequent requests?",
      "options": ["A. X-Content-Type-Options", "B. Strict-Transport-Security", "C. Referrer-Policy", "D. Cache-Control"],
      "num_answers": 1,
      "answer": "B. Strict-Transport-Security",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ Disables MIME sniffing only.",
        "B": "✅ HSTS forces HTTPS and resists downgrade.",
        "C": "❌ Controls referrer leakage.",
        "D": "❌ Governs caching behavior."
      }
    },
    {
      "question": "22. What’s the safest first step when attempting a DNS zone transfer for assessment?",
      "options": ["A. AXFR from any listed NS without permission", "B. AXFR from target after written authorization", "C. UDP flood to port 53", "D. Edit SOA serial"],
      "num_answers": 1,
      "answer": "B. AXFR from target after written authorization",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ Unauthorized AXFR is unethical/illegal.",
        "B": "✅ Always get explicit written consent.",
        "C": "❌ DoS is never recon.",
        "D": "❌ SOA edits are admin tasks, not recon."
      }
    },
    {
      "question": "23. Which recon source can reveal legacy paths, technologies, and secrets from old site versions?",
      "options": ["A. Wayback Machine", "B. DNSSEC", "C. TLS HSTS preload list", "D. DHCP logs"],
      "num_answers": 1,
      "answer": "A. Wayback Machine",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Historical snapshots expose old endpoints.",
        "B": "❌ Ensures DNS integrity only.",
        "C": "❌ HTTPS enforcement list, not history.",
        "D": "❌ Internal logs, not public."
      }
    },
    {
      "question": "24. Which command best enumerates open TCP ports without sending payloads beyond handshake?",
      "options": ["A. nmap -sT", "B. nmap -sS", "C. nmap -sU", "D. nmap -sA"],
      "num_answers": 1,
      "answer": "B. nmap -sS",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ Full TCP connect; noisier.",
        "B": "✅ SYN scan is stealthier (half-open).",
        "C": "❌ UDP scanning, not TCP.",
        "D": "❌ ACK scan maps firewall rules, not services."
      }
    },
    {
      "question": "25. What is the main risk of relying only on active scanning for footprinting?",
      "options": ["A. Too much public data", "B. Alerting blue teams/controls and missing passive findings", "C. Over-collection of OSINT", "D. Lack of service banners"],
      "num_answers": 1,
      "answer": "B. Alerting blue teams/controls and missing passive findings",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ Volume isn’t the core risk.",
        "B": "✅ Active probes are detectable; passive intel can be richer.",
        "C": "❌ Manageable with process.",
        "D": "❌ Banners are only one data point."
      }
    },
    {
      "question": "26. Discovering 'security.txt' under '/.well-known/' most directly helps with:",
      "options": ["A. XSS discovery", "B. Responsible disclosure contacts and policies", "C. RCE exploitation", "D. WAF bypass"],
      "num_answers": 1,
      "answer": "B. Responsible disclosure contacts and policies",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ Not a vuln list.",
        "B": "✅ Provides how/where to report issues.",
        "C": "❌ Not an exploit vector.",
        "D": "❌ Unrelated to bypass methods."
      }
    },
    {
      "question": "27. Which method quickly reveals cloud storage buckets linked to a brand/domain?",
      "options": ["A. DNSSEC validation", "B. Buckets via predictable naming and search engines", "C. SMTP VRFY", "D. BGP route leaks"],
      "num_answers": 1,
      "answer": "B. Buckets via predictable naming and search engines",
      "answer_keys": ["B"],
      "explanations": {
        "A": "❌ About DNS integrity, not discovery.",
        "B": "✅ Pattern-based names and search index exposure.",
        "C": "❌ Mailbox verification only.",
        "D": "❌ Routing incidents, not bucket discovery."
      }
    },
    {
      "question": "28. Which tool is most suitable to enumerate SSL/TLS certificate details and ciphers from a host?",
      "options": ["A. testssl.sh", "B. Hydra", "C. wfuzz", "D. snmpwalk"],
      "num_answers": 1,
      "answer": "A. testssl.sh",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Audits TLS versions, ciphers, vulns.",
        "B": "❌ Password guessing tool.",
        "C": "❌ Web parameter fuzzing.",
        "D": "❌ SNMP enumeration."
      }
    },
    {
      "question": "29. Subresource Integrity (SRI) primarily protects against:",
      "options": ["A. Malicious or tampered third-party scripts", "B. SQL injection", "C. CSRF", "D. Directory traversal"],
      "num_answers": 1,
      "answer": "A. Malicious or tampered third-party scripts",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Hashes verify external resource integrity.",
        "B": "❌ Addressed via parameterization.",
        "C": "❌ Prevented by tokens/SameSite.",
        "D": "❌ Path handling issue, not script integrity."
      }
    },
    {
      "question": "30. Which best practice helps keep recon stealthy and compliant?",
      "options": ["A. Ignore scope limits", "B. Randomly fuzz all parameters", "C. Use authorized targets, passive methods first, and log findings clearly", "D. Skip written permission"],
      "num_answers": 1,
      "answer": "C. Use authorized targets, passive methods first, and log findings clearly",
      "answer_keys": ["C"],
      "explanations": {
        "A": "❌ Breaches ethics and contracts.",
        "B": "❌ Noisy and risky outside scope.",
        "C": "✅ Low-noise, ethical, auditable approach.",
        "D": "❌ Always obtain written authorization."
      }
    }
  ]
}
