{
  "Module 10: Footprinting & Reconnaissance 2": [
    {
      "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 packets/probes to the target (active).",
        "B": "❌ Enumeration actively queries services for details.",
        "C": "✅ Passive recon uses public/third-party sources without touching the target.",
        "D": "❌ Exploitation attempts to gain access, not gather intel passively."
      }
    },
    {
      "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 points to mail exchangers.",
        "B": "✅ A records map hostnames to IPv4 addresses.",
        "C": "❌ AAAA maps to IPv6 addresses.",
        "D": "❌ CNAME is an alias to another name, 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, not DNS records.",
        "B": "✅ dig queries DNS servers with flexible options.",
        "C": "❌ traceroute maps network paths, not DNS.",
        "D": "❌ arp shows local 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 standard DNS resolution.",
        "B": "✅ AXFR/IXFR replicate zone data between servers.",
        "C": "❌ TTL is part of records, not the purpose of zone transfer.",
        "D": "❌ CNAME redirection is unrelated to zone 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 holds arbitrary text (e.g., SPF/DMARC).",
        "B": "❌ NS lists authoritative nameservers.",
        "C": "✅ MX points to mail exchangers for the domain.",
        "D": "❌ SOA defines zone start/authority details."
      }
    },
    {
      "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 specific to admin portals.",
        "B": "❌ Searches log files; noisy and risky.",
        "C": "✅ Targets URLs likely containing admin interfaces.",
        "D": "❌ Limits hostnames; not admin-focused."
      }
    },
    {
      "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 internet-exposed devices.",
        "B": "❌ Recon-ng is a modular OSINT framework (CLI-driven).",
        "C": "✅ Maltego visualizes entities/relationships as graphs.",
        "D": "❌ theHarvester enumerates emails/subdomains; no rich graphing."
      }
    },
    {
      "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 email addresses.",
        "B": "❌ Censys is similar to Shodan but not the classic answer.",
        "C": "✅ Shodan is the canonical IoT/device search engine.",
        "D": "❌ ZoomEye is another engine but less commonly cited."
      }
    },
    {
      "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 gathering is not its primary purpose.",
        "B": "✅ It scrapes public sources for target footprinting.",
        "C": "❌ Firewall configs are not collected by it.",
        "D": "❌ WAF signatures are unrelated."
      }
    },
    {
      "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": "❌ sitemap.xml lists intended public pages.",
        "B": "✅ robots.txt can hint at hidden/blocked directories.",
        "C": "❌ crossdomain.xml controls Flash/XD policies (legacy).",
        "D": "❌ security.txt exposes 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": "❌ Router configs aren’t public via WHOIS.",
        "B": "✅ Standard WHOIS outputs domain metadata.",
        "C": "❌ Internal IPs are never exposed by WHOIS.",
        "D": "❌ TLS keys are not 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 for reverse DNS.",
        "B": "✅ SPF/DMARC/verification strings live in TXT records.",
        "C": "❌ SRV specifies service locations/ports.",
        "D": "❌ HINFO holds host hardware/OS info (rarely used)."
      }
    },
    {
      "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": "✅ -type=mx 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 likely logged.",
        "B": "❌ Authenticated probing is highly visible.",
        "C": "✅ No direct contact with target systems.",
        "D": "❌ Still active; can trigger alarms."
      }
    },
    {
      "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": "✅ PTR supports reverse DNS lookups.",
        "B": "❌ CNAME provides aliases.",
        "C": "❌ Headers come from HTTP, not DNS.",
        "D": "❌ DNSSEC keys are in DNSKEY/DS records."
      }
    },
    {
      "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": "✅ Recon-ng is a modular OSINT framework.",
        "B": "❌ Nikto scans web servers for risky files.",
        "C": "❌ Hydra performs login brute forcing.",
        "D": "❌ sqlmap exploits SQL injection."
      }
    },
    {
      "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": "❌ Brute-force can miss many and be slow.",
        "B": "✅ CT logs reveal issued certs for subdomains.",
        "C": "❌ SPF often lists mail senders, not full subdomain sets.",
        "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": "❌ SQLi is handled by input validation/parameterization.",
        "B": "✅ Denies framing to prevent UI redress attacks.",
        "C": "❌ CSRF is handled by tokens/same-site cookies.",
        "D": "❌ XSS is mitigated by output 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": "❌ TTL naturally increments hop-by-hop.",
        "B": "❌ Low latency suggests healthy paths.",
        "C": "✅ Timeouts/star hops often indicate filtering or drops.",
        "D": "❌ Private hops can be normal in carrier NATs."
      }
    },
    {
      "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": "❌ Encryption is unrelated to grabbing banners.",
        "B": "✅ Versions link to CVEs/config weaknesses.",
        "C": "❌ Banners don’t bypass filtering.",
        "D": "❌ Not directly used for password 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": "❌ Stops MIME sniffing; not HTTPS enforcement.",
        "B": "✅ HSTS forces HTTPS and resists protocol downgrades.",
        "C": "❌ Controls referrer header 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 illegal/unethical.",
        "B": "✅ Always obtain explicit written permission first.",
        "C": "❌ DoS is never part of standard recon.",
        "D": "❌ SOA edits are administrative, 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/assets.",
        "B": "❌ DNSSEC handles record integrity, not history.",
        "C": "❌ HSTS preload lists enforce HTTPS, not recon content.",
        "D": "❌ DHCP logs are internal, 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": "❌ -sT is full TCP connect (more noisy).",
        "B": "✅ SYN scan is stealthier and stops at handshake.",
        "C": "❌ -sU scans UDP, not TCP.",
        "D": "❌ -sA checks firewall rules (ACK), not service discovery."
      }
    },
    {
      "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": "❌ Public data volume isn’t the key risk.",
        "B": "✅ Active probes are detectable and may miss OSINT gems.",
        "C": "❌ Over-collection is manageable with process.",
        "D": "❌ Banners are a subset of active results."
      }
    },
    {
      "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 vulnerability list.",
        "B": "✅ Provides how to report vulnerabilities safely.",
        "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": "❌ DNSSEC is for record integrity, not storage discovery.",
        "B": "✅ Common patterns + search engines surface exposed buckets.",
        "C": "❌ VRFY checks mailboxes; unrelated.",
        "D": "❌ BGP leaks are 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": "✅ testssl.sh audits TLS versions, ciphers, and vulnerabilities.",
        "B": "❌ Hydra performs password guessing.",
        "C": "❌ wfuzz is for web fuzzing.",
        "D": "❌ snmpwalk enumerates SNMP data."
      }
    },
    {
      "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": "✅ SRI hashes verify integrity of external resources.",
        "B": "❌ SQLi is unrelated to script integrity.",
        "C": "❌ CSRF is about cross-site requests.",
        "D": "❌ Directory traversal is path handling, not 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": "❌ Violates ethics and contracts.",
        "B": "❌ Noisy and may breach scope.",
        "C": "✅ Ethical, low-noise, and auditable approach.",
        "D": "❌ Always get written authorization."
      }
    }
  ]
}
