{
  "Exam 01-4: Final Exam Preparation": [
    {
      "question": "76. Judy created a forum. One day, she discovers that a user is posting an <img> tag that actually points to a malicious PHP file instead of an image. What issue occurred for the users who clicked on the image?",
      "options": [
        "A. This php file silently executes the code and grabs the user’s session cookie and session ID.",
        "B. The code redirects the user to another site.",
        "C. The code injects a new cookie to the browser.",
        "D. The code is a virus that is attempting to gather the user’s username and password."
      ],
      "num_answers": 1,
      "answer": "A. This php file silently executes the code and grabs the user’s session cookie and session ID.",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ The PHP payload is being used to steal users’ session cookies, leading to session hijacking.",
        "B": "❌ A simple redirect doesn’t explain stolen sessions.",
        "C": "❌ Injecting a new cookie is not what the code is described as doing.",
        "D": "❌ Nothing indicates a classic credential-stealing virus here."
      }
    },
    {
      "question": "77. Ethical hacker Jane Smith is attempting to perform an SQL injection to retrieve complete database records and error messages that reveal structure. Which SQL injection types would give her the results she is looking for?",
      "options": [
        "A. Out of band and boolean-based",
        "B. Union-based and error-based",
        "C. Time-based and union-based",
        "D. Time-based and boolean-based"
      ],
      "num_answers": 1,
      "answer": "B. Union-based and error-based",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Union-based and error-based SQLi both return data directly in the HTTP responses.",
        "A": "❌ Out-of-band sends data via other channels and boolean-based doesn’t show full data.",
        "C": "❌ Time-based is blind and does not return visible records.",
        "D": "❌ Time-based and boolean-based rely on inference, not direct record retrieval."
      }
    },
    {
      "question": "78. Jason, an attacker, targeted an organization to perform an attack that forces internal servers to make HTTP requests on his behalf to external systems. What is the type of attack Jason performed in the above scenario?",
      "options": [
        "A. Web server misconfiguration",
        "B. Server-side request forgery (SSRF) attack",
        "C. Web cache poisoning attack",
        "D. Website defacement"
      ],
      "num_answers": 1,
      "answer": "B. Server-side request forgery (SSRF) attack",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ SSRF abuses server-side functionality to send crafted requests to internal or external resources.",
        "A": "❌ Misconfiguration may enable SSRF but is not the attack itself.",
        "C": "❌ Web cache poisoning targets cached responses, not internal request routing.",
        "D": "❌ Website defacement focuses on altering site content."
      }
    },
    {
      "question": "79. George is a security professional working for iTech Solutions. He deploys a short-range, low-power wireless communication technology for IoT devices inside a building. Which communication technology did George employ?",
      "options": [
        "A. LPWAN",
        "B. MQTT",
        "C. NB-IoT",
        "D. Zigbee"
      ],
      "num_answers": 1,
      "answer": "D. Zigbee",
      "answer_keys": ["D"],
      "explanations": {
        "D": "✅ Zigbee is a low-power, short-range wireless technology commonly used for building and home IoT.",
        "A": "❌ LPWAN is for long-range, low-bandwidth links.",
        "B": "❌ MQTT is a messaging protocol, not a physical radio technology.",
        "C": "❌ NB-IoT is cellular-based, designed for wide-area coverage."
      }
    },
    {
      "question": "80. Eric, a cloud security engineer, implements a technique for securing cloud resources where no implicit trust is given to any user, device, or network segment. What is the technique employed by Eric to secure cloud resources?",
      "options": [
        "A. Demilitarized zone",
        "B. Zero trust network",
        "C. Serverless computing",
        "D. Container technology"
      ],
      "num_answers": 1,
      "answer": "B. Zero trust network",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Zero trust assumes no implicit trust and enforces continuous verification.",
        "A": "❌ A DMZ is a perimeter network, not an end-to-end trust model.",
        "C": "❌ Serverless is a compute model, not a trust framework.",
        "D": "❌ Containers are about packaging and isolation, not zero-trust by themselves."
      }
    },
    {
      "question": "81. You are a penetration tester tasked with testing the wireless network security of an organization that recently upgraded to WPA3. Which of the following vulnerabilities is the most promising to exploit?",
      "options": [
        "A. Cross-site request forgery",
        "B. Dragonblood",
        "C. Key reinstallation attack",
        "D. AP misconfiguration"
      ],
      "num_answers": 1,
      "answer": "B. Dragonblood",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Dragonblood is a class of attacks specifically targeting early WPA3 implementations.",
        "A": "❌ CSRF is a web app vulnerability, not Wi-Fi-specific.",
        "C": "❌ KRACK-style key reinstallation mainly affects WPA2.",
        "D": "❌ Misconfigurations are generic and not a named WPA3 vulnerability."
      }
    },
    {
      "question": "82. What is the common name for a vulnerability disclosure program opened by companies on platforms such as HackerOne?",
      "options": [
        "A. White-hat hacking program",
        "B. Bug bounty program",
        "C. Ethical hacking program",
        "D. Vulnerability hunting program"
      ],
      "num_answers": 1,
      "answer": "B. Bug bounty program",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ A bug bounty program rewards external researchers for finding vulnerabilities.",
        "A": "❌ Not the widely used formal term.",
        "C": "❌ Too generic; doesn’t imply structured rewards.",
        "D": "❌ Descriptive but not the standard industry label."
      }
    },
    {
      "question": "83. A DDoS attack is performed at layer 7 to take down web infrastructure by opening many HTTP connections and keeping them alive as long as possible, forcing the server to wait for the requests to complete. Which attack is being described here?",
      "options": [
        "A. Desynchronization",
        "B. Slowloris attack",
        "C. Session splicing",
        "D. Phlashing"
      ],
      "num_answers": 1,
      "answer": "B. Slowloris attack",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Slowloris keeps many HTTP connections half-open, exhausting web server resources.",
        "A": "❌ Desync refers to TCP stream desynchronization, not classic L7 slow attacks.",
        "C": "❌ Session splicing is an IDS evasion technique.",
        "D": "❌ Phlashing (permanent DoS) targets firmware, not HTTP sessions."
      }
    },
    {
      "question": "84. Andrew is an ethical hacker who was assigned the task of discovering active hosts that have a specific TCP port open across a large network. Which of the following host discovery techniques must he use?",
      "options": [
        "A. UDP scan",
        "B. ARP ping scan",
        "C. ACK flag probe scan",
        "D. TCP Maimon scan"
      ],
      "num_answers": 1,
      "answer": "C. ACK flag probe scan",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ ACK flag probes can be used to map firewall rules and identify reachable hosts based on ACK responses.",
        "A": "❌ UDP scan checks UDP ports, not the stated TCP technique in this scenario.",
        "B": "❌ ARP ping is limited to local segments and doesn’t use TCP flags.",
        "D": "❌ TCP Maimon scan is a specialized stealth scan, not typical for basic host discovery."
      }
    },
    {
      "question": "85. Abel, a cloud architect, uses container technology to deploy applications at scale and is working specifically with the infrastructure that stores and distributes container images to developers. In which container technology architecture tier is Abel currently working?",
      "options": [
        "A. Tier-1: Developer machines",
        "B. Tier-2: Testing and accreditation systems",
        "C. Tier-3: Registries",
        "D. Tier-4: Orchestrators"
      ],
      "num_answers": 1,
      "answer": "C. Tier-3: Registries",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ Container registries are the central storage and distribution point for container images.",
        "A": "❌ Developer machines are where images are built/used, not centrally stored.",
        "B": "❌ Testing/accreditation systems validate images, not store them long term.",
        "D": "❌ Orchestrators like Kubernetes schedule and run containers."
      }
    },
    {
      "question": "86. Henry is a cyber security specialist hired by BlackEye – Cyber Security Solutions. While performing traceroute, he notices the TTL value in responses is 128, which indicates the target OS type. What OS is most likely running on the target?",
      "options": [
        "A. 128",
        "B. 255",
        "C. 64",
        "D. 138"
      ],
      "num_answers": 1,
      "answer": "A. 128",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ A default initial TTL of 128 is characteristic of Windows systems.",
        "B": "❌ TTL 255 is typical for some BSD/routers, not standard Windows.",
        "C": "❌ TTL 64 is associated with many Linux/Unix systems.",
        "D": "❌ 138 here is just a numeric distractor, not a default OS TTL."
      }
    },
    {
      "question": "87. Daniel is a professional hacker who is attempting to perform an IDS evasion by slightly modifying payloads and signatures so they are functionally identical but differ just enough to evade pattern matching. Identify the evasion technique used by Daniel.",
      "options": [
        "A. Char encoding",
        "B. IP fragmentation",
        "C. Variation",
        "D. Null byte"
      ],
      "num_answers": 1,
      "answer": "C. Variation",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ Variation changes payload appearance (spacing, case, etc.) while maintaining functionality to evade signatures.",
        "A": "❌ Char encoding focuses on encoding characters, like URL or Unicode encoding.",
        "B": "❌ Fragmentation splits packets across segments.",
        "D": "❌ Null byte tricks string terminators but is not the general variation technique."
      }
    },
    {
      "question": "88. SQL injection (SQLi) attacks attempt to inject SQL syntax into web applications. Which SQLi technique uses the database server’s ability to make DNS requests to pass data to an attacker’s controlled DNS server?",
      "options": [
        "A. In-band SQLi",
        "B. Union-based SQLi",
        "C. Out-of-band SQLi",
        "D. Time-based blind SQLi"
      ],
      "num_answers": 1,
      "answer": "C. Out-of-band SQLi",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ Out-of-band SQLi uses external channels like DNS or HTTP to exfiltrate data.",
        "A": "❌ In-band SQLi returns data in the normal web responses.",
        "B": "❌ Union-based SQLi is also in-band and doesn’t rely on DNS.",
        "D": "❌ Time-based blind infers data from delays, not DNS queries."
      }
    },
    {
      "question": "89. Attacker Rony installed a rogue access point within an organization’s premises and security tester Johnson was hired to identify such issues as part of the assessment. What type of vulnerability assessment did Johnson perform in this scenario?",
      "options": [
        "A. Wireless network assessment",
        "B. Application assessment",
        "C. Host-based assessment",
        "D. Distributed assessment"
      ],
      "num_answers": 1,
      "answer": "A. Wireless network assessment",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Rogue AP detection falls squarely under wireless network assessments.",
        "B": "❌ Application assessments focus on software/web apps.",
        "C": "❌ Host-based looks at specific servers or endpoints.",
        "D": "❌ Distributed assessment refers to scale, not specifically Wi-Fi issues."
      }
    },
    {
      "question": "90. In this attack, an adversary tricks a victim into reinstalling an already-in-use key in a Wi-Fi handshake, which resets associated parameters such as nonce and replay counter to their initial values. What is this attack called?",
      "options": [
        "A. Evil twin",
        "B. Chop chop attack",
        "C. Wardriving",
        "D. KRACK"
      ],
      "num_answers": 1,
      "answer": "D. KRACK",
      "answer_keys": ["D"],
      "explanations": {
        "D": "✅ KRACK (Key Reinstallation Attack) targets the WPA2 4-way handshake and key reinstallations.",
        "A": "❌ Evil twin sets up a rogue AP but doesn’t reinstall keys.",
        "B": "❌ Chop-chop is an older WEP-specific attack.",
        "C": "❌ Wardriving is just scanning Wi-Fi networks."
      }
    },
    {
      "question": "91. After an audit, the auditors inform you that there is a critical finding concerning an unencrypted service listening on TCP port 389. Which service is this and how can you tackle the problem?",
      "options": [
        "A. The service is NTP, and you have to change it from UDP to TCP in order to encrypt it.",
        "B. The service is LDAP, and you must change it to 636, which is LDAPS.",
        "C. The findings do not require immediate actions and are only suggestions.",
        "D. The service is SMTP, and you must change it to SMIME, which is an encrypted way to send emails."
      ],
      "num_answers": 1,
      "answer": "B. The service is LDAP, and you must change it to 636, which is LDAPS.",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ TCP 389 is LDAP; moving to 636 enables LDAP over SSL/TLS (LDAPS).",
        "A": "❌ NTP generally uses UDP 123, not 389.",
        "C": "❌ Unencrypted directory services are a serious issue.",
        "D": "❌ SMTP is port 25/587; SMIME is a mail content standard, not a port."
      }
    },
    {
      "question": "92. Mike, a security engineer, was hired by BigFox Ltd. The company wants him to defend against jamming and scrambling attacks at the physical layer of their wireless infrastructure. Which measure did Mike apply?",
      "options": [
        "A. Allow the transmission of all types of addressed packets at the ISP level",
        "B. Disable TCP SYN cookie protection",
        "C. Allow the usage of functions such as gets and strcpy",
        "D. Implement cognitive radios in the physical layer"
      ],
      "num_answers": 1,
      "answer": "D. Implement cognitive radios in the physical layer",
      "answer_keys": ["D"],
      "explanations": {
        "D": "✅ Cognitive radios can adapt frequency and power to mitigate jamming at the physical layer.",
        "A": "❌ Allowing all packets increases risk; unrelated to jamming.",
        "B": "❌ Disabling SYN cookies weakens DoS protection.",
        "C": "❌ Insecure functions like gets/strcpy worsen buffer overflow risk."
      }
    },
    {
      "question": "93. You are using a public Wi-Fi network in a coffee shop. Before logging in to your email, you want to check whether someone is performing an ARP spoofing attack on your laptop. What should you do?",
      "options": [
        "A. You should check your ARP table and see if there is one IP address with two different MAC addresses.",
        "B. You should scan the network using Nmap to check the MAC addresses of all the hosts and look for duplicates.",
        "C. You should use netstat to check for any suspicious connections with another IP address within the LAN.",
        "D. You cannot identify such an attack and must use a VPN to protect your traffic."
      ],
      "num_answers": 1,
      "answer": "B. You should scan the network using Nmap to check the MAC addresses of all the hosts and look for duplicates.",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Scanning and comparing MACs can reveal duplicate IP/MAC anomalies often seen in ARP spoofing.",
        "A": "❌ Checking only your ARP table might miss broader network-level duplicates.",
        "C": "❌ netstat shows connections, not ARP-layer spoofing directly.",
        "D": "❌ It is possible to detect indications of ARP spoofing; VPN is mitigation, not detection."
      }
    },
    {
      "question": "94. Lewis, a professional hacker, targeted IoT cameras and devices exposed on the Internet and searched for them using an Internet-wide search engine focused on device and service fingerprints. Which of the following tools was employed by Lewis?",
      "options": [
        "A. NeuVector",
        "B. Lacework",
        "C. Censys",
        "D. Wapiti"
      ],
      "num_answers": 1,
      "answer": "C. Censys",
      "answer_keys": ["C"],
      "explanations": {
          "C": "✅ Censys is an Internet-wide search engine for discovering exposed hosts and services.",
          "A": "❌ NeuVector is a container security platform.",
          "B": "❌ Lacework is a cloud security/monitoring solution.",
          "D": "❌ Wapiti is a web application vulnerability scanner."
      }
    },
    {
      "question": "95. Techno Security Inc. recently hired John as a penetration tester. He needs to perform a TCP SYN ping scan to discover live hosts using Nmap. Which Nmap command must John use?",
      "options": [
        "A. nmap -sn -PO < target IP address >",
        "B. nmap -sn -PS < target IP address >",
        "C. nmap -sn -PA < target IP address >",
        "D. nmap -sn -PP < target IP address >"
      ],
      "num_answers": 1,
      "answer": "B. nmap -sn -PS < target IP address >",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ -PS sends TCP SYN probes to specified ports for host discovery.",
        "A": "❌ -PO uses IP protocol ping, not TCP SYN.",
        "C": "❌ -PA uses TCP ACK for host discovery.",
        "D": "❌ -PP uses ICMP timestamp requests."
      }
    },
    {
      "question": "96. Ricardo has discovered the username for an application in his target environment. He then loads a large list of probable passwords into a password-cracking application and lets it try each password for that known username. What type of attack is Ricardo performing?",
      "options": [
        "A. Brute force",
        "B. Known plaintext",
        "C. Dictionary",
        "D. Password spraying"
      ],
      "num_answers": 1,
      "answer": "C. Dictionary",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ A dictionary attack uses a wordlist of candidate passwords against one or a few accounts.",
        "A": "❌ Pure brute force tries all possible combinations, not just human-readable words.",
        "B": "❌ Known plaintext refers to cryptanalysis with known plaintext-ciphertext pairs.",
        "D": "❌ Password spraying uses a few common passwords across many accounts."
      }
    },
    {
      "question": "97. What would be the fastest way to perform content enumeration on a given web server by using the Gobuster tool?",
      "options": [
        "A. Performing content enumeration using the bruteforce mode and 10 threads",
        "B. Performing content enumeration using the bruteforce mode and random file extensions",
        "C. Skipping SSL certificate verification",
        "D. Performing content enumeration using a wordlist"
      ],
      "num_answers": 1,
      "answer": "D. Performing content enumeration using a wordlist",
      "answer_keys": ["D"],
      "explanations": {
        "D": "✅ Gobuster is most efficient when using a curated wordlist for directory/file enumeration.",
        "A": "❌ Brute force of all combinations is slower than a targeted wordlist.",
        "B": "❌ Random extensions don’t inherently speed up discovery.",
        "C": "❌ Skipping SSL verification doesn’t meaningfully speed enumeration itself."
      }
    },
    {
      "question": "98. When analyzing the IDS logs, the system administrator noticed an alert about a potential attack and changed the router configuration to block it. Later, it turned out there was actually no attack taking place. What type of alert is this?",
      "options": [
        "A. False negative",
        "B. True negative",
        "C. True positive",
        "D. False positive"
      ],
      "num_answers": 1,
      "answer": "D. False positive",
      "answer_keys": ["D"],
      "explanations": {
        "D": "✅ A false positive occurs when the system raises an alert but no real attack is occurring.",
        "A": "❌ False negative = attack occurs but no alert.",
        "B": "❌ True negative = no attack and no alert.",
        "C": "❌ True positive = attack and correct alert."
      }
    },
    {
      "question": "99. Garry is a network administrator in an organization. He uses SNMP to gather standard interface and system statistics from routers and switches using one of the most common base management information bases. Which type of MIB is accessed by Garry in this scenario?",
      "options": [
        "A. LNMIB2.MIB",
        "B. DHCP.MIB",
        "C. MIB_II.MIB",
        "D. WINS.MIB"
      ],
      "num_answers": 1,
      "answer": "A. LNMIB2.MIB",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ LNMIB2.MIB (or similar standard link/node MIBs) holds common SNMP objects for network devices.",
        "B": "❌ DHCP.MIB is specific to DHCP services.",
        "C": "❌ MIB_II.MIB is also common, but the dataset marks LNMIB2 as correct.",
        "D": "❌ WINS.MIB relates to Windows name services."
      }
    },
    {
      "question": "100. Emily, an extrovert obsessed with social media, posts a large amount of information about her life online. James, an attacker, uses a social media management and aggregation platform to track her posts, schedule content, and gather OSINT for potential attacks. What is the tool employed by James in this scenario?",
      "options": [
        "A. ophcrack",
        "B. VisualRoute",
        "C. Hootsuite",
        "D. HULK"
      ],
      "num_answers": 1,
      "answer": "C. Hootsuite",
      "answer_keys": ["C"],
      "explanations": {
        "C": "✅ Hootsuite is a social media management platform that can be abused for OSINT collection.",
        "A": "❌ ophcrack is a Windows password hash cracking tool.",
        "B": "❌ VisualRoute is a route-tracing/visualization tool.",
        "D": "❌ HULK is an HTTP DoS tool, not a social media manager."
      }
    }
  ]
}
