{
  "Exam 01-2: Final Exam Preparation": [
    {
      "question": "26. Which type of firewall filters traffic based on packet headers such as source/destination IP and port?",
      "options": [
        "A. Packet-filtering firewall",
        "B. Application firewall",
        "C. Proxy firewall",
        "D. Stateful firewall"
      ],
      "num_answers": 1,
      "answer": "A. Packet-filtering firewall",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Packet-filtering firewalls inspect layer 3/4 headers such as IPs and ports.",
        "B": "❌ Application firewalls inspect payloads.",
        "C": "❌ Proxy firewalls relay traffic.",
        "D": "❌ Stateful firewalls track sessions."
      }
    },
    {
      "question": "27. Which protocol is used by SNMP agents to send unsolicited alerts?",
      "options": [
        "A. GET",
        "B. SET",
        "C. TRAP",
        "D. WALK"
      ],
      "num_answers": 1,
      "answer": "C. TRAP",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ SNMP TRAP messages are used for unsolicited alerts.",
        "A": "❌ GET retrieves information.",
        "B": "❌ SET modifies values.",
        "D": "❌ WALK is a client-side enumeration method."
      }
    },
    {
      "question": "28. Which malware attaches itself to executable files and replicates when executed?",
      "options": [
        "A. Virus",
        "B. Worm",
        "C. Trojan",
        "D. Spyware"
      ],
      "num_answers": 1,
      "answer": "A. Virus",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ A virus attaches to host files and replicates on execution.",
        "B": "❌ Worms self-replicate without attaching to files.",
        "C": "❌ Trojans disguise themselves as legitimate software.",
        "D": "❌ Spyware collects data silently."
      }
    },
    {
      "question": "29. Which tool is used to crack Wi-Fi passwords using captured WPA/WPA2 handshakes?",
      "options": [
        "A. Aircrack-ng",
        "B. John the Ripper",
        "C. Hydra",
        "D. Hashcat"
      ],
      "num_answers": 1,
      "answer": "A. Aircrack-ng",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Aircrack-ng cracks WPA/WPA2 using dictionary or brute-force attacks.",
        "B": "❌ John is multi-purpose but not Wi-Fi specialized.",
        "C": "❌ Hydra performs network logon brute-force.",
        "D": "❌ Hashcat can crack hashes but requires extraction tools."
      }
    },
    {
      "question": "30. Which port does HTTPS use by default?",
      "options": [
        "A. 443",
        "B. 80",
        "C. 22",
        "D. 8080"
      ],
      "num_answers": 1,
      "answer": "A. 443",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ HTTPS uses TCP port 443.",
        "B": "❌ Port 80 is HTTP.",
        "C": "❌ Port 22 is SSH.",
        "D": "❌ 8080 is often used for proxy or alternate HTTP."
      }
    },

    {
      "question": "31. Which hashing algorithm produces a 128-bit hash value?",
      "options": [
        "A. SHA-1",
        "B. SHA-256",
        "C. MD5",
        "D. RIPEMD-160"
      ],
      "num_answers": 1,
      "answer": "C. MD5",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ MD5 generates a 128-bit hash.",
        "A": "❌ SHA-1 uses 160 bits.",
        "B": "❌ SHA-256 is 256-bit.",
        "D": "❌ RIPEMD-160 is 160-bit."
      }
    },
    {
      "question": "32. What technique disguises IP packets to appear from another source?",
      "options": [
        "A. IP spoofing",
        "B. MAC flooding",
        "C. ARP poisoning",
        "D. DNS tunneling"
      ],
      "num_answers": 1,
      "answer": "A. IP spoofing",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Spoofing alters packet headers to disguise sending IP.",
        "B": "❌ MAC flooding overwhelms switch CAM tables.",
        "C": "❌ ARP poisoning corrupts ARP caches.",
        "D": "❌ DNS tunneling hides data in DNS queries."
      }
    },
    {
      "question": "33. Which wireless attack listens passively to capture wireless frames without transmitting?",
      "options": [
        "A. Sniffing",
        "B. Evil twin",
        "C. Jamming",
        "D. Rogue AP"
      ],
      "num_answers": 1,
      "answer": "A. Sniffing",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Sniffing passively captures packets for analysis.",
        "B": "❌ Evil twin is active impersonation.",
        "C": "❌ Jamming blocks signals.",
        "D": "❌ Rogue AP is unauthorized but active."
      }
    },
    {
      "question": "34. Which of the following describes a botnet?",
      "options": [
        "A. A network of infected machines under attacker control",
        "B. A malware that encrypts files for ransom",
        "C. A virus attached to a boot sector",
        "D. A system that cracks passwords"
      ],
      "num_answers": 1,
      "answer": "A. A network of infected machines under attacker control",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Botnets consist of remotely controlled malware-infected hosts.",
        "B": "❌ That's ransomware.",
        "C": "❌ Boot sector viruses target boot loaders.",
        "D": "❌ Not a password-cracking system."
      }
    },
    {
      "question": "35. Which layer of the OSI model is responsible for routing?",
      "options": [
        "A. Network layer",
        "B. Data link layer",
        "C. Transport layer",
        "D. Session layer"
      ],
      "num_answers": 1,
      "answer": "A. Network layer",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Routing occurs at OSI Layer 3.",
        "B": "❌ Layer 2 handles MAC addressing.",
        "C": "❌ Layer 4 manages transport.",
        "D": "❌ Layer 5 handles sessions."
      }
    },

    {
      "question": "36. Which tool captures network packets for analysis?",
      "options": [
        "A. Wireshark",
        "B. Nmap",
        "C. Metasploit",
        "D. Snort"
      ],
      "num_answers": 1,
      "answer": "A. Wireshark",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Wireshark captures and analyzes packets.",
        "B": "❌ Nmap performs scanning.",
        "C": "❌ Metasploit exploits vulnerabilities.",
        "D": "❌ Snort is an IDS."
      }
    },
    {
      "question": "37. The technique of encoding data inside another file such as an image is known as:",
      "options": [
        "A. Steganography",
        "B. Encryption",
        "C. Hashing",
        "D. Encoding"
      ],
      "num_answers": 1,
      "answer": "A. Steganography",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Steganography hides information in other files.",
        "B": "❌ Encryption protects confidentiality.",
        "C": "❌ Hashing ensures integrity.",
        "D": "❌ Encoding transforms data format."
      }
    },
    {
      "question": "38. Which attack attempts all possible key combinations?",
      "options": [
        "A. Brute-force attack",
        "B. Dictionary attack",
        "C. Rainbow table attack",
        "D. Replay attack"
      ],
      "num_answers": 1,
      "answer": "A. Brute-force attack",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Brute-force tries every combination.",
        "B": "❌ Dictionary uses wordlists only.",
        "C": "❌ Rainbow tables use precomputed hashes.",
        "D": "❌ Replay reuses captured packets."
      }
    },
    {
      "question": "39. Which Nmap option scans UDP ports?",
      "options": [
        "A. -sU",
        "B. -sS",
        "C. -sT",
        "D. -sA"
      ],
      "num_answers": 1,
      "answer": "A. -sU",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ -sU performs UDP port scanning.",
        "B": "❌ -sS = SYN scan.",
        "C": "❌ -sT = connect scan.",
        "D": "❌ -sA = ACK scan."
      }
    },
    {
      "question": "40. Which component in PKI issues digital certificates?",
      "options": [
        "A. Certificate Authority",
        "B. Registration Authority",
        "C. OCSP responder",
        "D. Key escrow server"
      ],
      "num_answers": 1,
      "answer": "A. Certificate Authority",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ CA signs and issues certificates.",
        "B": "❌ RA verifies identities.",
        "C": "❌ OCSP validates revocation status.",
        "D": "❌ Key escrow stores recovery keys."
      }
    },

    {
      "question": "41. Which log file is most relevant for tracking authentication failures on Linux?",
      "options": [
        "A. /var/log/auth.log",
        "B. /var/log/dmesg",
        "C. /var/log/syslog",
        "D. /var/log/kern.log"
      ],
      "num_answers": 1,
      "answer": "A. /var/log/auth.log",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ auth.log stores authentication and authorization events.",
        "B": "❌ dmesg logs kernel ring buffer.",
        "C": "❌ syslog is general logging.",
        "D": "❌ kern.log stores kernel events."
      }
    },
    {
      "question": "42. SQL injection primarily targets which component?",
      "options": [
        "A. Database server",
        "B. DNS server",
        "C. Mail server",
        "D. Proxy server"
      ],
      "num_answers": 1,
      "answer": "A. Database server",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ SQLi manipulates DB queries.",
        "B": "❌ DNS isn't SQL-based.",
        "C": "❌ Mail servers not SQL-targeted.",
        "D": "❌ Proxy servers handle web traffic."
      }
    },
    {
      "question": "43. Which tool is used for Windows privilege escalation and token manipulation?",
      "options": [
        "A. Mimikatz",
        "B. Nikto",
        "C. Burp Suite",
        "D. Airgeddon"
      ],
      "num_answers": 1,
      "answer": "A. Mimikatz",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Mimikatz can manipulate security tokens and elevate privileges.",
        "B": "❌ Nikto scans web servers.",
        "C": "❌ Burp Suite tests web apps.",
        "D": "❌ Airgeddon targets Wi-Fi."
      }
    },
    {
      "question": "44. What is the main purpose of ARP?",
      "options": [
        "A. Map IP addresses to MAC addresses",
        "B. Map MAC to IP",
        "C. Resolve DNS queries",
        "D. Manage network routing"
      ],
      "num_answers": 1,
      "answer": "A. Map IP addresses to MAC addresses",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ ARP resolves IP → MAC.",
        "B": "❌ Reverse ARP (RARP) does the opposite.",
        "C": "❌ DNS resolves domain names.",
        "D": "❌ Routing is Layer 3."
      }
    },
    {
      "question": "45. Which type of attack places a rogue DHCP server on the network?",
      "options": [
        "A. DHCP starvation",
        "B. DHCP spoofing",
        "C. DNS poisoning",
        "D. MITM"
      ],
      "num_answers": 1,
      "answer": "B. DHCP spoofing",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ DHCP spoofing sends fake IP configuration.",
        "A": "❌ Starvation exhausts DHCP pool.",
        "C": "❌ DNS poisoning alters DNS records.",
        "D": "❌ MITM intercepts communication."
      }
    },

    {
      "question": "46. Which vulnerability scanner is open source?",
      "options": [
        "A. OpenVAS",
        "B. Qualys",
        "C. Nessus (commercial)",
        "D. Burp Suite Pro"
      ],
      "num_answers": 1,
      "answer": "A. OpenVAS",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ OpenVAS is a free/open-source scanner.",
        "B": "❌ Qualys is cloud/commercial.",
        "C": "❌ Nessus is commercial now.",
        "D": "❌ Burp Pro is proprietary."
      }
    },
    {
      "question": "47. Which action is part of the 'Maintain Access' phase in hacking?",
      "options": [
        "A. Installing a backdoor",
        "B. Scanning ports",
        "C. Footprinting",
        "D. Exploit development"
      ],
      "num_answers": 1,
      "answer": "A. Installing a backdoor",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Backdoors ensure persistent access.",
        "B": "❌ Scanning is reconnaissance.",
        "C": "❌ Footprinting happens before exploitation.",
        "D": "❌ Exploit development is earlier in the chain."
      }
    },
    {
      "question": "48. Which tool enumerates SMB shares on a target?",
      "options": [
        "A. smbclient",
        "B. Nikto",
        "C. sqlmap",
        "D. Fierce"
      ],
      "num_answers": 1,
      "answer": "A. smbclient",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ smbclient accesses/enumerates SMB shares.",
        "B": "❌ Nikto targets web servers.",
        "C": "❌ sqlmap targets SQL injection.",
        "D": "❌ Fierce enumerates DNS."
      }
    },
    {
      "question": "49. Which attack manipulates a switch's CAM table?",
      "options": [
        "A. MAC flooding",
        "B. ARP spoofing",
        "C. DNS hijacking",
        "D. Port scanning"
      ],
      "num_answers": 1,
      "answer": "A. MAC flooding",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ MAC flooding overflows CAM tables forcing broadcast mode.",
        "B": "❌ ARP spoofing targets ARP tables.",
        "C": "❌ DNS hijacking alters DNS.",
        "D": "❌ Port scanning does not affect switches."
      }
    },
    {
      "question": "50. Which of the following is used to detect rootkits?",
      "options": [
        "A. chkrootkit",
        "B. ifconfig",
        "C. traceroute",
        "D. nmap -sP"
      ],
      "num_answers": 1,
      "answer": "A. chkrootkit",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ chkrootkit is a Linux rootkit detector.",
        "B": "❌ ifconfig shows interfaces.",
        "C": "❌ traceroute maps hops.",
        "D": "❌ nmap -sP is ping sweep."
      }
    }
  ]
}
