Courseiva

EC-Council Certified Penetration Testing Professional (CPENT) (CPENT) (CPENT) — Questions 1–75

254 questions total · 4 pages · All types, answers revealed

Page 1 of 4

Page 2
1
Multi-Selectmedium

A hardware penetration tester is investigating an IoT device printed circuit board (PCB) to extract sensitive firmware or debug data. Which THREE of the following physical hardware interfaces are commonly targeted by testers to gain console access or read memory? (Choose THREE)

Select 3 answers
A.HDMI display output pins used for high-speed video graphics rendering
B.RJ-45 Ethernet port pin 8 carrying PoE (Power over Ethernet) voltage directly to the CPU core
C.SPI (Serial Peripheral Interface) flash memory pins
D.UART (Universal Asynchronous Receiver-Transmitter)
E.JTAG (Joint Test Action Group)
AnswersC, D, E

SPI flash pins expose the raw firmware chip directly; attaching a programmer or logic analyser to the CLK, MOSI, MISO and CS lines allows testers to read or dump memory contents without booting the device, satisfying the scenario's requirement for extracting firmware or debug data from the PCB.

Why this answer

Physical hardware hacking heavily relies on serial debug interfaces like UART, JTAG for boundary-scan debugging, and SPI/I2C for flash memory extraction.

2
MCQmedium

When executing BloodHound to map Active Directory attack paths, which collector option should be specified via SharpHound to gather computer local admin rights without requiring Domain Admin privileges?

A.SharpHound.exe -CollectionMethod LocalAdmin
B.SharpHound.exe -CollectionMethod GPOChanges
C.SharpHound.exe -CollectionMethod TrustList
D.SharpHound.exe -CollectionMethod DCOptions
AnswerA

The LocalAdmin collection method queries each computer's local Administrators group via SAM-R, harvesting local admin mappings without needing Domain Admin rights. This directly satisfies the stem's constraint of gathering local admin rights non-privileged, since SAM-R reads rely on standard remote access rather than elevated directory permissions.

Why this answer

SharpHound's LocalAdmin collection method enumerates local administrator rights on computers by querying each machine (via SAM-R, remote registry, or NetSessionEnum depending on privileges) and records which principals have admin access. This data feeds BloodHound's 'AdminTo' edges, which are essential for finding privilege-escalation paths from a low-privileged user to Domain Admin — and it can be collected with only the rights of the invoking user, not Domain Admin.

Exam trap

CPENT often tests whether candidates know the specific SharpHound -CollectionMethod values and what each one gathers — picking a method that sounds related (GPOChanges, TrustList) instead of LocalAdmin is the common error.

How to eliminate wrong answers

Option B (GPOChanges) is wrong because it collects Group Policy object modifications and affected users/computers, not local admin rights. Option C (TrustList) is wrong because it enumerates domain trust relationships, which is unrelated to local admin membership. Option D (DCOptions) is wrong because it collects domain controller configuration and password policy data, not local admin rights on workstations and servers.

3
MCQmedium

A security analyst is investigating an IoT incident where an attacker gained unauthorized access to an MQTT broker. The analyst wants to inspect the broker configuration file on a Debian-based Linux system running Eclipse Mosquitto to check if anonymous access was enabled. What is the default file path for the Mosquitto configuration file?

A./etc/mosquitto/mosquitto.conf
B./var/lib/mqtt/config.ini
C./opt/broker/settings.xml
D./etc/init.d/mosquitto.cfg
AnswerA

Mosquitto's Debian package installs its main configuration at /etc/mosquitto/mosquitto.conf, so inspecting that file reveals whether `allow_anonymous true` is set. This satisfies the analyst's need to verify anonymous access on the broker, since the daemon reads this path by default unless overridden with the -c flag.

Why this answer

Eclipse Mosquitto stores its primary configuration settings in '/etc/mosquitto/mosquitto.conf' on standard Linux installations.

4
MCQeasy

A penetration tester is analyzing a compromised Windows system and wants to check for stored credentials in the Windows Credential Manager. Which command-line utility can be used to list saved credentials?

A.gpresult /r
B.net user /domain
C.cmdkey /list
D.whoami /priv
AnswerC

The `cmdkey /list` utility enumerates all entries stored in Windows Credential Manager, displaying target names and types without revealing passwords. It directly satisfies the scenario's requirement to list saved credentials on the compromised host, running natively from the command line without additional tooling.

Why this answer

The cmdkey utility is a built-in Windows command-line tool that manages stored credentials in the Credential Manager. Running 'cmdkey /list' enumerates all saved credentials (including domain, generic, and certificate-based) for the current user, showing target names and types. This is the standard way a penetration tester checks for cached credentials that could be reused for lateral movement.

Exam trap

CPENT often tests the confusion between commands that enumerate accounts or privileges (net user, whoami /priv) and those that specifically enumerate stored credentials, causing candidates to pick a command that lists users rather than cached secrets.

How to eliminate wrong answers

Option A is wrong because 'gpresult /r' displays the Resultant Set of Policy (RSoP) for a user or computer — it reports applied Group Policy objects, not stored credentials. Option B is wrong because 'net user /domain' lists domain user accounts, not credentials stored on the local system. Option D is wrong because 'whoami /priv' shows the privileges assigned to the current token (e.g., SeDebugPrivilege), which is useful for privilege escalation analysis but does not reveal saved credentials.

5
MCQeasy

Which native Windows command-line tool can be used by a penetration tester to view cached Kerberos tickets currently loaded in the user session?

A.ticketmgr
B.winrm get tickets
C.kerbuse
D.klist
AnswerD

`klist` queries the local Kerberos credential cache and lists tickets currently held in the logon session, including the initial TGT and any service tickets. This directly satisfies the stem's requirement to view cached Kerberos tickets natively, without external tooling or elevated privileges.

Why this answer

klist is the native Windows command-line utility that displays currently cached Kerberos tickets (TGTs and service tickets) for the logged-on user session. Penetration testers use it to enumerate available tickets before attempting pass-the-ticket or Kerberoasting. It is built into Windows and requires no additional tooling.

Exam trap

CPENT often tests whether candidates recognize the actual native Windows Kerberos tooling versus plausible-sounding fabricated command names, so memorize klist as the canonical ticket viewer.

How to eliminate wrong answers

Option A is wrong because ticketmgr is not a native Windows command — no such built-in utility exists for Kerberos ticket enumeration. Option B is wrong because 'winrm get tickets' is not a valid WinRM subcommand; WinRM is a remote management protocol, not a ticket viewer. Option C is wrong because kerbuse is not a real Windows command-line tool for viewing Kerberos tickets.

6
MCQmedium

An ethical hacker is testing an ICS network that utilizes the IEC 60870-5-104 protocol for telecontrol equipment. The hacker wants to test whether control commands can be sent without proper authentication. Which Wireshark filter syntax should the hacker apply to isolate IEC 104 application layer frames in a capture file?

A.s7comm
B.mms
C.iec104
D.bacnet
AnswerC

The `iec104` display filter isolates IEC 60870-5-104 application-layer frames, matching the telecontrol traffic the hacker needs to inspect for unauthenticated control commands. Unlike generic TCP port filters, it decodes the APCI/ASDU structure, exposing command type identifiers and cause-of-transmission fields directly, so injected control commands can be identified without manual payload parsing.

Why this answer

IEC 60870-5-104 operates over TCP port 2404. Wireshark decodes this under the 'iec104' protocol filter.

7
MCQmedium

During an assessment, a penetration tester captures an LLMNR/NBT-NS broadcast request on the local network segment. Which tool can the tester use to spoof the response and capture the resulting NTLMv2 password hash when the victim machine attempts authentication?

A.Cain & Abel
B.Ettercap
C.Responder
D.Wireshark
AnswerC

Responder poisons LLMNR, NBT-NS and mDNS queries, answering the broadcast so the victim authenticates to the attacker and surrenders its NTLMv2 hash. This directly satisfies the stem's requirement to spoof the response and capture credentials.

Why this answer

Responder is a tool specifically designed to poison LLMNR, NBT-NS, and mDNS queries, spoofing responses to capture NTLMv1/v2 hashes when victims attempt authentication. It listens for broadcast name resolution requests and responds as the requested host, tricking the victim into sending credentials. This makes it the correct tool for this scenario.

Exam trap

CPENT often tests the specific tool for LLMNR/NBT-NS poisoning, and candidates may confuse Responder with general MITM tools like Ettercap or Cain & Abel, which do not have the same specialized functionality.

How to eliminate wrong answers

Option A is wrong because Cain & Abel is an older password recovery tool that can perform ARP poisoning and capture credentials, but it is not specifically designed for LLMNR/NBT-NS spoofing and is less effective in modern Windows environments. Option B is wrong because Ettercap is a man-in-the-middle suite for switched networks that can perform ARP spoofing and protocol dissection, but it does not natively handle LLMNR/NBT-NS poisoning without additional plugins. Option D is wrong because Wireshark is a passive packet analyzer; it can capture LLMNR traffic but cannot spoof responses or capture NTLMv2 hashes from authentication attempts.

8
Multi-Selecthard

An operator has gained administrative access to a Linux machine and wants to ensure persistent access that survives reboots while minimizing the chance of detection by standard security audits. Which THREE persistence methods are commonly implemented on Linux systems?

Select 3 answers
A.Adding a scheduled task or cron job in /etc/crontab or user crontabs to periodically execute a reverse shell
B.Adding a malicious SSH public key to the target user's ~/.ssh/authorized_keys file
C.Modifying the Windows Registry Run key using winereg
D.Injecting shellcode into the BIOS/UEFI firmware via flashrom without user interaction
E.Creating a custom systemd service unit file that executes a backdoor script on startup
AnswersA, B, E

Cron jobs in /etc/crontab or user crontabs execute automatically at scheduled intervals and survive reboots, satisfying the persistence requirement. They blend into legitimate administrative scheduling, so standard audits rarely flag them, unlike obvious rogue services or modified init scripts. This makes cron a low-noise, reboot-resilient mechanism.

Why this answer

Option A is correct because cron jobs placed in /etc/crontab or user crontabs (e.g., via crontab -e) are executed automatically by the cron daemon at scheduled intervals, and they persist across reboots since the crontab files are stored on disk and reloaded at boot. Option B is correct because appending an attacker-controlled public key to ~/.ssh/authorized_keys grants passwordless SSH login as that user, and the file persists on disk across reboots, providing a stealthy, standard-protocol backdoor. Option E is correct because a custom systemd unit file (e.g., in /etc/systemd/system/ with WantedBy=multi-user.target) is started by systemd at boot, giving reliable persistent execution of a backdoor script.

Option C is incorrect because winereg is not a real Linux tool and the Windows Registry Run key is a Windows persistence mechanism, not applicable to a Linux target. Option D is incorrect because injecting shellcode into BIOS/UEFI via flashrom requires physical access or firmware write privileges, is highly risky and hardware-specific, and is not a commonly implemented Linux persistence method.

9
MCQhard

An attacker has gained access to an internal machine and wants to determine whether network traffic can be redirected using source routing options in IPv4 packets. Which tool allows crafting custom IPv4 packets with source routing options enabled?

A.Hping3
B.Wget
C.Netcat
D.Nmap
AnswerA

Hping3 crafts custom IPv4 packets and supports the LSRR and SSRR source routing options, letting the attacker test whether routers honour them. This directly satisfies the stem's need to determine if traffic can be redirected via IPv4 source routing.

Why this answer

Hping3 is a command-line packet crafter that allows fine-grained control over TCP/IP header fields, including the IPv4 LSRR (Loose Source and Record Route) and SSRR (Strict Source and Record Route) options. It can send custom packets with source routing enabled to test whether routers honor or drop these options, making it the correct tool for this assessment.

Exam trap

CPENT often tests whether candidates know which tool exposes raw IP option manipulation — the trap is choosing Nmap because it is the 'go-to' network tool, but Nmap's IP option support is limited and Hping3 is the purpose-built packet crafter for source routing tests.

How to eliminate wrong answers

Option B is wrong because Wget is an HTTP/FTP file download utility — it cannot craft or manipulate IP headers. Option C is wrong because Netcat is a general-purpose TCP/UDP connection tool for reading and writing data streams, but it does not expose IP option fields for source routing. Option D is wrong because Nmap is a port scanner and service/OS fingerprinting tool; while it has some packet crafting via NSE and --ip-options, it is not designed for arbitrary source-routed packet generation the way Hping3 is.

10
Multi-Selectmedium

When conducting lateral movement in an Active Directory environment, which TWO of the following techniques are commonly used to move from a compromised workstation to a server?

Select 2 answers
A.DHCP spoofing
B.DNS poisoning
C.WMI (Windows Management Instrumentation)
D.PsExec
E.ARP cache poisoning
AnswersC, D

WMI executes commands and methods on remote Windows hosts over DCOM or WinRM using valid credentials, letting an attacker run processes on a server from a compromised workstation. This makes it a standard lateral movement technique within Active Directory environments.

Why this answer

WMI (Windows Management Instrumentation) is correct because attackers can use it remotely via DCOM/RPC (typically over TCP 135 plus dynamic RPC ports) to execute commands or spawn processes on a target server using valid domain credentials, making it a standard lateral movement technique in Active Directory environments. PsExec is also correct because it authenticates to the target's ADMIN$/SMB service (TCP 445), copies a service binary, and creates/remotely starts a Windows service to execute code as SYSTEM, which is a classic workstation-to-server lateral movement method. DHCP spoofing is not correct here because it is a rogue DHCP server attack used for initial access, traffic interception, or man-in-the-middle on a local segment, not for authenticated remote code execution on a server.

DNS poisoning is not correct because it redirects name resolution to malicious hosts and does not by itself provide code execution or administrative access on a target server. ARP cache poisoning is not correct because it is a layer-2 man-in-the-middle technique for intercepting or altering local traffic, not a technique for moving laterally by executing code on a remote server.

11
MCQeasy

You have gained access to a Linux jump box and need to set up a local port forward using SSH to access an internal web application running on port 80 of a restricted server (10.0.0.5) that is only accessible from the jump box. Which SSH client flag combination establishes a local port forwarding tunnel listening on port 8080 of your attacking machine?

A.ssh -D 8080 user@jumpbox
B.ssh -L 8080:10.0.0.5:80 user@jumpbox
C.ssh -R 8080:10.0.0.5:80 user@jumpbox
D.ssh -w 8080:80 user@jumpbox
AnswerB

The -L flag creates local port forwarding, binding port 8080 on the attacking machine and tunnelling traffic through the jump box to 10.0.0.5 port 80. This satisfies the constraint that the internal server is reachable only from the jump box.

Why this answer

The -L flag specifies local port forwarding. The syntax is -L [bind_address:]port:remote_host:remote_port, along with -N to prevent executing a remote command and -f to run in the background.

12
MCQhard

An ICS penetration tester is auditing a substation utilizing the IEC 61850 standard for electrical substation automation. The tester captures Generic Object Oriented Substation Events (GOOSE) messages on the network. Which Layer 2 Ethernet type hex value identifies GOOSE multicast frames?

A.0x0800
B.0x86DD
C.0x88B8
D.0x88E5
AnswerC

IEC 61850 GOOSE frames are encapsulated directly in Ethernet with EtherType 0x88B8, distinguishing them from MMS (0x88BA) and SV (0x88BA/0x88B9 variants). This Layer 2 value lets the tester filter and identify GOOSE traffic on the substation network.

Why this answer

GOOSE messages in IEC 61850 bypass the IP/TCP stack for speed and operate directly at Layer 2 using EtherType 0x88B8.

13
MCQmedium

During an internal engagement, a penetration tester gains access to a Linux host that has multiple network interfaces. The tester needs to determine which interface can route to the 10.10.10.0/24 subnet and what the next-hop gateway is. Which command provides this information most directly?

A.ifconfig -a
B.arp -a
C.netstat -rn
D.ip route get 10.10.10.1
AnswerD

The ip route get command queries the kernel routing table for the path to a specific destination. It returns the outgoing interface and the source IP that would be used, and often the gateway. This directly answers which interface and next hop are used for 10.10.10.1, making it the most precise tool for the scenario.

Why this answer

The ip route get command performs a routing table lookup for a specific destination and reports the exact outgoing interface, source address, and gateway that the kernel would use. This directly answers both parts of the question: which interface can reach the subnet and what the next hop is. Other commands list interfaces or routes but do not resolve the path for a given target address.

Exam trap

The trap here is assuming that listing all routes or interfaces is equivalent to querying the kernel for the actual path it would select to a specific destination.

14
MCQeasy

A penetration tester is analyzing a smart medical pump and needs to check for open ports and running services on the embedded operating system. Using Nmap, the tester wants to perform a TCP SYN scan against the device while avoiding noisy service version detection to remain stealthy. Which Nmap flag specifies a SYN stealth scan?

A.-sT
B.-sP
C.-sS
D.-sU
AnswerC

The -sS flag performs a TCP SYN scan, sending SYN packets and never completing the handshake, so no full connection is logged. It satisfies the stealth requirement by omitting service version detection, which -sV would add and thereby generate noisy, easily detected probes.

Why this answer

The -sS flag tells Nmap to perform a TCP SYN (half-open) scan: it sends a SYN, waits for SYN/ACK (open) or RST (closed), then sends RST instead of completing the three-way handshake. This is faster and stealthier than a full connect scan because no session is ever established, so application-layer logs on the target typically never record the probe. It requires raw-socket privileges (root/SYSTEM or CAP_NET_RAW).

Exam trap

CPENT often tests the difference between -sS (SYN stealth) and -sT (full connect) — candidates who forget that -sT completes the handshake and is logged will pick the wrong flag.

How to eliminate wrong answers

Option A (-sT) is wrong because it performs a full TCP connect() scan that completes the three-way handshake, which is logged by the target application and is noisier — the opposite of what the question asks. Option B (-sP) is wrong because it is the deprecated ping-scan flag (now -sn) used for host discovery, not port scanning. Option D (-sU) is wrong because it initiates a UDP scan, which is a different protocol entirely and irrelevant to a TCP SYN scan.

15
Multi-Selecthard

An advanced adversary has gained Domain Administrator privileges and wants to establish stealthy, long-term persistence in Active Directory without relying solely on traditional user accounts or standard scheduled tasks. Which THREE advanced persistence mechanisms can be deployed in an Active Directory environment? (Choose THREE)

Select 3 answers
A.AD CS Certificate Mapping (mapping a rogue certificate to a domain account for persistent PKINIT authentication)
B.SID History Injection (appending a high-privileged SID to a standard user account's sIDHistory attribute)
C.DCShadow (registering a rogue Domain Controller to inject objects directly into the AD database without triggering standard event logs)
D.Running the standard Windows Disk Defragmenter (defrag.exe) on the Domain Controller C: drive
E.Modifying the Windows TCP/IP stack registry keys to disable DHCP client notifications
AnswersA, B, C

AD CS certificate mapping lets an attacker with CA access issue a certificate tied to a domain account, enabling persistent PKINIT authentication. This survives password resets and evades traditional account-based detection, satisfying the requirement for stealthy persistence beyond standard user accounts or scheduled tasks.

Why this answer

Option A is correct because AD CS certificate mapping lets an attacker who controls a rogue CA or template map a certificate to a domain account, enabling persistent PKINIT authentication that survives password resets and is hard to detect. Option B is correct because SID History Injection appends a high-privileged SID (e.g., Domain Admins) to a standard user's sIDHistory attribute, granting that account privileged access that persists across sessions and is often overlooked by standard account reviews. Option C is correct because DCShadow registers a rogue Domain Controller via replication (using DRSUAPI) to inject objects and attribute changes directly into the AD database, bypassing normal change-tracking and many standard event logs.

Option D is not a persistence mechanism—defrag.exe is a routine disk maintenance utility with no security or persistence impact on AD. Option E is also unrelated to persistence; modifying TCP/IP registry keys to disable DHCP client notifications is a network configuration tweak, not an Active Directory persistence technique.

Exam trap

CPENT often tests whether candidates can distinguish genuine AD persistence primitives from unrelated system maintenance or network tweaks, luring them toward plausible-sounding but ineffective options.

16
MCQmedium

You have compromised a Windows workstation and want to maintain persistence by ensuring your malicious executable runs every time a user logs on. You have local administrator rights. Which registry key should you modify?

A.HKLM\Software\Microsoft\Windows\CurrentVersion\Run
B.HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon
C.HKCU\Software\Microsoft\Windows\CurrentVersion\Run
D.HKLM\System\CurrentControlSet\Services
AnswerA

The HKLM\Software\Microsoft\Windows\CurrentVersion\Run key is a common location for programs to run at system startup for all users. Since the tester has local administrator rights, they can modify this key to add a malicious executable that will execute each time any user logs on. This provides persistence across reboots and user logons.

Why this answer

The HKLM\Software\Microsoft\Windows\CurrentVersion\Run key is a standard location for programs that should run at startup for all users. With local administrator rights, a tester can add an entry here to ensure their executable runs every time any user logs on. This provides system-wide persistence and survives reboots.

It is a common technique used by malware and penetration testers alike.

Exam trap

The trap here is choosing the HKCU Run key, which only affects the current user, instead of the HKLM Run key, which provides system-wide persistence for all users.

17
Multi-Selecthard

An attacker has successfully established a man-in-the-middle position on a local network segment using ARP spoofing. To ensure they capture sensitive authentication traffic, which THREE tools or utilities can capture and parse credentials passing across the wire? (Choose THREE)

Select 3 answers
A.John the Ripper
B.Wireshark
C.Sqlmap
D.Bettercap
E.Tcpdump
AnswersB, D, E

Wireshark passively captures frames on the segment and decodes protocols such as HTTP Basic, FTP and Telnet, extracting plaintext credentials from the intercepted traffic. Its protocol dissectors parse authentication fields automatically, satisfying the requirement to capture and parse credentials obtained via the ARP-spoofed man-in-the-middle position.

Why this answer

Wireshark (B) is correct because it is a protocol analyzer that captures live packets on an interface and includes dissectors that can parse authentication protocols such as HTTP Basic, FTP, Telnet, and Kerberos pre-authentication data, exposing credentials in cleartext or crackable form. Bettercap (D) is correct because it is a MITM framework with built-in ARP spoofing, sniffing, and credential-sniffing modules (e.g., net.sniff) that actively capture and parse credentials such as HTTP POST logins, FTP, and NTLM hashes from the wire. Tcpdump (E) is correct because it captures raw packets on the segment and, with the -A or -X flags, prints payload contents in ASCII/hex so cleartext credentials in protocols like FTP, Telnet, or HTTP can be read directly.

John the Ripper (A) is a password-cracking tool that operates on captured hash files offline and does not capture or parse live network traffic, and Sqlmap (C) is a SQL injection exploitation tool that targets web application databases rather than sniffing credentials off a network segment.

Exam trap

CPENT often tests whether candidates can separate capture/analysis tools (Wireshark, Tcpdump, Bettercap) from offline cracking tools (John the Ripper) and exploitation tools (Sqlmap); the word 'capture' is the key discriminator.

18
MCQhard

An attacker has gained command execution on an internal machine and wants to bypass egress filtering that blocks all outbound TCP and UDP ports except port 53. Which tool can be used to tunnel arbitrary TCP traffic encapsulated inside DNS queries out of the network?

A.Socat
B.Metasploit Meterpreter reverse_tcp
C.Netcat
D.Dnscat2
AnswerD

Dnscat2 encapsulates arbitrary TCP traffic within DNS query and response records, so it traverses the egress filter that permits only port 53. It provides an encrypted command-and-control channel over the DNS protocol, satisfying the constraint of tunnelling TCP through DNS.

Why this answer

Dnscat2 is a purpose-built DNS tunneling tool that encapsulates arbitrary TCP traffic inside DNS queries and responses, allowing it to traverse egress filters that only permit port 53. It uses a client-server architecture where the server acts as an authoritative DNS server, and the client encodes data in DNS record types (TXT, CNAME, MX, etc.), effectively creating a covert command-and-control channel. Because the traffic appears as legitimate DNS queries, it bypasses firewalls that block all other outbound TCP/UDP ports.

Exam trap

CPENT often tests the misconception that any TCP relay tool (like Netcat or Socat) can bypass egress filtering by simply using port 53, but they cannot encapsulate traffic inside DNS; only specialized DNS tunneling tools like dnscat2 can achieve this.

How to eliminate wrong answers

Option A is wrong because Socat is a general-purpose relay tool that can forward TCP connections but does not natively encapsulate traffic within DNS queries; it would require an external DNS tunneling wrapper. Option B is wrong because Metasploit Meterpreter reverse_tcp establishes a direct TCP connection back to the attacker, which would be blocked by the egress filter since it uses a non-53 port. Option C is wrong because Netcat creates raw TCP or UDP connections and cannot encapsulate traffic inside DNS; it would also be blocked by the egress filter.

19
MCQhard

You are conducting an external penetration test against a company's web server. You discover that the server is vulnerable to a buffer overflow in a custom CGI script. You want to exploit it to gain a reverse shell. Which Metasploit payload should you use to establish a Meterpreter session?

A.php/meterpreter/reverse_tcp
B.linux/x86/meterpreter/reverse_tcp
C.java/meterpreter/reverse_tcp
D.windows/meterpreter/reverse_tcp
AnswerB

This payload is appropriate for a Linux target, which is typical for a web server running a CGI script. It establishes a reverse TCP connection back to the attacker and provides a Meterpreter session, allowing full control. The architecture (x86) is common, but you should verify the target architecture before use.

Why this answer

For a Linux-based web server with a vulnerable CGI script, the appropriate Meterpreter payload is linux/x86/meterpreter/reverse_tcp. This payload provides a reverse shell with Meterpreter capabilities, assuming the target architecture is x86. It is essential to match the payload to the target OS and architecture to ensure successful exploitation.

Exam trap

The trap here is selecting a payload based on the web technology (like PHP) rather than the underlying operating system; the CGI script could be written in any language, but the payload must match the OS and architecture.

20
Multi-Selecthard

An IoT firmware analyst is performing emulation of a MIPS-based router firmware binary using Firmadyne. Which TWO of the following steps or components are critical to successfully emulate and analyze the firmware image? (Choose TWO)

Select 2 answers
A.Brute-forcing SSH passwords using Hydra against the host machine
B.Populating a PostgreSQL database with image metadata and utilizing Firmadyne helper scripts to extract the file system
C.Executing an SQL injection payload against the web server running on port 80
D.Sniffing 802.11 wireless beacons with an external USB Wi-Fi adapter in monitor mode
E.Running the emulated kernel image within QEMU system mode (e.g., qemu-system-mips) using a patched initrd
AnswersB, E

Firmadyne relies on a PostgreSQL database storing image metadata plus helper scripts that extract the firmware file system, providing the artefacts needed before emulation. This satisfies the stem's requirement for critical emulation and analysis steps.

Why this answer

Option B is correct because Firmadyne relies on a PostgreSQL database (typically the 'firmadyne' database) to store image metadata such as the image ID, hash, and architecture, and its helper scripts like extractor.py and getArch.py depend on this data to extract the firmware filesystem and determine the correct architecture. Option E is correct because Firmadyne emulates the firmware's kernel and filesystem using QEMU in system mode (e.g., qemu-system-mips, qemu-system-arm) with a custom patched initrd (often built via the console/inferKernel scripts) that boots the extracted filesystem and sets up networking for analysis. Option A is not relevant because Hydra SSH brute-forcing is a credential attack, not a step in emulating firmware.

Option C is not relevant because SQL injection against a web server is an exploitation technique, not part of the emulation setup. Option D is not relevant because sniffing 802.11 beacons requires monitor-mode Wi-Fi hardware and pertains to wireless traffic capture, not Firmadyne's QEMU-based emulation workflow.

21
MCQmedium

During an Azure penetration test, an attacker identifies an Azure Function with an HTTP trigger that uses function-level keys. However, the function key was leaked in a public GitHub repository. What level of access does this key provide?

A.It allows unauthenticated invocation of the specific Azure Function endpoint associated with that key.
B.It allows the attacker to decrypt all Azure Key Vault secrets in the tenant.
C.It provides direct SSH root access to the underlying Azure App Service worker nodes.
D.It grants full Owner-level administrative access to the entire Azure subscription.
AnswerA

Function-level keys authorise invocation of only the specific function they belong to, not the whole Function App or subscription. A leaked key therefore permits unauthenticated calls to that single HTTP-triggered endpoint, matching the stem's scope.

Why this answer

Azure Function keys are per-function (or per-host) shared secrets used only to authorize HTTP invocations of that function's endpoint. A leaked function-level key lets an unauthenticated attacker call that specific function URL, but it does not grant Azure RBAC permissions, Key Vault access, or subscription-level control. The blast radius is limited to whatever the function itself does.

Exam trap

The trap is conflating a function-level shared secret with Azure AD/RBAC credentials — candidates overestimate the blast radius and pick subscription-wide or Key Vault options.

How to eliminate wrong answers

Option B is wrong because Key Vault secret decryption requires Azure AD authentication plus Key Vault access policies or RBAC roles — a function key is not an Azure AD token and cannot decrypt secrets. Option C is wrong because function keys do not grant SSH or worker-node access; the underlying App Service infrastructure is managed by Microsoft and not reachable via a function key. Option D is wrong because Owner-level subscription access requires Azure AD identity with an RBAC role assignment; function keys are scoped to the function app's HTTP endpoint only.

22
MCQmedium

An auditor is reviewing an Azure Kubernetes Service (AKS) cluster and discovers that Role-Based Access Control (RBAC) was disabled during cluster creation, and Azure Active Directory integration is not enabled. What is the primary security consequence?

A.Azure Security Center deletes the cluster automatically.
B.All API requests are treated with full administrative privileges, allowing any compromised pod or user to execute arbitrary cluster-level commands.
C.Pods are automatically restricted from communicating with external IP addresses.
D.The AKS cluster control plane is automatically exposed to the public internet on port 22.
AnswerB

Without Kubernetes RBAC, AKS grants every authenticated request full cluster-admin authority, since no authorisation layer evaluates subjects against roles. Combined with Microsoft Entra ID integration being absent, no identity-based binding restricts actions, so any compromised pod or user reaching the API server executes arbitrary cluster-level commands.

Why this answer

When RBAC and Azure AD integration are disabled at AKS cluster creation, the cluster falls back to Kubernetes local accounts with certificate-based authentication, and any authenticated request effectively has full cluster-admin privileges. This means a compromised pod or user can execute arbitrary cluster-level commands, escalate privileges, and access secrets across namespaces.

Exam trap

CPENT often tests the assumption that disabling RBAC only affects user permissions, when it actually grants full admin to any authenticated principal.

How to eliminate wrong answers

Option A is wrong because Azure Security Center (Defender for Cloud) does not delete clusters; it only provides recommendations and alerts. Option C is wrong because pod egress restrictions are governed by network policies, not RBAC or Azure AD settings. Option D is wrong because the AKS control plane is not automatically exposed on port 22; SSH access is to nodes, and the API server uses port 443.

23
MCQhard

You have gained access to a Linux host and escalated to root. You want to maintain persistence by creating a backdoor that will execute a reverse shell each time the system reboots. Which method would best achieve this while evading common detection mechanisms?

A.Add a reverse shell command to /etc/rc.local.
B.Modify an existing systemd service file to include an ExecStartPre directive that runs a reverse shell.
C.Add a cron job with @reboot that executes a reverse shell.
D.Create a systemd service unit file in /etc/systemd/system/ that runs a reverse shell.
AnswerB

Modifying an existing systemd service file is stealthier because it does not create a new file that might be noticed. Adding an ExecStartPre directive to a legitimate service allows the reverse shell to execute before the main service starts, blending in with normal system behavior. This approach is less likely to be detected by routine audits that focus on new or unusual files.

Why this answer

Persistence on Linux often involves startup scripts, but stealthy persistence requires blending into existing configurations. Modifying an existing systemd service file with an ExecStartPre directive allows the backdoor to run as part of a legitimate service's startup sequence. This avoids creating new files that might be flagged and leverages the trust associated with system services.

It also ensures execution on reboot, maintaining access.

Exam trap

The trap here is assuming that any persistence mechanism is equally stealthy; creating new files or cron jobs is easily detected, while modifying existing service files is less obvious but still requires careful selection of a service that starts reliably.

24
MCQmedium

A pentester is analyzing an industrial control network and identifies devices communicating via EtherNet/IP (CIP). The pentester wants to enumerate explicit messaging objects and device identity data. Which Nmap script should the tester invoke?

A.modbus-discover
B.enip-info
C.bacnet-discover
D.dnp3-info
AnswerB

The enip-info Nmap script queries EtherNet/IP devices over TCP/44818, retrieving device identity and explicit messaging object data via CIP. That directly satisfies the requirement to enumerate explicit messaging objects and identity information on the industrial control network.

Why this answer

Nmap includes the 'enip-info' NSE script specifically designed to query EtherNet/IP devices for identification and vendor details.

25
MCQmedium

An assessment team is analyzing an embedded Linux firmware image for an industrial IoT gateway. They have successfully extracted the filesystem using Binwalk, but they need to statically analyze the compiled binaries for potential buffer overflows and insecure function calls. Which tool is specifically designed to perform static binary analysis and identify vulnerable functions likestrcpy within the extracted filesystem?

A.Aircrack-ng
B.Binwalk
C.Ghidra
D.John the Ripper
AnswerC

Ghidra's decompiler and static analysis engine disassembles extracted binaries and flags insecure calls such as strcpy, letting analysts trace buffer overflow paths without executing the firmware. It handles multiple architectures, matching the embedded Linux gateway binaries recovered by Binwalk.

Why this answer

Ghidra is a reverse-engineering framework developed by the NSA that performs static binary analysis, disassembly, and decompilation. It can load extracted ELF binaries from a firmware filesystem and identify insecure function calls like strcpy, gets, and sprintf by examining the symbol table, imports, and decompiled code, making it ideal for finding buffer overflow candidates.

Exam trap

The trap is confusing firmware extraction tools (Binwalk) with binary analysis tools (Ghidra); candidates must recognize that static analysis of compiled code for insecure functions requires a disassembler/decompiler, not an extractor or password cracker.

How to eliminate wrong answers

Option A is wrong because Aircrack-ng is a Wi-Fi security auditing tool for cracking WEP/WPA/WPA2 keys, not a binary analysis tool. Option B is wrong because Binwalk is a firmware extraction and signature-scanning tool; it identifies and extracts filesystems but does not perform static binary analysis or decompilation. Option D is wrong because John the Ripper is a password cracker that tests hashes against wordlists, not a static binary analyzer.

26
Multi-Selectmedium

Which TWO configuration checks should a penetration tester perform when auditing an Active Directory domain for potential NTLM Relay vulnerabilities?

Select 2 answers
A.Verify if LDAP signing is disabled or set to 'Not Required' on domain controllers.
B.Check whether SMB signing is enforced on domain member workstations and servers.
C.Check if the domain functional level is set to Windows 2000 native.
D.Verify that all user accounts have Kerberos pre-authentication disabled.
E.Enumerate the total number of Service Principal Names registered to machine accounts.
AnswersA, B

LDAP signing, when disabled or set to 'Not Required', lets attackers relay NTLM authentication to the domain controller over unsigned LDAP, enabling rogue directory operations. Checking this setting on domain controllers directly identifies a primary NTLM relay exposure during an Active Directory audit.

Why this answer

Option A is correct because when LDAP signing is disabled or set to 'Not Required' on domain controllers, an attacker who has coerced or relayed NTLM authentication can relay it to LDAP/LDAPS and perform operations such as adding a computer or modifying ACLs, which is a classic NTLM relay path. Option B is correct because SMB signing enforcement determines whether relayed NTLM authentication can be used against SMB services; if signing is not required on member workstations and servers, captured NTLM authentication can be relayed to those hosts to execute commands or access resources. Option C is not relevant because the domain functional level does not directly determine whether NTLM relay is possible; modern functional levels can still be vulnerable if signing and channel binding are not enforced.

Option D is incorrect because disabling Kerberos pre-authentication enables AS-REP roasting, not NTLM relay, and it is not a standard NTLM relay audit check. Option E is incorrect because the number of SPNs on machine accounts relates to Kerberoasting and service account exposure, not directly to NTLM relay vulnerability.

Exam trap

The trap here is confusing NTLM relay prerequisites with other Active Directory attack vectors like Kerberoasting or AS-REP roasting, leading candidates to select options about SPNs or Kerberos pre-authentication instead of the signing configurations that directly enable relay.

27
MCQeasy

A penetration tester is evaluating a Google Cloud Platform (GCP) environment and discovers a service account key file stored in a public Cloud Storage bucket. The service account has the roles/editor role on the project. What is the most direct way for the tester to leverage this key to gain unauthorized access to the project's resources?

A.Use the key to sign a JWT and impersonate a user with higher privileges.
B.Use the key to authenticate with gcloud auth activate-service-account and then list and access resources.
C.Use the key to decrypt data in Cloud Storage buckets encrypted with customer-managed encryption keys (CMEK).
D.Use the key to access the GCP metadata server and retrieve instance credentials.
AnswerB

The service account key file contains a private key that can be used to authenticate as the service account. By running gcloud auth activate-service-account --key-file=KEY_FILE, the tester can assume the identity of the service account. With the editor role, they can then access and modify most resources in the project, achieving full compromise.

Why this answer

A leaked service account key file allows an attacker to authenticate as that service account. Using gcloud auth activate-service-account with the key file grants the tester the service account's permissions, which include the editor role. This provides broad access to the project's resources, enabling the tester to list, read, and modify data, and potentially escalate further.

Exam trap

The trap here is overcomplicating the exploitation; the simplest and most direct use of a service account key is to authenticate with it, not to attempt indirect methods like JWT signing or metadata access.

28
Multi-Selectmedium

During network enumeration of a Windows domain, a penetration tester discovers multiple legacy services running. Which TWO protocols or services, if enabled, frequently expose sensitive domain or system information without requiring authentication? (Choose TWO)

Select 2 answers
A.SMB / NetBIOS service enumeration
B.HTTPS with modern TLS 1.3
C.IPsec VPN tunnels
D.SSH v2 with public key authentication
E.SNMP (Simple Network Management Protocol) with default community strings
AnswersA, E

SMB and NetBIOS enumeration exposes share names, user accounts, group memberships and host details via null sessions, requiring no authentication when legacy settings permit. This directly satisfies the scenario's need for protocols leaking sensitive domain or system information unauthenticated during Windows domain enumeration.

Why this answer

Option A (SMB / NetBIOS service enumeration) is correct because legacy SMB/NetBIOS services allow unauthenticated enumeration of shares, users, groups, domain membership, and OS details via null sessions (e.g., net view /domain, rpcclient, or enum4linux), frequently exposing sensitive domain information. Option E (SNMP with default community strings) is correct because SNMPv1/v2c uses cleartext community strings such as 'public' or 'private' for authentication, and if defaults are unchanged, an attacker can query MIB objects (e.g., snmpwalk -v2c -c public) to extract system, interface, and sometimes user/process information without real authentication. Option B (HTTPS with modern TLS 1.3) does not belong because it provides encrypted, authenticated transport and does not expose domain or system information unauthenticated.

Option C (IPsec VPN tunnels) does not belong because IPsec is an encrypted, authenticated tunnel mechanism, not an information-disclosure enumeration service. Option D (SSH v2 with public key authentication) does not belong because SSHv2 with key-based auth is a secure, authenticated remote-access protocol that does not leak domain or system information without credentials.

29
MCQeasy

When generating a Silver Ticket using Impacket's ticketer.py, what specific piece of cryptographic material is required instead of the KRBTGT hash?

A.The plaintext password of the Domain Administrator
B.The Domain Controller's computer account machine password
C.The NTLM password hash of the specific service account
D.The domain root CA private key (.pfx)
AnswerC

A Silver Ticket is forged with the target service account's NTLM hash, which encrypts the service ticket's PAC and signature. The KRBTGT hash is only needed for Golden Tickets, so the service account hash satisfies the stem's substitution.

Why this answer

A Silver Ticket is forged for a specific service using the NTLM hash of the service account running that service (e.g., MSSQL or CIFS service account), rather than the KRBTGT hash.

30
MCQeasy

During a post-exploitation phase on a Windows workstation, a tester dumps LSASS memory and extracts an NTLM password hash. The tester then uses the CrackMapExec tool to authenticate to other workstations using this hash without cracking it first. What attack technique is being executed?

A.Pass-the-Ticket
B.Kerberoasting
C.Over-Pass-the-Hash
D.Pass-the-Hash
AnswerD

Pass-the-Hash exploits NTLM's design, where the password hash itself authenticates without needing the plaintext. CrackMapExec submits the captured NTLM hash directly to SMB or other services, granting access to remote workstations, which matches the described post-exploitation behaviour.

Why this answer

Pass-the-Hash (PtH) abuses the NTLM authentication protocol by replaying a captured NTLM hash directly to authenticate to remote systems without ever cracking it to plaintext. CrackMapExec's smb/wmi/winrm modules accept the -H flag to inject the hash into the NTLM challenge-response, which is exactly the technique described. Because NTLMv1/NTLMv2 authentication only requires knowledge of the hash (not the password), the tester gains access to other workstations.

Exam trap

CPENT often tests the distinction between Pass-the-Hash (NTLM hash replay) and Over-Pass-the-Hash (using the hash to obtain a Kerberos TGT), since both start from a dumped NTLM hash but diverge in the authentication protocol used.

How to eliminate wrong answers

Option A (Pass-the-Ticket) is wrong because it involves injecting a stolen Kerberos TGT or TGS (.kirbi/.ccache) into a session, not replaying an NTLM hash. Option B (Kerberoasting) is wrong because it requests service tickets for SPNs and cracks them offline — it does not use a dumped LSASS hash to authenticate. Option C (Over-Pass-the-Hash) is wrong because it is a distinct technique that uses an NTLM hash to request a Kerberos TGT via the AS-REQ (converting hash to Kerberos ticket), not direct NTLM authentication to workstations.

31
MCQhard

During an IoT penetration test, an analyst discovers that a connected medical device communicates with its cloud backend using MQTT over TLS, but certificate validation is disabled in the client code. The analyst wants to perform a man-in-the-middle (MitM) attack to inspect the MQTT traffic. Which tool configured with a custom Certificate Authority (CA) is best suited to intercept this TLS-wrapped MQTT traffic?

A.mitmproxy
B.Airodump-ng
C.Ncat
D.Hping3
AnswerA

mitmproxy terminates TLS using a custom CA certificate installed on the client, then re-encrypts traffic to the backend, letting the analyst read MQTT payloads. Disabled certificate validation means the client accepts the forged certificate without complaint.

Why this answer

mitmproxy is an interactive HTTPS/TLS interception proxy that can be configured with a custom CA certificate; because the IoT client has certificate validation disabled, it will accept mitmproxy's forged certificate and the analyst can decrypt and inspect the MQTT-over-TLS traffic. This makes it the right tool for transparently proxying TLS-wrapped MQTT.

Exam trap

CPENT often tests whether candidates can distinguish a TLS-terminating proxy (mitmproxy, sslsplit) from a raw packet relay (Ncat) or a wireless capture tool (Airodump-ng) — the trap is picking a tool that can 'see traffic' but cannot decrypt TLS.

How to eliminate wrong answers

Option B is wrong because Airodump-ng is a wireless 802.11 packet capture tool for WEP/WPA cracking and AP discovery, not a TLS interception proxy. Option C is wrong because Ncat is a general-purpose TCP/UDP relay and listener (netcat variant) — it can forward raw bytes but cannot terminate and re-sign TLS with a custom CA. Option D is wrong because Hping3 is a packet crafting and network scanning tool for TCP/IP testing, not a TLS man-in-the-middle proxy.

32
MCQmedium

You are performing a penetration test against a network segment where direct outbound TCP connections are blocked by a strict firewall, but outbound DNS queries over UDP port 53 to an external DNS server are permitted. To tunnel traffic out of this restricted environment, which tool allows you to encapsulate arbitrary TCP traffic within DNS queries?

A.Iodine
B.Socat
C.Chisel
D.Netcat
AnswerA

Iodine encapsulates IPv4 traffic inside DNS queries and responses, tunnelling arbitrary TCP sessions through the permitted UDP port 53 path to an authoritative external server. This exploits the firewall's DNS exception, satisfying the constraint that only outbound DNS is allowed.

Why this answer

Iodine is a specialized tunneling tool designed specifically to tunnel IPv4 traffic through a DNS server, making it ideal for bypassing networks that only allow outgoing DNS traffic.

33
Multi-Selectmedium

A penetration tester is performing post-exploitation reconnaissance on a Linux machine. Which THREE files or directories should the tester examine to identify potential sensitive configuration data, credentials, or cron jobs? Choose three.

Select 3 answers
A./etc/passwd
B./proc/version
C.~/.ssh/
D./etc/crontab
E./var/log/syslog
AnswersA, C, D

/etc/passwd lists local accounts with UID, GID, home directory and shell, letting the tester enumerate valid users for password spraying or privilege-escalation targeting. It satisfies the stem's credential-discovery goal, though password hashes now reside in the shadowed /etc/shadow, so it reveals usernames rather than secrets directly.

Why this answer

Option A, /etc/passwd, is correct because it enumerates local user accounts (UIDs, GIDs, home directories, and login shells), which is essential for identifying valid usernames for credential attacks or privilege-escalation targets. Option C, ~/.ssh/, is correct because this directory typically holds private keys (id_rsa), authorized_keys, and known_hosts, which can yield reusable credentials for lateral movement or persistence. Option D, /etc/crontab, is correct because it defines system-wide scheduled tasks, revealing scripts or binaries that may run as root and can be abused for privilege escalation.

Option B, /proc/version, is not among the selected answers because it only discloses kernel and compiler version information, which is useful for exploit matching but not for locating configuration data, credentials, or cron jobs. Option E, /var/log/syslog, is not among the selected answers because it contains system event logs rather than the sensitive configuration files, credential stores, or scheduled-task definitions the question asks for.

34
MCQeasy

During an IoT assessment, a tester discovers that a connected security camera runs an embedded web server with a CGI script vulnerable to OS command injection via a GET parameter. Which automated vulnerability scanner includes specific modules for detecting web-based CGI vulnerabilities and command injection?

A.Reaver
B.Masscan
C.Nikto
D.Aircrack-ng
AnswerC

Nikto's database includes targeted checks for CGI scripts and OS command injection through GET parameters, directly matching the camera's embedded web server weakness. Unlike general-purpose scanners, its signature set focuses on web server misconfigurations and legacy CGI abuse, satisfying the stem's requirement for specific CGI and command-injection detection modules.

Why this answer

Nikto is a web server scanner that includes a comprehensive database of checks for CGI vulnerabilities, including OS command injection flaws in CGI scripts. It specifically tests for known CGI issues like Shellshock, default CGI scripts, and parameter injection points. The tool sends crafted HTTP requests to CGI endpoints and analyzes responses for signs of command execution, making it the correct choice for detecting web-based CGI vulnerabilities and command injection.

Exam trap

CPENT often tests the confusion between network scanning tools (Masscan, Nmap) and web vulnerability scanners (Nikto), or between wireless tools (Reaver, Aircrack-ng) and web tools, causing candidates to pick a tool based on general 'security' association rather than specific functionality.

How to eliminate wrong answers

Option A is wrong because Reaver is a WPS brute-force tool for cracking Wi-Fi Protected Setup PINs, not a web vulnerability scanner. Option B is wrong because Masscan is a high-speed port scanner, not a web application scanner; it does not detect CGI or command injection vulnerabilities. Option D is wrong because Aircrack-ng is a suite for auditing wireless networks (WEP/WPA cracking, packet capture), not for scanning web servers or CGI scripts.

35
Multi-Selectmedium

During a penetration test of an Azure Active Directory tenant, an attacker identifies multiple security misconfigurations. Which TWO of the following techniques represent common Azure AD attack vectors or misconfigurations? (Choose TWO)

Select 2 answers
A.Exploiting user consent settings that allow any user to grant application permissions to third-party multi-tenant apps.
B.Configuring Azure AD Connect with Password Hash Sync disabled for cloud-only users.
C.Implementing Azure Key Vault access policies with strict RBAC permissions.
D.Allowing legacy authentication protocols (e.g., POP3, IMAP) that bypass Azure AD Conditional Access policies and MFA.
E.Enforcing Azure Multi-Factor Authentication for all administrative and privileged roles.
AnswersA, D

User consent settings permitting any user to grant permissions to third-party multi-tenant apps enable illicit consent grant attacks, where a malicious app obtains delegated access to mail, files and contacts without admin approval. This misconfiguration is a recognised Microsoft Entra ID attack vector.

Why this answer

Option A is correct because when Azure AD user consent settings permit all users to consent to third-party multi-tenant applications, attackers can register a malicious multi-tenant app and trick users into granting OAuth permissions (e.g., Mail.Read, offline_access), enabling persistent access and data exfiltration without stealing credentials. Option D is correct because legacy authentication protocols such as POP3, IMAP, and SMTP AUTH do not support modern authentication and therefore bypass Conditional Access policies and MFA, making them a prime vector for password-spray and credential-stuffing attacks. Option B is not a misconfiguration attack vector: disabling Password Hash Sync for cloud-only users is irrelevant since cloud-only accounts have no on-premises password to synchronize, and PHS is a defensive feature rather than an exposure.

Option C is not an attack vector because strict RBAC access policies on Key Vault are a security best practice that reduces, not expands, the attack surface. Option E is not a misconfiguration because enforcing MFA for all administrative and privileged roles is a recommended hardening control that mitigates credential-based attacks.

Exam trap

The trap is selecting options that are actually security best practices (like enforcing MFA or strict RBAC) as misconfigurations; candidates must distinguish between secure configurations and vulnerable ones.

36
MCQeasy

A penetration tester is evaluating an Active Directory environment and discovers that LDAP signing is not enforced. Which attack technique does this misconfiguration directly facilitate?

A.Kerberoasting
B.LDAP NTLM Relay
C.AS-REP Roasting
D.Golden Ticket forgery
AnswerB

Without LDAP signing enforced, the server accepts unsigned LDAP binds, so an attacker who captures or coerces NTLM authentication can relay those credentials to the domain controller over LDAP and perform directory operations as the victim. Signing would reject the relayed session.

Why this answer

When LDAP signing is not enforced, an attacker can perform an NTLM relay attack against the LDAP service. By relaying NTLM authentication attempts to a domain controller's LDAP endpoint, the attacker can gain access to directory services, potentially creating or modifying objects, and escalating privileges. This is because without signing, the LDAP server accepts unsigned authentication requests, making it vulnerable to relay.

Exam trap

The trap is confusing LDAP signing with other AD attack techniques like Kerberoasting or AS-REP Roasting; candidates must recognize that missing LDAP signing specifically enables NTLM relay to LDAP.

How to eliminate wrong answers

Option A is wrong because Kerberoasting targets service accounts with SPNs and does not rely on LDAP signing; it exploits weak service account passwords. Option C is wrong because AS-REP Roasting targets accounts with pre-authentication disabled, not LDAP signing. Option D is wrong because Golden Ticket forgery requires the KRBTGT hash, which is unrelated to LDAP signing.

37
Multi-Selectmedium

An OT security analyst is reviewing network traffic on an industrial control system network and identifies DNP3 protocol packets. Which THREE of the following fields or functions are associated with the DNP3 protocol structure and security? (Choose THREE)

Select 3 answers
A.Application layer function codes specifying operations like Read, Write, Select, and Operate
B.IEEE 802.11 WPA2 four-way handshake cryptographic parameters
C.Data link layer CRC error detection checksums embedded in data blocks
D.HTTP Authorization Bearer tokens used for REST API authentication
E.DNP3 Secure Authentication (SA) extensions designed to prevent unauthorized command injection and spoofing
AnswersA, C, E

DNP3's application layer carries function codes such as Read, Write, Select and Operate, which drive master-to-outstation control operations. These codes define the request semantics an analyst inspects when reviewing DNP3 traffic for unauthorised control commands.

Why this answer

Option A is correct because DNP3's application layer defines function codes such as Read (1), Write (2), Select (3), Operate (4), and Direct Operate (5), which are used to request data and control outstations in SCADA/ICS environments. Option C is correct because DNP3's data link layer frames include a CRC checksum in each data block (and header) to detect transmission errors, providing integrity at the link layer. Option E is correct because DNP3 Secure Authentication (SAv2/v5, defined in IEEE 1815) adds challenge-response authentication using HMAC to prevent unauthorized command injection, spoofing, and replay attacks.

Option B is incorrect because the WPA2 four-way handshake belongs to IEEE 802.11 wireless LAN security, not DNP3, which is a serial/TCP-IP SCADA protocol. Option D is incorrect because HTTP Bearer tokens are used for REST API authentication over HTTP, which is unrelated to the DNP3 protocol structure.

38
MCQeasy

An external penetration tester wants to test if a target organization's mail server is susceptible to email harvesting by issuing standard SMTP VRFY and EXPN commands. Which tool performs this type of mail server enumeration?

A.Enum4linux
B.smtp-user-enum
C.Wpscan
D.Nikto
AnswerB

smtp-user-enum connects to the mail server and issues SMTP VRFY, EXPN and RCPT TO commands, parsing responses to identify valid accounts. This matches the requirement to test susceptibility to email harvesting via those standard SMTP commands.

Why this answer

SMTP-User-Enum is a classic tool used for enumerating OS user accounts via the SMTP service (VRFY, EXPN, RCPT TO commands).

39
MCQhard

A security researcher is evaluating an industrial IoT gateway running Linux. During a filesystem audit of the extracted rootfs, the researcher finds that the '/etc/shadow' file contains weak password hashes for the root user. Which utility can the researcher use offline on their host machine to attempt password cracking via dictionary attack against the extracted hash?

A.Binwalk
B.John the Ripper
C.Nmap
D.Tcpdump
AnswerB

John the Ripper parses the extracted '/etc/shadow' hash offline and runs dictionary attacks against the root entry, directly addressing the stem's requirement to crack weak hashes from a mounted rootfs without touching the live gateway.

Why this answer

John the Ripper and Hashcat are industry-standard password cracking tools that accept shadow file formats for offline dictionary and brute-force attacks.

40
Multi-Selecthard

During an assessment of a smart manufacturing facility, a penetration tester discovers an unauthenticated MQTT broker allowing anonymous publishing and subscription. Which TWO actions should the tester perform to validate the security risks associated with this misconfiguration? (Choose TWO)

Select 2 answers
A.Perform an aggressive TCP port scan using Nmap to identify non-standard service ports
B.Publish arbitrary control messages to actuator topics to test if physical machinery responds to unauthorized commands
C.Capture WPA2 four-way handshakes to crack the underlying Wi-Fi pre-shared key
D.Execute a brute-force dictionary attack against the MQTT broker management interface using Hydra
E.Subscribe to the root topic using the wildcard character '#' to capture all telemetry and potentially sensitive messages
AnswersB, E

Publishing to actuator topics directly validates the unauthenticated broker's real-world impact: because MQTT lacks per-topic authorisation, anonymous clients can inject commands into control channels. This confirms the stem's constraint — anonymous publishing — by demonstrating whether physical machinery actually executes unauthorised instructions, proving genuine operational risk rather than theoretical exposure.

Why this answer

Option B is correct because an unauthenticated MQTT broker that permits anonymous publishing lets the tester send crafted payloads to actuator/control topics (e.g., factory/line1/actuator/cmd) and observe whether the physical machinery or PLC responds, directly validating the integrity and safety impact of the misconfiguration. Option E is correct because subscribing to the root wildcard '#' on an anonymous broker captures every published topic, including telemetry, sensor readings, and potentially sensitive operational data, validating the confidentiality impact of the exposure. Option A is not appropriate because an aggressive Nmap TCP scan only enumerates open ports and does not validate the anonymous MQTT publish/subscribe risk.

Option C is unrelated because capturing WPA2 four-way handshakes targets Wi-Fi link-layer confidentiality, not the MQTT application-layer misconfiguration. Option D is also not applicable because the broker allows anonymous access, so brute-forcing a management interface with Hydra does not validate the anonymous publish/subscribe exposure.

Exam trap

CPENT often tests the tendency to pick generic scanning or brute-forcing actions instead of the specific publish/subscribe actions that actually demonstrate MQTT misconfiguration impact.

41
MCQhard

A penetration tester is analyzing a Kubernetes cluster where pods utilize service accounts with automountServiceAccountToken set to true globally or on sensitive pods. The tester gains remote code execution inside a pod running with a high-privilege service account token. How can they use this token against the Kubernetes API?

A.Use the token in HTTP Authorization Bearer headers to query the Kubernetes API server and inspect or manipulate cluster resources based on the service account's RBAC privileges.
B.Convert the token into an Azure AD refresh token using Microsoft Graph API.
C.Submit the token to the AWS IAM STS assume-role API to gain root access to the underlying AWS cloud account.
D.Inject the token into the Linux kernel keyring to escalate the container to host root privileges.
AnswerA

The mounted token authenticates to the API server as its service account, so sending it as a Bearer credential grants exactly that account's RBAC permissions. This satisfies the stem's constraint that automountServiceAccountToken exposes a usable credential inside the compromised pod.

Why this answer

A Kubernetes service account token is a JWT that authenticates to the Kubernetes API server when presented as a Bearer token in the HTTP Authorization header. The API server validates the token's signature and expiry, then maps it to the service account's identity and enforces RBAC policies. With a high-privilege service account, the tester can list, create, or delete resources (e.g., secrets, pods) permitted by that account's RoleBindings or ClusterRoleBindings.

This is the standard method for exploiting a compromised service account token in a cluster.

Exam trap

CPENT often tests the misconception that Kubernetes service account tokens can be used directly with other cloud providers' identity systems (like AWS STS or Azure AD) without proper federation configuration, or that they can escalate privileges at the OS level, when in fact they are solely for authenticating to the Kubernetes API.

How to eliminate wrong answers

Option B is wrong because Kubernetes service account tokens are not convertible to Azure AD refresh tokens; they are distinct authentication artifacts for different identity systems, and Microsoft Graph API does not accept Kubernetes tokens. Option C is wrong because AWS IAM STS assume-role requires an AWS IAM role ARN and a valid AWS identity (e.g., via web identity federation with OIDC), not a Kubernetes service account token directly; while some clusters use IRSA, the token itself is not submitted to STS without proper OIDC trust configuration. Option D is wrong because injecting a token into the Linux kernel keyring does not escalate container privileges to host root; kernel keyrings are for cryptographic key storage, not authentication to Kubernetes or privilege escalation.

42
MCQmedium

A tester has located a domain user account configured with Constrained Delegation (S4U2Self / S4U2Proxy) pointing to a target service. What tool and module in Impacket can be used to leverage this delegation to obtain a TGS for a privileged user (e.g., Administrator)?

A.getST.py
B.psexec.py
C.GetUserSPNs.py
D.addcomputer.py
AnswerA

getST.py exploits the S4U2Self and S4U2Proxy extensions to request a service ticket impersonating a privileged user, satisfying the Constrained Delegation scenario. It requires the delegated account's credentials or hash plus the SPN of the target service, returning a usable TGS for that service.

Why this answer

Impacket's getST.py is purpose-built to abuse Kerberos delegation by performing the S4U2Self and S4U2Proxy extensions. Given a constrained-delegation account's credentials (or hash) and the target SPN, it requests a service ticket impersonating an arbitrary user such as Administrator, which can then be used with other Impacket tools. This directly leverages the delegation trust configured on the account.

Exam trap

The trap is confusing Kerberoasting (GetUserSPNs.py, offline cracking of service tickets) with delegation abuse (getST.py, online ticket forging via S4U) — both involve TGS tickets but require entirely different preconditions and tools.

How to eliminate wrong answers

Option B (psexec.py) is wrong because it is a remote execution tool that uploads a service binary over SMB — it does not perform S4U2Self/S4U2Proxy delegation abuse. Option C (GetUserSPNs.py) is wrong because it performs Kerberoasting: it enumerates accounts with SPNs and requests their TGS tickets for offline cracking, not delegation abuse. Option D (addcomputer.py) is wrong because it adds a machine account to the domain (useful for RBCD attacks) but does not itself request delegated service tickets.

43
Multi-Selecthard

A penetration tester is analyzing a Linux host for potential privilege escalation vectors related to sudo rights. Which THREE commands or checks should the tester perform to identify misconfigured sudo privileges? Choose three.

Select 3 answers
A.arp -a
B.uname -r
C.ls -la /etc/sudoers.d/
D.sudo -l
E.cat /etc/sudoers
AnswersC, D, E

Listing `/etc/sudoers.d/` reveals drop-in sudoers files, which frequently hold custom or misconfigured privilege rules that the main `/etc/sudoers` file merely includes. Enumerating this directory exposes per-user or per-group grants, satisfying the stem's requirement to identify misconfigured sudo privileges on the Linux host.

Why this answer

Option D, `sudo -l`, is correct because it lists the sudo privileges of the invoking user, showing exactly which commands they may run as root or other users (including NOPASSWD entries and wildcard rules) — the primary way to spot exploitable sudo rights. Option E, `cat /etc/sudoers`, is correct because the main sudoers policy file defines user/group specifications, command aliases, and defaults; reading it (if permissions allow) reveals misconfigurations such as overly broad ALL=(ALL) ALL grants. Option C, `ls -la /etc/sudoers.d/`, is correct because sudoers drop-in files in /etc/sudoers.d/ are included via #includedir and often contain custom privilege rules that are easy to overlook; listing them identifies additional policy files to inspect.

Option A, `arp -a`, is not relevant because it only displays the ARP cache for network mapping, not sudo configuration. Option B, `uname -r`, is not relevant because it only prints the kernel release version, which does not reveal sudo privilege settings.

44
MCQeasy

When conducting post-exploitation, what is the primary risk of using 'Mimikatz' on a modern Windows system with Windows Defender enabled?

A.It will cause the system to BSOD.
B.It will alert the Security Operations Center (SOC) due to signature-based detection.
C.It will corrupt the LSASS process.
D.It requires a reboot to function.
AnswerB

Mimikatz is widely signatured, so Windows Defender detects its known binaries and memory patterns, generating alerts forwarded to the SOC. The primary operational risk is therefore detection and analyst response, not credential theft failure or system instability.

Why this answer

Windows Defender (and other EDRs) have specific signatures for Mimikatz and will trigger an alert or quarantine the file immediately upon execution.

45
MCQhard

An attacker has intercepted ARP traffic on a switched local network and wants to maintain a man-in-the-middle position without causing high volumes of repetitive ARP reply frames that might trigger security alerts. Which tool allows selective, low-frequency ARP poisoning?

A.FTP
B.Ping
C.Telnet
D.Bettercap
AnswerD

Bettercap supports selective ARP spoofing with configurable intervals, letting the attacker poison only targeted hosts and refresh mappings at low frequency rather than flooding repetitive replies. This satisfies the stem's constraint of evading alerts triggered by high-volume ARP traffic, while maintaining the man-in-the-middle position on the switched network.

Why this answer

Bettercap is a modular network attack framework that includes an ARP spoofing module capable of selective, low-frequency poisoning. Unlike tools that flood the network with ARP replies, Bettercap allows the attacker to target specific hosts and control the rate of spoofed frames, maintaining a stealthy man-in-the-middle position. This makes it ideal for environments where repetitive ARP traffic would trigger IDS/IPS alerts.

Exam trap

The trap here is assuming any tool that can send packets (like Ping or Telnet) can perform ARP poisoning, or confusing Bettercap with generic network scanners. Candidates must recognize that ARP poisoning requires a specialized tool with layer-2 manipulation capabilities.

How to eliminate wrong answers

Option A is wrong because FTP (File Transfer Protocol) is a file transfer protocol with no ARP manipulation capabilities. Option B is wrong because Ping (ICMP echo) is a network diagnostic tool and cannot perform ARP poisoning. Option C is wrong because Telnet is a remote terminal protocol and has no functionality for ARP spoofing or MITM attacks.

46
MCQhard

When executing a DCSync attack programmatically via Impacket's secretsdump.py, how does the tool interact with Active Directory to request password data without running code on the domain controller?

A.It connects via RPC and invokes the DRSUAPI protocol (DsGetNCChanges) to request replication data.
B.It executes an LDAP search request asking for the plaintext password attribute.
C.It queries the Active Directory Web Services (ADWS) REST API on port 9389.
D.It reads the NTDS.dit file directly over standard SMB file shares using administrator credentials.
AnswerA

Impacket's secretsdump.py authenticates as a privileged account and invokes the DRSUAPI DsGetNCChanges RPC call, impersonating a domain controller's replication request. This extracts password hashes remotely over the network, satisfying the constraint of harvesting credentials without executing any code on the domain controller itself.

Why this answer

Impacket's secretsdump.py performs DCSync by authenticating to a domain controller and invoking the DRSUAPI (Directory Replication Service Remote Protocol) interface, specifically the DsGetNCChanges method. This RPC call is the same mechanism legitimate DCs use to replicate directory data, so the DC treats the request as a normal replication pull and returns password hashes (NTLM, Kerberos keys) without the attacker ever executing code on the DC.

Exam trap

CPENT often tests the misconception that DCSync reads NTDS.dit directly or uses LDAP — candidates who do not understand the DRSUAPI replication protocol pick option D or B.

How to eliminate wrong answers

Option B is wrong because LDAP does not expose plaintext passwords — the unicodePwd attribute is write-only and stored as an NT hash, so an LDAP search cannot retrieve it. Option C is wrong because ADWS on port 9389 is a SOAP/REST-like interface for PowerShell remoting and management, not a password extraction channel. Option D is wrong because NTDS.dit is locked by the ESE database engine while the DC is running; reading it over SMB requires Volume Shadow Copy or a reboot into DSRM, which is a different technique (not DCSync).

47
MCQeasy

During a Windows privilege escalation assessment, a tester discovers that the local 'SeImpersonatePrivilege' is enabled on the current service account token. Which exploitation tool class is best suited for abusing this privilege?

A.Mimikatz credential dumper via direct LSASS memory injection.
B.Potato family exploits (e.g., PrintSpoofer, RoguePotato) that abuse token impersonation via named pipes.
C.PowerView domain enumeration modules.
D.Windows Subsystem for Linux (WSL) container breakouts.
AnswerB

Potato exploits abuse SeImpersonatePrivilege by coercing a privileged account into authenticating over a named pipe or COM server, then capturing that token via ImpersonateNamedPipeClient. PrintSpoofer and RoguePotato target the specific Windows token-impersonation mechanism this privilege grants, satisfying the stem's enabled SeImpersonatePrivilege constraint directly.

Why this answer

SeImpersonatePrivilege and SeAssignPrimaryTokenPrivilege allow an attacker to impersonate tokens. Tools like Rotten Potato, RoguePotato, or PrintSpoofer leverage this to escalate to NT AUTHORITY\SYSTEM.

48
Multi-Selecthard

A security consultant is performing a penetration test against an embedded IoT device that exposes an insecure bootloader and serial console. Which TWO of the following procedures can the consultant execute via the U-Boot serial prompt to compromise device security? (Choose TWO)

Select 2 answers
A.Cracking WPA2 Pre-Shared Keys using a dictionary attack and Aircrack-ng
B.Executing an ARP spoofing attack to intercept printer traffic on the corporate IT network
C.Injecting an SQL injection payload into the device's Bluetooth GATT profile characteristic
D.Using TFTP to load and execute an unauthorized custom kernel image into device RAM
E.Interrupting the boot countdown and modifying 'bootargs' to append 'init=/bin/sh' to spawn a root shell
AnswersD, E

U-Boot's tftp and bootm commands fetch an attacker-supplied kernel over the network and execute it from RAM, bypassing any signed firmware in flash. This directly exploits the insecure bootloader and serial console access described, granting arbitrary code execution at the highest privilege level before the OS loads.

Why this answer

Option D is correct because U-Boot provides built-in tftp and bootm commands, so an attacker at the serial prompt can pull a malicious kernel image from a TFTP server into RAM and boot it, bypassing secure boot and any signed firmware enforcement. Option E is correct because interrupting the U-Boot countdown and editing the bootargs environment variable to append init=/bin/sh causes the Linux kernel to launch a root shell instead of the normal init process, granting immediate privileged access. Option A is wrong because cracking WPA2 PSKs with Aircrack-ng is a wireless-layer attack performed from a NIC in monitor mode, not from a U-Boot serial console.

Option B is wrong because ARP spoofing is a layer-2 network attack executed from a running OS with tools like arpspoof, which U-Boot does not provide. Option C is wrong because SQL injection into a Bluetooth GATT characteristic is an application-layer attack against a running Bluetooth stack, not something achievable from the U-Boot bootloader prompt.

49
MCQmedium

A penetration tester is performing an attack utilizing the PetitPotam (MS-EFSR) vulnerability against a domain controller. What is the primary objective of forcing the domain controller to authenticate via PetitPotam?

A.To corrupt the NTDS.dit database file on the remote domain controller.
B.To extract the plaintext password of the domain administrator from the LSASS process memory.
C.To coerce the domain controller's machine account to authenticate to an NTLM relay listener targeting AD CS.
D.To bypass Kerberos pre-authentication requirements on user accounts.
AnswerC

PetitPotam abuses MS-EFSRPC to trigger the DC's machine account authentication. Relaying that NTLM authentication to AD CS, which lacks NTLM relay protections by default, lets the attacker obtain a certificate for the DC machine account and then impersonate the domain controller via Kerberos.

Why this answer

PetitPotam (CVE-2021-36942) abuses the MS-EFSRPC interface (EfsRpcOpenFileRaw) to force a Windows host — including a domain controller — to initiate an outbound NTLM authentication to an attacker-controlled UNC path. The attacker's real goal is not to read files or dump memory, but to capture that machine-account NTLM authentication and relay it to a service that accepts NTLM, most classically Active Directory Certificate Services (AD CS) via the ESC8 web enrollment endpoint. Relaying the DC's machine account to AD CS allows the attacker to request a certificate on behalf of the DC, which can then be used for domain takeover (e.g., via PKINIT to obtain a TGT for the DC).

Exam trap

CPENT often tests whether candidates confuse the coercion primitive (PetitPotam forcing authentication) with the end goal (NTLM relay to AD CS for certificate abuse), so many pick memory-dumping or database-corruption answers that describe unrelated post-exploitation techniques.

How to eliminate wrong answers

Option A is wrong because PetitPotam does not write to or corrupt NTDS.dit — it only triggers an authentication attempt via the EFSRPC interface, leaving the AD database untouched. Option B is wrong because LSASS memory dumping (e.g., via Mimikatz sekurlsa::logonpasswords or ProcDump) is a separate credential-theft technique; PetitPotam itself does not read LSASS and Windows does not store the domain administrator's plaintext password there by default. Option D is wrong because Kerberos pre-authentication bypass (AS-REP roasting) targets user accounts configured with 'Do not require Kerberos preauthentication' and is unrelated to the MS-EFSRPC coercion primitive used by PetitPotam.

50
MCQhard

An elite penetration tester needs to pivot through a compromised Linux host using SSH local port forwarding (-L) to access a database server running on an internal port behind a firewall. Which correct syntax establishes a local port forward routing port 3306 on the attacker's machine to the internal database server IP 10.0.0.50 on port 3306 via the pivot host?

A.ssh -L 3306:10.0.0.50:3306 user@pivot_ip
B.ssh -D 3306 user@pivot_ip
C.ssh -C -N user@pivot_ip
D.ssh -R 3306:10.0.0.50:3306 user@pivot_ip
AnswerA

The `-L` flag binds port 3306 locally, then tunnels traffic through the SSH connection to the pivot host, which forwards it onward to 10.0.0.50:3306. This satisfies the stem's requirement to reach an internal database behind a firewall, since only the pivot host needs routable access to the database server.

Why this answer

The -L flag in OpenSSH establishes local port forwarding, and its argument syntax is [bind_address:]port:host:hostport. Here, '3306:10.0.0.50:3306' tells SSH to listen on local port 3306 and forward any connection through the pivot host to 10.0.0.50:3306, which is exactly the requirement for reaching an internal database behind a firewall.

Exam trap

CPENT often tests the directionality of SSH tunneling — candidates confuse -L (local forward, attacker listens) with -R (remote forward, target listens) and pick the wrong flag even when the host:port syntax looks correct.

How to eliminate wrong answers

Option B is wrong because -D creates a dynamic SOCKS proxy on the specified local port (3306 here), not a fixed TCP forward to a specific host:port. Option C is wrong because -C enables compression and -N suppresses remote command execution, but neither flag creates any port forward at all. Option D is wrong because -R sets up remote (reverse) forwarding, which makes the remote SSH server listen and tunnel traffic back to the attacker, the opposite direction of what is needed.

51
MCQeasy

An ethical hacker is examining an operational technology (OT) network and needs to identify programmable logic controllers (PLCs) using their native industrial protocols. Which default TCP port should the hacker scan to discover Modbus/TCP devices?

A.TCP 102
B.TCP 20000
C.TCP 502
D.UDP 44818
AnswerC

Modbus/TCP reserves TCP 502 as its registered port, and PLCs answer function-code requests there by default. Scanning 502 with tools such as Nmap's modbus-display script enumerates slave IDs and device identity, satisfying the native-protocol discovery requirement.

Why this answer

Modbus/TCP is an open protocol widely used in SCADA environments and operates natively over TCP port 502.

52
MCQmedium

During an AWS penetration test, the tester finds an Amazon API Gateway REST API configured with an AWS_IAM authorizer, but one specific method is mistakenly set to 'Authorization: None' (Open API method). What security risk does this introduce?

A.AWS WAF will automatically block all traffic to the API Gateway.
B.CloudFront distribution logs will fail to record incoming requests.
C.The API Gateway becomes vulnerable to SQL injection attacks against its internal DynamoDB storage.
D.Unauthenticated clients can invoke the specific API method directly, bypassing the intended AWS IAM signature authentication.
AnswerD

Setting the method's authorization type to None removes API Gateway's AWS_IAM signature check for that route, so requests reach the backend without SigV4 credentials. Any unauthenticated client can therefore invoke the method directly, bypassing the intended IAM authorisation.

Why this answer

Setting a method's authorization type to 'None' (also called 'Open') on an API Gateway REST API removes the AWS_IAM SigV4 requirement for that specific method. Any unauthenticated client on the internet can then invoke that method's integration endpoint directly, bypassing the IAM-signed request flow the rest of the API enforces. This is a classic broken-access-control misconfiguration that exposes backend Lambda functions, DynamoDB operations, or internal services to anonymous abuse.

Exam trap

The trap here is conflating 'authorization: None' with broader security controls (WAF, CloudFront, SQLi), when the actual effect is simply that unauthenticated callers can invoke that one method.

How to eliminate wrong answers

Option A is wrong because AWS WAF is an optional layer that must be explicitly attached to the API stage; it does not automatically block traffic just because a method is open, and WAF rules are not triggered by the authorization setting. Option B is wrong because CloudFront logging is independent of API Gateway authorization; CloudFront logs requests regardless of whether the origin requires IAM signing. Option C is wrong because API Gateway does not have 'internal DynamoDB storage' and SQL injection is not the risk introduced by an open method — the risk is unauthenticated invocation, not injection into a nonexistent SQL backend.

53
MCQmedium

A penetration tester is reviewing the firmware of a smart electricity meter and discovers that the bootloader is unlocked. The tester connects a USB-to-UART serial adapter to the board's exposed pins and interrupts the boot sequence to gain a root shell. Which environment variable or kernel boot parameter must the tester modify to bypass the root password authentication prompt entirely?

A.rootfstype=squashfs
B.ip=DHCP
C.mem=256M
D.init=/bin/sh
AnswerD

Setting `init=/bin/sh` replaces the kernel's default init process with a shell, so the boot sequence drops straight into a root shell without starting the login daemon that prompts for a password. This directly satisfies the stem's requirement to bypass the root password authentication prompt on the unlocked meter.

Why this answer

Appending 'init=/bin/sh' or 'init=/bin/bash' to the kernel boot arguments (bootargs) forces the Linux kernel to spawn a shell directly upon booting, bypassing init scripts and authentication prompts. 'rootfstype' defines the filesystem type, 'ip=' configures networking, and 'mem=' limits RAM.

54
Multi-Selectmedium

A security engineer is hardening an industrial SCADA environment against remote attacks. Which THREE of the following mitigation strategies are recommended best practices for securing OT networks? (Choose THREE)

Select 3 answers
A.Deploying industrial Intrusion Detection Systems (IDS) capable of parsing proprietary OT protocols (e.g., Modbus, DNP3, S7)
B.Utilizing unidirectional security gateways (data diodes) where data must flow from OT to IT without permitting inbound return paths
C.Allowing unrestricted direct Internet access from all PLC controllers for automated driver updates
D.Disabling all encryption across SCADA servers to improve packet inspection speeds on firewalls
E.Implementing strict network segmentation between IT corporate networks and OT plant floors using firewalls
AnswersA, B, E

Industrial IDS parsing Modbus, DNP3 and S7 detects malicious commands at the process level, where IT signature tools fail on proprietary protocols. This satisfies the stem's constraint of hardening SCADA against remote attacks by providing passive, protocol-aware monitoring that flags reconnaissance and manipulation attempts without disrupting fragile OT devices.

Why this answer

Option A is correct because industrial IDS solutions that understand proprietary OT protocols such as Modbus, DNP3, and S7 can detect malicious or anomalous control-plane traffic that generic IT IDS would miss, providing deep visibility into SCADA-specific attacks. Option B is correct because unidirectional security gateways (data diodes) enforce one-way data flow from OT to IT, physically preventing any inbound return path that an attacker could use to pivot into the plant floor. Option E is correct because strict segmentation between IT corporate networks and OT plant floors using firewalls (often via a DMZ or Purdue-model layering) limits lateral movement and blocks remote attacks originating from business or Internet-facing networks.

Option C is not recommended because giving PLC controllers unrestricted direct Internet access exposes them to remote exploitation and violates OT isolation principles; updates should be staged through controlled, mediated paths. Option D is not recommended because disabling encryption on SCADA servers weakens confidentiality and integrity and does not meaningfully improve firewall inspection, since firewalls generally do not decrypt traffic anyway.

Exam trap

CPENT often tests the misconception that 'encryption everywhere' and 'Internet access for updates' are universal hardening rules, when in OT the correct priorities are segmentation, one-way flow, and protocol-aware monitoring.

55
MCQmedium

An OT security engineer is conducting a vulnerability assessment on a Distributed Control System (DCS). The engineer needs to test for unauthorized firmware write capabilities on a legacy controller using the Modbus protocol. Which Modbus function code is typically associated with writing multiple holding registers, which could be abused to modify configuration parameters?

A.Function Code 01 (0x01) - Read Coils
B.Function Code 04 (0x04) - Read Input Registers
C.Function Code 02 (0x02) - Read Discrete Inputs
D.Function Code 16 (0x10) - Write Multiple Registers
AnswerD

Function Code 16 writes multiple holding registers in a single Modbus transaction, allowing an attacker to alter controller configuration parameters. This directly satisfies the requirement to test unauthorised firmware or configuration write capability on the legacy DCS controller.

Why this answer

Modbus function codes define the action to be performed. Function Code 16 (0x10) is 'Write Multiple Registers', frequently used to change register blocks in industrial controllers.

56
MCQeasy

During an internal penetration test, you need to identify active Windows hosts on a local subnet without generating noisy TCP or UDP port scan traffic. Which tool and command natively uses ARP requests to quickly map live systems on the local Ethernet segment?

A.Wireshark
B.Nikto
C.Netdiscover
D.Sqlmap
AnswerC

Netdiscover sends ARP requests directly, so it maps live hosts on the local Ethernet segment without TCP or UDP port traffic. ARP operates at layer 2, meaning no routable scan packets reach the subnet, satisfying the requirement to avoid noisy port scanning while quickly enumerating active Windows systems.

Why this answer

Netdiscover is a reconnaissance tool built specifically to send ARP requests (and ARP replies in active mode) to enumerate live hosts on a local Layer 2 segment. Because ARP operates below IP and requires no TCP/UDP ports to be open, it maps hosts quickly without generating the noisy port-scan traffic that IDS/IPS signatures look for.

Exam trap

The trap here is conflating passive capture tools (Wireshark) or general scanners with an active ARP-based discovery tool — candidates who have not used Netdiscover may assume Wireshark 'finds' hosts because it displays ARP packets.

How to eliminate wrong answers

Option A is wrong because Wireshark is a passive packet capture and analysis tool — it observes ARP traffic but does not actively generate ARP requests to discover hosts. Option B is wrong because Nikto is a web server vulnerability scanner that probes HTTP/HTTPS services, not a Layer 2 host discovery tool. Option D is wrong because sqlmap is an automated SQL injection exploitation tool and has nothing to do with ARP-based host enumeration.

57
MCQeasy

During a penetration test on a Windows domain, a tester has compromised a workstation and obtained the NTLM hash of a domain user. The tester wants to authenticate to a remote server using this hash without cracking it. Which tool and command should the tester use to perform a pass-the-hash attack?

A.Use 'runas /user:domain\username /savecred' and enter the hash when prompted for a password.
B.Use 'net use \\server\share /user:domain\username hash' to authenticate using the NTLM hash directly.
C.Use 'psexec \\server -u domain\username -p hash cmd.exe' to execute a command on the remote server.
D.Use Mimikatz with 'sekurlsa::pth /user:username /domain:domain /ntlm:hash /run:cmd.exe' to launch a new process with the hash injected.
AnswerD

Mimikatz's sekurlsa::pth command performs pass-the-hash by starting a new process with the specified NTLM hash injected into its logon session. This allows the tester to access remote resources as the user without knowing the plaintext password. It is a standard technique for lateral movement in Windows environments when only the hash is available.

Why this answer

Pass-the-hash requires injecting the NTLM hash into a new logon session so that Windows can use it for authentication. Mimikatz's sekurlsa::pth command does exactly this by launching a process with the hash, allowing the tester to access remote resources. Standard commands like net use, runas, and psexec do not accept hashes directly, so they cannot perform pass-the-hash on their own.

Exam trap

The trap here is assuming that built-in Windows tools like net use or psexec can accept an NTLM hash as a password, when they require plaintext credentials.

58
MCQmedium

An analyst is examining the firmware of an IoT gateway and discovers a JFFS2 file system image. The analyst wants to extract the file system contents. Which tool, specifically designed for JFFS2 extraction and analysis, should the analyst run on a Linux workstation?

A.dpkg-deb
B.jeffs2dump / mtd-utils
C.rpmbuild
D.apt-get extract
AnswerB

Utilities within mtd-utils such as jeffs2dump allow parsing and extracting JFFS2 compressed flash image formats.

Why this answer

The 'mtd-utils' package includes tools like 'jeffs2dump' and 'nanddump', while 'jeffs2dump' or 'jeffs2extract' utilities unpack JFFS2 file systems.

59
MCQmedium

An operator is conducting an Active Directory penetration test and has obtained domain admin credentials. To maintain persistence, they want to create a backdoor that allows them to authenticate as any user without knowing their password, even if the domain admin password is changed. Which of the following techniques would BEST achieve this?

A.Create a new domain admin account with a known password.
B.Forge a Golden Ticket using the KRBTGT account hash.
C.Set the 'AdminCount' attribute to 1 on a standard user account.
D.Enable the 'Do not require Kerberos preauthentication' flag on a service account.
AnswerB

A Golden Ticket is a forged TGT signed with the KRBTGT account's NTLM hash. With domain admin credentials, the operator can extract the KRBTGT hash and forge tickets that grant access to any resource. This backdoor remains valid even if the domain admin password is changed, as long as the KRBTGT hash is not reset. It provides long-term persistence.

Why this answer

A Golden Ticket is a forged Kerberos TGT that is signed with the KRBTGT account's hash. Once an operator has domain admin access, they can extract the KRBTGT hash and generate Golden Tickets at will. These tickets can be used to impersonate any user, including domain admins, and they remain valid until the KRBTGT password is changed twice (to invalidate all existing tickets).

This makes it a powerful persistence mechanism that survives password changes of individual accounts.

Exam trap

The trap here is confusing persistence mechanisms that rely on account modifications with those that use cryptographic keys, such as the KRBTGT hash, which are not affected by password changes.

60
MCQhard

You have obtained a memory dump from a Windows machine. Which tool allows you to extract hashes, including NTLM and Kerberos tickets, from this dump?

A.Mimikatz
B.Wireshark
C.Hashcat
D.Responder
AnswerA

Mimikatz parses memory dumps offline, extracting NTLM hashes and Kerberos tickets directly from LSASS structures without requiring live execution. This satisfies the stem's constraint of analysing an already-captured dump, since Mimikatz supports offline `sekurlsa` parsing against a saved file rather than only live memory.

Why this answer

Mimikatz is the standard tool used to parse LSASS dumps and extract authentication secrets.

61
MCQhard

An attacker has established a foothold inside a corporate network and needs to scan an internal subnet without generating noisy network connections that trigger host-based IDS alerts. They decide to use an idle scan. Which Nmap argument implements an idle scan via a zombie host?

A.-sZ
B.-sO
C.-sI
D.-sM
AnswerC

The -sI flag specifies a zombie host for an idle scan, spoofing the source address so packets appear to originate from the zombie rather than the attacker. This satisfies the requirement to avoid noisy connections that host-based IDS would flag, since the attacker never sends packets directly to the target.

Why this answer

The -sI flag instructs Nmap to perform an idle scan using a specified zombie host, allowing completely blind port scanning where packets appear to originate from the zombie.

62
MCQmedium

During an assessment of a Google Cloud Platform (GCP) environment, a penetration tester finds a Compute Engine instance with default service account credentials and scopes set to https://www.googleapis.com/auth/cloud-platform. What security implication does this broad scope present?

A.Google Cloud automatically rotates the service account private key every 60 seconds.
B.The service account possesses permissions across all GCP services unless explicitly restricted by IAM project-level bindings.
C.The instance is automatically accessible via SSH from any external IP address without firewall rules.
D.The instance metadata server disables access tokens to prevent Server-Side Request Forgery.
AnswerB

The cloud-platform scope grants OAuth access tokens covering every GCP API, so the default service account can call any service; IAM bindings are the only remaining restriction, meaning over-privileged tokens widen the blast radius if the instance is compromised.

Why this answer

The scope https://www.googleapis.com/auth/cloud-platform is the broadest OAuth scope available in GCP, granting the service account access to essentially all GCP APIs. IAM bindings then determine which specific actions the account can actually perform, but the scope itself does not restrict the API surface. Therefore, the service account can potentially reach every GCP service unless IAM policies explicitly deny or limit permissions.

Exam trap

CPENT often tests the misconception that OAuth scopes alone enforce fine-grained access control, when in reality IAM bindings are the primary authorization mechanism and scopes only set an upper bound.

How to eliminate wrong answers

Option A is wrong because Google Cloud does not automatically rotate service account private keys every 60 seconds; key rotation is a manual or customer-managed process, and default service accounts use Google-managed keys that are rotated periodically but not on a 60-second cycle. Option C is wrong because SSH accessibility is controlled by VPC firewall rules and instance-level SSH keys, not by OAuth scopes; a broad scope does not open SSH ports. Option D is wrong because the metadata server does not disable access tokens; it serves them to the instance, and SSRF attacks often exploit this behavior rather than being prevented by it.

63
MCQmedium

A penetration tester is assessing a building automation system that uses BACnet for communication between controllers and a central workstation. The tester wants to enumerate all BACnet devices on the network and identify their object types and properties. Which tool should the tester use to perform this enumeration?

A.BACnet discovery tool (e.g., BACnet Scan or VTS)
B.Wireshark with a BACnet display filter
C.Nmap with the bacnet-info NSE script
D.Metasploit with the bacnet_scanner module
AnswerA

This is correct because dedicated BACnet discovery tools like BACnet Scan or VTS (Visual Test Shell) actively send BACnet Who-Is and Read-Property requests to enumerate devices, their object types, and properties. They provide a comprehensive view of the BACnet network, which is exactly what the tester needs. These tools are designed for BACnet enumeration and can list objects such as Analog Input, Binary Output, and their present values.

Why this answer

A dedicated BACnet discovery tool such as BACnet Scan or VTS can actively query the network using BACnet services like Who-Is and Read-Property to enumerate all devices, object types, and properties. This provides the comprehensive inventory the tester needs. Other tools like Nmap or Wireshark may offer limited visibility but cannot perform the full active enumeration required.

Exam trap

The trap here is confusing passive protocol analyzers with active enumeration tools, leading to incomplete results.

64
MCQeasy

During a post-exploitation phase, you have obtained domain administrator credentials. You want to extract all password hashes from the domain controller's Active Directory database without installing additional software. Which built-in Windows utility should you use?

A.vssadmin
B.ntdsutil
C.secretsdump.py
D.wmic
AnswerB

ntdsutil is a built-in command-line tool that can create a snapshot of the Active Directory database (ntds.dit) and then mount it. Once mounted, the tester can copy the ntds.dit file and the SYSTEM registry hive to extract password hashes offline. It requires domain administrator privileges and is a native Windows utility.

Why this answer

ntdsutil is a native Windows utility that allows domain administrators to create and mount snapshots of the Active Directory database. By using ntdsutil, a tester can obtain a copy of ntds.dit and the SYSTEM registry hive, which can then be used offline to extract password hashes with tools like secretsdump.py or mimikatz. This method avoids installing additional software on the domain controller.

Exam trap

The trap here is confusing tools that facilitate copying ntds.dit (like vssadmin) with the utility that actually creates a usable snapshot for extraction, which is ntdsutil.

65
MCQhard

A penetration tester has obtained execution on a Linux host and needs to exfiltrate a sensitive archive file through a tightly restricted firewall that only permits outbound DNS traffic. Which tool and technique should the tester use?

A.Standard FTP client configured to use port 53 as the control channel.
B.Wget command pointing to an external HTTP server listening on port 53.
C.Netcat in listening mode on TCP port 53.
D.A DNS tunneling tool such as dnscat2 or iodine to encode the archive into DNS query records.
AnswerD

DNS tunnelling encodes data within DNS query and response records, which traverse the firewall because outbound DNS is permitted. Tools such as dnscat2 or iodine provide that channel, satisfying the stem's constraint of exfiltrating the archive through a firewall allowing only outbound DNS traffic.

Why this answer

DNS tunneling tools like dnscat2 or iodine encapsulate data inside DNS queries (such as TXT, A, or CNAME records) sent to a controlled nameserver.

66
MCQhard

A penetration tester is auditing an organization's wireless network and discovers an enterprise WPA2-Enterprise deployment utilizing PEAP-MSCHAPv2. Which tool can be used to set up a rogue RADIUS authentication server to capture enterprise user credentials when clients mistakenly associate?

A.Aircrack-ng
B.Hostapd-mana
C.Reaver
D.Kismet
AnswerB

Hostapd-mana impersonates a WPA2-Enterprise access point and runs a rogue RADIUS server that relays the PEAP-MSCHAPv2 exchange, capturing the client's MSCHAPv2 challenge-response for offline cracking. This directly satisfies the requirement to harvest enterprise credentials from misassociating clients.

Why this answer

EAPHammer or Hostapd-mana are specialized tools used to execute rogue access point attacks and evil twin attacks against WPA2/WPA3 Enterprise networks to capture credentials.

67
Multi-Selecthard

A penetration tester has obtained domain user credentials and wants to perform lateral movement to a Windows Server 2016 host using WinRM. The tester has network access to the target on port 5985. Which TWO methods can be used to execute commands remotely via WinRM? (Choose two.)

Select 2 answers
A.Using WMI with the /node:target parameter
B.Using PowerShell Remoting with Enter-PSSession
C.Using WinRS (Windows Remote Shell) with winrs -r:target
D.Using PsExec with the -r flag to specify WinRM
E.Using SSH to connect to the Windows host
AnswersB, C

Enter-PSSession establishes an interactive PowerShell session over WinRM, allowing command execution on the remote host. It uses the WS-Management protocol and works when WinRM is enabled and the tester has valid credentials, making it a standard lateral movement technique.

Why this answer

WinRM allows remote command execution via WS-Management. PowerShell Remoting (Enter-PSSession) and WinRS are native tools that utilize WinRM. They enable interactive or one-off command execution when WinRM is enabled and credentials are available, making them effective for lateral movement in Windows environments.

Exam trap

The trap here is confusing WinRM with other remote execution protocols like SMB or DCOM, leading to selection of tools that do not operate over port 5985.

68
MCQeasy

During an assessment of a smart water treatment facility, an analyst notices an HTTP-based web interface running on an embedded PLC. The analyst wants to discover hidden administrative backup directories and configuration files on the web server. Which command-line tool is specifically designed for brute-forcing web server directories and files?

A.Gobuster
B.Wifite
C.Nbtscan
D.Hping3
AnswerA

Gobuster performs brute-force enumeration of web directories and files using wordlists, directly satisfying the need to uncover hidden administrative backup directories and configuration files on the embedded PLC's HTTP interface. Its directory mode sends rapid requests and reports valid paths by response status.

Why this answer

Gobuster is a Go-based command-line tool purpose-built for brute-forcing URIs (directories and files), DNS subdomains, and virtual hosts on web servers. It uses wordlists to enumerate hidden paths such as /admin, /backup, and configuration files, making it the correct choice for discovering hidden administrative directories on the PLC's web interface.

Exam trap

CPENT often tests tool-to-purpose mapping — candidates may pick Hping3 or Nmap because they associate 'brute force' with network scanning, but directory brute-forcing is specifically a web content discovery task handled by Gobuster, Dirb, or Feroxbuster.

How to eliminate wrong answers

Option B is wrong because Wifite is a wireless attack automation tool for cracking WEP/WPA/WPS networks — it has nothing to do with web directory enumeration. Option C is wrong because Nbtscan enumerates NetBIOS name information on Windows networks, not HTTP paths. Option D is wrong because Hping3 is a packet crafting and TCP/IP testing tool used for port scanning and firewall testing, not web content discovery.

69
MCQmedium

During an internal penetration test, an operator compromises a Windows workstation and needs to harvest clear-text credentials or NTLM hashes from memory without generating excessive security alerts. Which built-in Windows administrative tool or mechanism can be leveraged legitimately to dump the lsass.exe process memory for offline analysis?

A.Invoke PowerShell with the Get-WmiObject Win32_Process cmdlet specifying the LSASS process handle
B.Execute the native net accounts command with the /dump flag to extract password hashes from the SAM registry hive
C.Run the built-in command rundll32.exe C:\Windows\System32\comsvcs.dll, MiniDump <LSASS_PID> C:\temp\lsass.dmp full
D.Use the tasklist /m lsass.exe command to output the active directory database credentials to the console
AnswerC

Comsvcs.dll's MiniDump export, invoked via rundll32, writes the lsass.exe process memory to a file using a signed Microsoft binary, avoiding third-party tooling and the alerts it attracts. This satisfies the need to harvest credentials legitimately.

Why this answer

The comsvcs.dll MiniDump export can be invoked via rundll32.exe to dump the memory of any process by PID, including lsass.exe, producing a full memory dump for offline credential extraction. Because rundll32 and comsvcs.dll are signed Microsoft binaries, this technique (often called 'comsvcs MiniDump' or 'rundll32 LSASS dump') is a living-off-the-land method that evades many application-whitelisting controls.

Exam trap

The trap is confusing legitimate administrative commands (net accounts, tasklist, Get-WmiObject) with actual memory-dumping techniques; only the comsvcs.dll MiniDump via rundll32 actually extracts LSASS memory.

How to eliminate wrong answers

Option A is wrong because Get-WmiObject Win32_Process can enumerate processes but cannot dump LSASS memory; WMI has no memory-dump capability. Option B is wrong because 'net accounts' manages password and logon policy settings and has no /dump flag; SAM hashes are not extracted this way. Option D is wrong because 'tasklist /m lsass.exe' only lists modules loaded by LSASS and does not output credentials or dump memory.

70
MCQmedium

A penetration tester is analyzing an Azure environment and discovers that an Azure Function App has been configured with managed identity enabled and possesses 'Contributor' access to the subscription. The function code contains a Server-Side Request Forgery (SSRF) vulnerability. How can the tester exploit the Azure Instance Metadata Service (IMDS) via this SSRF to elevate privileges?

A.Query 'http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01' with the header 'Metadata: true' to obtain an Azure access token using the managed identity.
B.Send a crafted SOAP request to the Azure Resource Manager endpoint to extract the storage account account key.
C.Extract the master deployment credentials from the Azure Web Job environment variables via port 443.
D.Exploit the Azure Function proxy configuration to read the /etc/passwd file from the underlying hypervisor.
AnswerA

Querying the IMDS endpoint at 169.254.169.254 with the required 'Metadata: true' header lets the SSRF retrieve an OAuth2 token minted for the function's managed identity. Because that identity holds Contributor over the subscription, the token grants control-plane access, satisfying the privilege-escalation objective without needing credentials.

Why this answer

The Azure Instance Metadata Service (IMDS) is accessible at http://169.254.169.254 and can provide an OAuth2 token for the managed identity when the request includes the header 'Metadata: true'. By exploiting SSRF, the tester can make the Function App issue a request to this endpoint and retrieve the token, which can then be used to access Azure resources with the Contributor role. This is a classic SSRF-to-cloud-metadata attack.

Exam trap

CPENT often tests cloud metadata SSRF exploitation; candidates may forget the required 'Metadata: true' header or confuse AWS IMDSv2 with Azure IMDS, leading to incorrect answers.

How to eliminate wrong answers

Option B is wrong because Azure Resource Manager does not accept SOAP requests; it uses REST, and extracting storage account keys typically requires authenticated access, not a SOAP request. Option C is wrong because Azure Web Job environment variables do not contain master deployment credentials, and port 443 is for HTTPS traffic, not for extracting credentials from environment variables. Option D is wrong because the Azure Function proxy configuration cannot read /etc/passwd from the hypervisor; the hypervisor is not accessible from within the function sandbox.

71
Multi-Selecthard

An IoT penetration tester is analyzing the security of a Zigbee smart lighting installation. Which TWO of the following tools or frameworks are specifically utilized when assessing 802.15.4 and Zigbee wireless security? (Choose TWO)

Select 2 answers
A.KillerBee (Python framework for exploiting Zigbee/IEEE 802.15.4)
B.Aircrack-ng suite for cracking WPA-PSK Wi-Fi pre-shared keys
C.Wireshark configured with a captured network key to decrypt 802.15.4 application layers
D.Metasploit 'msfvenom' module generating Windows Meterpreter payloads for Active Directory persistence
E.Burp Suite Professional for intercepting HTTP requests from web applications
AnswersA, C

KillerBee is a Python framework providing 802.15.4 packet capture, injection and Zigbee exploitation primitives, directly satisfying the stem's requirement for a tool specifically targeting Zigbee wireless security assessment rather than generic Wi-Fi or Bluetooth testing.

Why this answer

KillerBee (A) is correct because it is a Python-based framework specifically designed for sniffing, injecting, and exploiting Zigbee and IEEE 802.15.4 networks, making it a core tool for assessing smart lighting installations that use these protocols. Wireshark (C) is correct because, when supplied with the captured Zigbee network key, it can decrypt and dissect 802.15.4 application-layer traffic (e.g., Zigbee APS/ZCL payloads), which is essential for analyzing the security of the lighting network. Aircrack-ng (B) targets Wi-Fi WPA-PSK handshakes and is irrelevant to 802.15.4/Zigbee, Metasploit's msfvenom (D) generates Windows Meterpreter payloads for host/AD attacks rather than RF-layer Zigbee assessment, and Burp Suite (E) intercepts HTTP(S) web traffic, none of which apply to Zigbee wireless security testing.

72
Multi-Selectmedium

A penetration tester is conducting an assessment of an MQTT-based smart home ecosystem. Which THREE of the following security configuration checks should the tester perform on the MQTT broker? (Choose THREE)

Select 3 answers
A.Verifying that the broker responds to Modbus/TCP function code 0x10 write requests
B.Testing if Access Control Lists (ACLs) are enforced to restrict topic publishing and subscribing rights
C.Executing an 802.11 deauthentication flood against the MQTT broker's MAC address
D.Verifying whether anonymous client connections are permitted by the broker
E.Checking if communication traffic is encrypted using TLS (Transport Layer Security)
AnswersB, D, E

Without enforced ACLs, any authenticated client can publish or subscribe to arbitrary topics, including control channels for locks or medical commands. Verifying ACL enforcement confirms whether the broker restricts topic-level permissions, satisfying the check for unauthorised publish and subscribe access.

Why this answer

Option B is correct because MQTT brokers rely on ACLs to authorize which clients may publish or subscribe to specific topics, and a tester should verify that these restrictions are actually enforced to prevent unauthorized topic access. Option D is correct because many brokers ship with anonymous access enabled by default, so confirming whether unauthenticated clients can connect is a fundamental MQTT hardening check. Option E is correct because MQTT traffic is frequently deployed in cleartext on TCP port 1883, and verifying that TLS is used (typically on port 8883) ensures confidentiality and integrity of the smart home communications.

Option A does not belong because Modbus/TCP function code 0x10 (Write Multiple Registers) is an industrial control protocol unrelated to MQTT broker configuration. Option C does not belong because an 802.11 deauthentication flood is a wireless-layer denial-of-service attack against Wi-Fi clients, not a broker security configuration check.

73
MCQeasy

A penetration tester is evaluating a smart home IoT hub and needs to extract the firmware to analyze hardcoded cryptographic keys. The device exposes a physical debugging interface on the board with clock, data, ground, and power pins. Which hardware hacking tool should the tester connect to these pins to interact with the internal flash memory and dump the firmware?

A.Bus Pirate
B.Wireshark
C.Logic Analyzer
D.HackRF One
AnswerA

The exposed clock, data, ground and power pins form a serial debug bus such as SPI or I2C. Bus Pirate speaks those protocols directly, letting the tester read the internal flash chip and dump firmware for hardcoded key analysis, which the scenario requires.

Why this answer

The Bus Pirate is a universal open-source hardware hacking tool designed to interface with embedded chips via SPI, I2C, UART, JTAG, and other low-level protocols. The described pins (clock, data, ground, power) match an SPI or I2C flash chip interface, which the Bus Pirate can directly read to dump firmware. It is the standard tool for in-circuit flash extraction when a physical debugging header is exposed.

Exam trap

CPENT often tests tool-purpose confusion — candidates see 'debugging interface' and pick a logic analyzer because it sounds like a debugging tool, but a logic analyzer only observes signals passively and cannot actively read or dump flash memory like the Bus Pirate.

How to eliminate wrong answers

Option B is wrong because Wireshark is a software network protocol analyzer that captures and inspects network packets — it has no physical interface for connecting to hardware debug pins or reading flash memory. Option C is wrong because a logic analyzer passively observes and records digital signals for timing analysis; it does not actively drive a bus or read flash contents, so it cannot dump firmware. Option D is wrong because the HackRF One is a software-defined radio for transmitting and receiving RF signals (e.g., Bluetooth, GPS, GSM), not a tool for interfacing with SPI/I2C flash chips on a circuit board.

74
MCQeasy

A CPENT tester is evaluating an IoT device that exposes a serial console header on its PCB. After connecting a UART adapter, the tester sees garbled characters in the terminal. Which action should the tester take to obtain a readable console output?

A.Enable hardware flow control (RTS/CTS) in the terminal to stabilize the serial connection
B.Increase the UART adapter's voltage from 3.3V to 5V to boost signal integrity
C.Adjust the terminal's baud rate to match the device's configured UART speed, trying common values such as 115200 or 9600
D.Swap the TX and RX lines on the UART adapter to correct the garbled output
AnswerC

Garbled UART output almost always indicates a baud rate mismatch between the terminal and the device. Trying standard speeds like 115200, 57600, 38400, or 9600 until readable text appears is the correct diagnostic step. This is non-destructive and quickly establishes a working console for further IoT firmware and bootloader analysis.

Why this answer

Garbled UART output indicates the terminal's baud rate does not match the device's configured speed. Systematically trying common baud rates such as 115200, 57600, 38400, and 9600 until readable text appears is the standard, non-destructive fix. This restores the serial console, enabling bootloader and firmware analysis on the IoT device.

Exam trap

The trap here is misdiagnosing garbled UART output as a wiring or voltage problem, when it is almost always a baud rate mismatch.

75
MCQeasy

A penetration tester is evaluating an embedded IoT device that exposes a Telnet service on port 23. The tester suspects default credentials are in use. Which command-line tool can the tester use to perform a fast dictionary attack against the Telnet service using a username and password list?

A.Sqlmap
B.Hydra
C.Nikto
D.Wpscan
AnswerB

Hydra performs parallelised online dictionary attacks against network login services, including Telnet on port 23, accepting separate username and password lists. Its speed and protocol modules satisfy the stem's requirement for a fast credential-guessing tool.

Why this answer

Hydra is a fast, parallelized online password-cracking tool that supports dozens of protocols including Telnet, FTP, SSH, SMB, and HTTP. It accepts -L/-P username and password wordlists and performs a dictionary attack against a live service, making it the correct tool for brute-forcing Telnet on port 23. Its -t flag controls parallel tasks per target, and -f stops on the first valid credential found.

Exam trap

The trap here is confusing general-purpose scanners (Nikto, Wpscan, sqlmap) with dedicated authentication brute-force tools; candidates often pick Nikto because it 'scans services,' but it does not perform credential attacks.

How to eliminate wrong answers

Option A is wrong because sqlmap is a SQL injection automation tool for web applications and has no Telnet authentication brute-force capability. Option C is wrong because Nikto is a web server vulnerability scanner that probes HTTP/HTTPS services for misconfigurations and known issues, not a credential brute-forcer. Option D is wrong because Wpscan is a WordPress-specific scanner that enumerates plugins, themes, and users, and cannot attack a raw Telnet service.

Page 1 of 4

Page 2

All pages