Courseiva

CCNA Network And Perimeter Exploitation Questions

59 questions · Network And Perimeter Exploitation · All types, answers revealed

1
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.

2
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.

3
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.

4
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.

5
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.

6
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.

7
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.

8
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.

9
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.

10
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).

11
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.

12
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.

13
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.

14
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.

15
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.

16
MCQeasy

A penetration tester is performing service enumeration on a target FTP server. To quickly grab the banner and check what FTP software version is running without initiating an interactive login session, which tool is most appropriate?

A.Netcat
B.Wpscan
C.Hashcat
D.Airbase-ng
AnswerA

Netcat opens a raw TCP connection to port 21 and prints the server's greeting banner immediately, revealing the FTP software and version without sending USER or PASS credentials. This satisfies the requirement to enumerate without an interactive login session.

Why this answer

Netcat can open a raw TCP connection to the FTP port and display the server's banner immediately upon connection, revealing the FTP software and version without performing a login. A simple nc target 21 returns the 220 service-ready banner, which is exactly the lightweight banner grab the question asks for.

Exam trap

The trap is overthinking the tool choice; candidates may reach for a dedicated FTP client or scanner when the question specifically asks for a quick banner grab without login, which is the classic use case for Netcat.

How to eliminate wrong answers

Option B is wrong because Wpscan is a WordPress vulnerability scanner that targets web applications, not FTP services. Option C is wrong because Hashcat is an offline password-cracking tool; it does not connect to network services or grab banners. Option D is wrong because Airbase-ng is a wireless tool for creating fake access points in Wi-Fi attacks, unrelated to FTP enumeration.

17
MCQhard

A penetration tester is performing a network assessment against a target running an advanced Intrusion Prevention System (IPS). To evade signature-based detection that looks for standard Nmap probe payloads, which Nmap option allows the user to append random junk data to generated packets?

A.--mtu
B.--badsum
C.--data-length
D.-f
AnswerC

The --data-length option appends random junk bytes to Nmap's generated packets, altering payload signatures so the IPS's signature-based detection no longer matches standard probe patterns. This satisfies the requirement to evade detection while still performing the scan.

Why this answer

The --data-length option tells Nmap to append a random number of bytes to the sent packets, altering their length signature and evading simple signature-based Nmap detection rules.

18
MCQhard

You are conducting an external penetration test against a company that uses a Cisco ASA firewall. You have identified that the firewall is running an older firmware version. Which technique would best allow you to bypass the firewall's access control lists to reach an internal web server on port 80?

A.Fragmented packet attack using overlapping IP fragments
B.TCP port redirection using a compromised external host
C.Source routing with the IP Record Route option
D.Exploiting a known vulnerability in the ASA firmware to gain access
AnswerD

If the Cisco ASA firmware is outdated and vulnerable, exploiting a known vulnerability could allow you to bypass ACLs, gain shell access, or tunnel traffic. This directly addresses the scenario's hint about older firmware. Unlike evasion techniques, exploiting a vulnerability can provide a direct path to the internal web server by compromising the firewall itself.

Why this answer

Exploiting a known vulnerability in outdated Cisco ASA firmware can yield direct access or the ability to bypass ACLs, enabling reach to internal resources. The scenario emphasizes older firmware, signaling that a vulnerability exploit is the most effective route. Other techniques like fragmentation or source routing are typically mitigated by modern firewalls and do not provide a reliable ACL bypass in this context.

Exam trap

The trap here is assuming that generic evasion techniques like fragmentation will bypass ACLs; in reality, they often only evade detection, not enforcement.

19
Multi-Selecthard

You are hardening and analyzing network perimeter defenses against advanced evasion techniques. Which TWO of the following Nmap features or scan modifications are specifically designed to evade packet inspection filters by altering packet headers or timing parameters?

Select 2 answers
A.Using the -p- option to scan all 65,535 TCP ports on the target host
B.Using the -D option to launch a decoy scan with multiple fake source IP addresses
C.Using the --script option to execute NSE vulnerability scripts against open ports
D.Using the -oA option to output scan results simultaneously in normal, XML, and Grepable formats
E.Using the --source-port or -g option to spoof source ports to trusted ports like 53 or 20
AnswersB, E

The -D decoy option inserts forged source IP addresses into scan packets, so packet inspection filters cannot reliably attribute traffic to the real scanner. This header alteration directly satisfies the stem's requirement for evading inspection filters by modifying packet headers.

Why this answer

Option B is correct because Nmap's -D (decoy) option injects multiple spoofed source IP addresses into the scan, so packet inspection filters and IDS/IPS sensors see traffic from many apparent senders and cannot easily attribute or block the real scanning host. Option E is correct because --source-port (or -g) sets the TCP/UDP source port to a chosen value such as 53 (DNS) or 20 (FTP-data), which can slip past poorly written firewall or ACL rules that trust traffic originating from those well-known ports. Option A is not an evasion technique; -p- simply expands the port range to all 65,535 TCP ports and affects coverage, not header or timing manipulation.

Option C is not an evasion feature; --script runs NSE scripts for discovery or vulnerability detection against open ports. Option D is not an evasion feature; -oA only writes scan output in normal, XML, and Grepable formats for reporting.

Exam trap

CPENT often tests the distinction between scan scope options (-p-, -oA) and true evasion options (-D, -g) — candidates who don't know Nmap's flag taxonomy may pick output or coverage flags thinking they affect packet inspection.

20
MCQmedium

During an internal network security assessment, a tester discovers that a legacy application communicates over a custom TCP port with unencrypted traffic. To capture and analyze this traffic without disrupting communications, which passive technique on a managed switch should be configured by the network administrator?

A.802.1X Authentication
B.VLAN Trunking Protocol
C.SPAN (Switched Port Analyzer) / Port Mirroring
D.Port Security
AnswerC

SPAN mirrors copies of frames from the target switch port to an analysis port, leaving the original traffic path untouched. This satisfies the stem's passive, non-disruptive constraint, unlike active interception via ARP spoofing or an inline tap that would alter the legacy application's communications.

Why this answer

SPAN (Switched Port Analyzer), also called port mirroring, copies traffic from one or more switch ports to a designated monitoring port where a capture device or IDS can analyze it. It is passive — it does not alter or interrupt the monitored traffic — making it the correct technique for capturing the legacy application's unencrypted TCP stream on a managed switch.

Exam trap

CPENT often tests whether candidates can distinguish passive monitoring techniques (SPAN/port mirroring, taps) from access-control techniques (802.1X, port security) that sound network-related but do not capture traffic.

How to eliminate wrong answers

Option A is wrong because 802.1X is port-based network access control that authenticates devices before granting network access; it does not copy or expose traffic for analysis. Option B is wrong because VLAN Trunking Protocol (VTP) propagates VLAN configuration between Cisco switches; it is a management protocol, not a traffic-capture mechanism. Option D is wrong because port security limits which MAC addresses can appear on a port to prevent MAC flooding; it restricts access rather than mirroring traffic.

21
Multi-Selecthard

An elite penetration tester is attempting to evade network intrusion detection systems (IDS) during a port scan. Which THREE techniques can be applied via Nmap command-line options to obscure the scan origin or payload? (Choose THREE)

Select 3 answers
A.Packet fragmentation (-f flag)
B.Aggressive timing template (-T5)
C.Source IP spoofing (-S flag)
D.OS fingerprinting (-O flag)
E.Decoy scanning (-D flag)
AnswersA, C, E

Packet fragmentation splits TCP headers across multiple IP fragments, so signature-based IDS sensors inspecting individual packets cannot match the full probe pattern. This directly satisfies the scenario's requirement to obscure scan payloads during an Nmap port scan, since reassembly is needed before detection logic can identify the scan.

Why this answer

Packet fragmentation (-f flag) is correct because it splits probe packets into smaller IP fragments, making it harder for IDS signature engines to reassemble and match the scan payload. Source IP spoofing (-S flag) is correct because it lets Nmap forge the source address of scan packets, hiding the true origin of the scan from the target and its IDS. Decoy scanning (-D flag) is correct because it injects spoofed decoy source addresses alongside the real scan, obscuring which packets originate from the actual tester.

The aggressive timing template (-T5) only speeds up scanning and actually increases detectability, while OS fingerprinting (-O flag) is a detection/identification feature that does not obscure origin or payload.

22
MCQeasy

A security analyst is auditing an internal network and wishes to identify all active DNS servers that allow unauthorized zone transfers (AXFR). Which tool is specifically designed to test for DNS zone transfer vulnerabilities?

A.Nbtscan
B.DirBuster
C.Snort
D.Dig
AnswerD

Dig issues an AXFR query directly against a nameserver and reports whether the zone transfer succeeds, making it the purpose-built tool for identifying servers permitting unauthorised transfers. This satisfies the requirement to test zone transfer vulnerabilities.

Why this answer

Dig is the standard DNS query utility, and issuing a query of type AXFR against a name server (dig AXFR @ns target.com) directly tests whether that server permits an unauthorized zone transfer. If the server responds with the full zone contents, the AXFR vulnerability is confirmed. This makes dig the purpose-built tool for the task.

Exam trap

CPENT often tests whether candidates can match a tool to its exact protocol purpose; dig is sometimes overlooked because candidates associate DNS testing with nslookup, but the exam expects recognition that dig is the standard AXFR testing utility.

How to eliminate wrong answers

Option A is wrong because Nbtscan enumerates NetBIOS name information on Windows networks; it has nothing to do with DNS zone transfers. Option B is wrong because DirBuster is a web content brute-forcer that discovers hidden directories and files on HTTP servers, not DNS records. Option C is wrong because Snort is an intrusion detection/prevention system that monitors traffic for malicious patterns; it can alert on AXFR but is not designed to initiate and test a zone transfer.

23
Multi-Selectmedium

A penetration tester is conducting reconnaissance against a web application firewall (WAF) protected perimeter. Which TWO methods can help identify whether a WAF is present in front of a web server? (Choose TWO)

Select 2 answers
A.Reviewing local ARP cache tables
B.Running the wafw00f enumeration tool
C.Performing a standard ICMP ping sweep
D.Running a DNS zone transfer (AXFR) query
E.Triggering known bad request patterns (e.g., malformed payloads) to observe block responses
AnswersB, E

Running wafw00f sends crafted requests and analyses response headers, status codes and payload reflections to fingerprint the specific WAF vendor, satisfying the requirement to identify whether a WAF sits in front of the web server. Its signature database distinguishes products such as Cloudflare, Akamai and Imperva from unprotected responses.

Why this answer

Option B is correct because wafw00f is a purpose-built fingerprinting tool that sends a series of benign and malicious HTTP requests and analyzes response headers, cookies, and status codes to identify the specific WAF product (e.g., Cloudflare, ModSecurity, AWS WAF) protecting a web server. Option E is correct because sending known malicious payloads such as SQL injection strings or XSS vectors and observing characteristic block responses (e.g., HTTP 403, 406, or 999, or vendor-specific error pages) is a reliable behavioral technique to confirm a WAF is inspecting and filtering traffic. Option A is not relevant because ARP cache tables only reveal layer-2 MAC-to-IP mappings on the local segment and cannot indicate the presence of a WAF, which operates at the application layer.

Option C is incorrect because an ICMP ping sweep only tests host reachability and is typically blocked or answered by the origin server regardless of any WAF. Option D is incorrect because a DNS AXFR zone transfer enumerates DNS records and, even if permitted, reveals nothing about whether an application-layer firewall sits in front of the web server.

24
MCQhard

During an assessment of an enterprise network, you discover an insecure Server Message Block (SMB) configuration. You want to enumerate network shares and user accounts using enum4linux without triggering account lockout policies through brute-force methods. Which underlying protocol implementation does enum4linux primarily leverage to query Windows and Samba hosts for granular domain information?

A.Remote Procedure Calls (RPC) over SMB
B.Lightweight Directory Access Protocol (LDAP) over port 389
C.NetBIOS Name Service (NBNS) over UDP port 137
D.Simple Network Management Protocol (SNMP)
AnswerA

enum4linux queries Windows and Samba hosts through MS-RPC interfaces transported over SMB, using calls such as SAMR and LSA to enumerate shares, users, and domain details. This RPC-over-SMB mechanism retrieves granular information without brute-forcing credentials, avoiding account lockout.

Why this answer

enum4linux is a wrapper around tools like rpcclient, net, and nmblookup that primarily uses MS-RPC over SMB (typically via the IPC$ share and the SAMR/LSARPC interfaces) to enumerate users, groups, shares, and password policies. This RPC-over-SMB approach queries domain information without brute-forcing credentials, avoiding account lockouts. It targets ports 139/445 and leverages null or authenticated SMB sessions.

Exam trap

CPENT often tests the protocol underlying enum4linux, and candidates mistakenly choose LDAP because it is the 'directory' protocol, when enum4linux actually relies on RPC over SMB for its core enumeration.

How to eliminate wrong answers

Option B is wrong because enum4linux does not primarily use LDAP over 389; while LDAP can enumerate AD, enum4linux's core functionality relies on RPC calls over SMB, not LDAP queries. Option C is wrong because NBNS over UDP 137 is used for NetBIOS name resolution, not for granular domain enumeration like user and group listing. Option D is wrong because SNMP is a network management protocol used for device monitoring, not for querying Windows/Samba domain information, and enum4linux does not use it.

25
MCQmedium

A penetration tester has compromised an internal Windows workstation and wants to extract saved credentials from the Local Security Authority Subsystem Service (LSASS) memory. Which utility from the Sysinternals suite, frequently abused by red teams, can be used to safely dump the lsass.exe process memory?

A.ProcDump
B.Process Explorer
C.TCPView
D.Autoruns
AnswerA

ProcDump captures a full process memory snapshot of lsass.exe without terminating it, satisfying the requirement to dump credentials safely while the service keeps running. Invoked as `procdump -ma lsass.exe`, it writes a minidump that Mimikatz or Pypykatz can later parse offline for cached hashes and plaintext passwords.

Why this answer

ProcDump, part of the Sysinternals suite, can create a memory dump of a running process by name or PID, so running it against lsass.exe produces a dump file that can later be parsed offline with Mimikatz or similar tools to recover cached credentials and hashes. It is frequently abused by red teams because it is a legitimate, signed Microsoft utility that is less likely to trigger antivirus than custom dumpers.

Exam trap

The trap here is confusing general-purpose Sysinternals tools (Process Explorer, Autoruns, TCPView) with the one tool specifically built to dump process memory; candidates who have only used Process Explorer for troubleshooting often assume it can also dump LSASS.

How to eliminate wrong answers

Option B is wrong because Process Explorer is a GUI task manager and process inspection tool; it can view handles and DLLs but is not designed to produce a full memory dump of lsass.exe for credential extraction. Option C is wrong because TCPView only displays active TCP/UDP endpoints and owning processes — it has no memory-dumping capability. Option D is wrong because Autoruns enumerates autostart locations (Run keys, services, scheduled tasks) for persistence analysis; it does not interact with process memory at all.

26
MCQeasy

A pentester needs to verify whether a remote server is listening on a specific UDP port, say port 123 (NTP). They send a UDP packet, but the target responds with an ICMP Port Unreachable message. What does this response indicate about the port?

A.The host is offline.
B.The port is filtered by a firewall.
C.The port is open and active.
D.The port is closed.
AnswerD

ICMP Port Unreachable is generated by the target's IP stack when no application is bound to that UDP port. Receiving it confirms the host is reachable but nothing is listening on 123, distinguishing a closed port from a filtered one, where a firewall would silently drop the probe.

Why this answer

An ICMP Port Unreachable message (Type 3, Code 3) is returned by the target host when a UDP packet is sent to a port with no listening service. This indicates the port is closed — the host is reachable and actively responding, but no application is bound to that UDP port. It is a definitive sign that the port is not open.

Exam trap

CPENT often tests the interpretation of ICMP responses — candidates confuse 'Port Unreachable' (closed) with 'filtered' (no response) or 'open' (application reply), leading them to pick the wrong port state.

How to eliminate wrong answers

Option A is wrong because if the host were offline, the sender would receive no response at all (or an ICMP Host Unreachable from a router), not a Port Unreachable from the target itself. Option B is wrong because a firewall filtering the port would typically drop the packet silently (no response) or send an ICMP Administratively Prohibited message, not a Port Unreachable. Option C is wrong because an open UDP port would either respond with an application-layer reply (e.g., NTP would return a time packet) or give no response if the service ignores the packet — it would never send ICMP Port Unreachable.

27
MCQmedium

A penetration tester has gained access to a Linux host and discovers that port forwarding using SSH is restricted, but outbound HTTPS (port 443) traffic is allowed. Which tool creates encrypted TCP tunnels over HTTP or HTTPS and is ideal for egress bypassing?

A.Neo-reGeorg
B.Netcat
C.Traceroute
D.DNS2TCP
AnswerA

Neo-reGeorg tunnels TCP traffic inside HTTP/HTTPS requests, so it traverses the permitted port 443 egress path that SSH forwarding cannot use. It encrypts the tunnel payload and supports full-duplex SOCKS-style proxying, satisfying the stem's constraint of restricted SSH forwarding with only outbound HTTPS allowed.

Why this answer

Neo-reGeorg is a tunneling tool that encapsulates TCP traffic within HTTP/HTTPS requests, allowing a compromised host to relay traffic through web servers even when only port 443 egress is permitted. It is designed specifically for egress bypass in restricted environments.

Exam trap

CPENT often tests the distinction between tunneling protocols — candidates must recognize that HTTP/HTTPS encapsulation (Neo-reGeorg) differs from DNS tunneling (DNS2TCP) and raw TCP (Netcat), and match the tool to the allowed egress port.

How to eliminate wrong answers

Option B is wrong because Netcat creates raw TCP/UDP connections and cannot encapsulate traffic inside HTTP/HTTPS, so it fails when only web ports are allowed. Option C is wrong because Traceroute is a diagnostic tool for mapping network paths, not a tunneling utility. Option D is wrong because DNS2TCP tunnels traffic over DNS queries, which is a different egress channel and not HTTP/HTTPS-based; it also requires DNS egress, which may be restricted.

28
Multi-Selectmedium

During an internal network penetration test, a tester identifies an active DHCP server on the local network. Which TWO attacks can be launched against the DHCP infrastructure to disrupt service or intercept traffic? (Choose TWO)

Select 2 answers
A.DNS Zone Transfer (AXFR)
B.DHCP Spoofing / Rogue DHCP Server
C.DHCP Starvation / Exhaustion
D.Kerberoasting
E.ARP Cache Poisoning
AnswersB, C

A rogue DHCP server answers client requests before the legitimate server, handing out attacker-controlled gateway and DNS settings. This satisfies the stem's interception objective, letting the tester position themselves as man-in-the-middle for all subsequent client traffic.

Why this answer

DHCP Spoofing / Rogue DHCP Server (B) is correct because an attacker can stand up an unauthorized DHCP server that answers client DISCOVER/REQUEST messages with malicious OFFER/ACK leases, supplying a rogue default gateway and DNS server so the victim's traffic is redirected through the attacker for interception (a man-in-the-middle). DHCP Starvation / Exhaustion (C) is correct because the attacker floods the DHCP server with forged DHCP DISCOVER requests using spoofed/changing MAC addresses (e.g., via tools like Yersinia or dhcpstarv), consuming the entire DHCP address pool so legitimate clients cannot obtain a lease, causing a denial of service. DNS Zone Transfer (AXFR) (A) is a DNS misconfiguration attack that copies zone records and does not target DHCP.

Kerberoasting (D) is an Active Directory attack that requests Kerberos service tickets (TGS) for accounts with SPNs to crack their passwords offline, unrelated to DHCP. ARP Cache Poisoning (E) manipulates ARP tables at Layer 2 to intercept traffic but does not attack the DHCP infrastructure itself.

Exam trap

CPENT often tests whether candidates can distinguish attacks that target a specific service (DHCP) from adjacent Layer 2 or authentication attacks (ARP poisoning, Kerberoasting) that are commonly mentioned in the same network-attack discussion but do not actually exploit DHCP itself.

29
MCQhard

You are attempting to evade a stateful packet inspection (SPI) firewall that drops TCP packets with invalid TCP flag combinations. You decide to use Nmap to perform a stealth scan against a target web server behind this perimeter. Which Nmap scan type explicitly sends a packet with the FIN, PSH, and URG flags set, relying on RFC 793 behavior where closed ports reply with an RST and open ports ignore the packet?

A.Nmap Null Scan (-sN)
B.Nmap Window Scan (-sW)
C.Nmap FIN Scan (-sF)
D.Nmap Xmas Tree Scan (-sX)
AnswerD

The Xmas scan sets FIN, PSH and URG simultaneously, a flag combination RFC 793 requires closed ports to answer with RST while open ports silently discard. This satisfies the stem's constraint of evading SPI firewalls that drop invalid flag combinations.

Why this answer

The Xmas Tree scan (-sX) is named for the three flags it sets — FIN, PSH, and URG — which 'light up' the TCP header like a Christmas tree. Per RFC 793, a closed port must respond to a packet with no SYN/ACK/RST with an RST, while an open port silently discards it, so the scan infers port state from the presence or absence of an RST.

Exam trap

CPENT often tests the specific flag combinations of each stealth scan — candidates confuse Null (no flags), FIN (FIN only), and Xmas (FIN+PSH+URG) and pick the wrong one based on the name alone.

How to eliminate wrong answers

Option A is wrong because the Null scan (-sN) sends a packet with no TCP flags set at all, not FIN+PSH+URG. Option B is wrong because the Window scan (-sW) is a variant of the ACK scan that examines the TCP window size field in RST responses to differentiate open from closed ports, and it does not use FIN/PSH/URG. Option C is wrong because the FIN scan (-sF) sends only the FIN flag, not the three-flag combination that defines the Xmas scan.

30
Multi-Selecthard

A penetration tester is analyzing network traffic associated with lateral movement and needs to identify potential Kerberoasting activity in Active Directory. Which THREE indicators or artifacts are typically associated with this attack? (Choose THREE)

Select 3 answers
A.Targeting user accounts that have associated Service Principal Names (SPNs)
B.High volume of TGS-REQ (Ticket Granting Service Request) messages
C.Massive outbound DNS zone transfers (AXFR)
D.Frequent LLMNR poisoning broadcasts
E.Requests for TGS tickets with weaker encryption types (e.g., RC4-HMAC)
AnswersA, B, E

Kerberoasting begins by enumerating accounts with registered Service Principal Names, since each SPN-bearing account has a service ticket encrypted with its password hash that can be requested and cracked offline. This targets the SPN linkage that makes the attack possible.

Why this answer

Kerberoasting begins by enumerating Active Directory accounts that have Service Principal Names (SPNs) registered, because any authenticated domain user can request a service ticket for those accounts, so option A correctly describes the target selection step. The attack then generates a high volume of TGS-REQ messages (Kerberos service ticket requests) to obtain those service tickets for offline cracking, making option B a valid network indicator. Attackers also favor requesting service tickets with weaker encryption such as RC4-HMAC (etype 23) because RC4 ticket hashes crack faster than AES, so option E is a legitimate artifact of Kerberoasting.

Option C is wrong because AXFR zone transfers are a DNS reconnaissance technique, not part of Kerberos service ticket abuse. Option D is wrong because LLMNR poisoning is a name-resolution credential-capture attack (e.g., Responder), unrelated to Kerberoasting's TGS ticket requests.

31
Multi-Selecteasy

An internal penetration tester needs to scan a local subnet for live hosts quickly and quietly without sending TCP or UDP port traffic. Which TWO methods rely on network layer protocols other than TCP port scanning for host discovery? (Choose TWO)

Select 2 answers
A.TCP Connect scan (-sT)
B.TCP SYN port scan (-sS)
C.UDP port scan (-sU)
D.ARP ping discovery (-PR)
E.ICMP Echo request ping (-PE)
AnswersD, E

ARP ping discovery operates at layer 2, broadcasting ARP requests to resolve IP addresses to MAC addresses on the local subnet. It never touches TCP or UDP, satisfying the requirement for fast, quiet host discovery without port traffic.

Why this answer

Option D, ARP ping discovery (-PR), is correct because Nmap's ARP scan operates at the data link/network layer by broadcasting ARP requests ("who has this IP?") and identifying live hosts from ARP replies, without generating any TCP or UDP port traffic, making it fast and quiet on a local subnet. Option E, ICMP Echo request ping (-PE), is correct because it uses the network-layer ICMP protocol (type 8 Echo Request, expecting type 0 Echo Reply) to determine host liveness, again without sending TCP or UDP port probes. Option A, TCP Connect scan (-sT), is wrong because it completes full TCP three-way handshakes to target ports, which is exactly the TCP port traffic the tester must avoid.

Option B, TCP SYN port scan (-sS), is wrong because it sends TCP SYN packets to ports (half-open scanning), still TCP port traffic. Option C, UDP port scan (-sU), is wrong because it sends UDP datagrams to target ports, which is UDP port traffic and also slow and noisy.

32
MCQmedium

During a network audit, a tester discovers that a router is running an insecure routing protocol implementation susceptible to routing table poisoning. Which protocol relies on cleartext updates and hop-count metrics up to 16, making it vulnerable to unauthorized route injection?

A.RIP
B.BGP
C.EIGRP
D.OSPF
AnswerA

RIP advertises routes in cleartext with no authentication by default and caps valid hop counts at 16, so an attacker can inject spoofed updates to poison the routing table. That matches the insecure implementation described in the audit.

Why this answer

RIP (Routing Information Protocol) uses cleartext, unauthenticated updates by default and a hop-count metric with a maximum of 15 hops (16 = unreachable), making it trivially vulnerable to route injection and poisoning attacks. This matches the description exactly.

Exam trap

CPENT often tests protocol fingerprinting by metric type — candidates see 'cleartext' and pick BGP, forgetting that BGP runs over TCP with authentication options, while the '16-hop' clue uniquely identifies RIP.

How to eliminate wrong answers

Option B is wrong because BGP uses TCP port 179 with MD5/TCP-AO authentication options and path-vector metrics (AS-path, attributes), not hop-count up to 16. Option C is wrong because EIGRP uses a composite metric (bandwidth, delay, load, reliability) and supports MD5/SHA authentication, not a 16-hop limit. Option D is wrong because OSPF uses link-state with cost based on bandwidth and supports MD5/SHA authentication, not hop-count metrics capped at 16.

33
MCQeasy

During an internal network scan, a pentester identifies an open port 445 on a Windows machine and wants to check if it is vulnerable to MS17-010 (EternalBlue) without crashing the service. Which Nmap Scripting Engine (NSE) script should be executed?

A.smb-brute
B.smb-enum-shares
C.smb-vuln-ms17-010
D.smb-os-discovery
AnswerC

The smb-vuln-ms17-010 NSE script performs a non-destructive check by sending crafted SMBv1 requests and inspecting the response, confirming EternalBlue exposure without triggering the crash that exploitation would cause. This satisfies the requirement to test safely.

Why this answer

The NSE script smb-vuln-ms17-010 is specifically designed to detect whether a Windows host is vulnerable to the MS17-010 (EternalBlue) SMBv1 vulnerability. It sends a crafted SMB packet to check for the presence of the vulnerability without exploiting it, thus avoiding service crashes. This script is part of the standard Nmap Scripting Engine and is the correct tool for non-intrusive vulnerability verification.

Exam trap

The trap here is confusing vulnerability scanning with enumeration or brute-force scripts; candidates might pick smb-os-discovery because it sounds like it provides system info, but only smb-vuln-ms17-010 is designed to safely check for EternalBlue.

How to eliminate wrong answers

Option A is wrong because smb-brute performs brute-force attacks against SMB authentication, which is unrelated to vulnerability detection and could lock out accounts. Option B is wrong because smb-enum-shares enumerates shared folders and permissions, not vulnerabilities. Option D is wrong because smb-os-discovery identifies the operating system and SMB details, but does not check for MS17-010.

34
MCQeasy

An external penetration tester is performing reconnaissance against a corporate network and needs to identify live hosts while minimizing direct connection alerts on traditional port scanners. Which Nmap command-line argument should be used to execute an ICMP Echo Request ping sweep without performing port scanning on the discovered live hosts?

A.-sS
B.-sn
C.-Pn
D.-sO
AnswerB

-sn performs host discovery only, sending ICMP Echo Requests (plus TCP SYN, ACK and ARP probes by default) and skipping port scanning entirely. This identifies live hosts with fewer connection attempts, reducing alerts from traditional port scanners while completing the sweep.

Why this answer

The -sn parameter tells Nmap to perform host discovery only (formerly known as a ping scan using -sP) and disables port scanning entirely.

35
MCQeasy

During an internal network assessment, you need to identify NetBIOS information such as registered computer names and logged-in usernames on legacy Windows hosts. Which tool performs a NetBIOS name query scan across an IP range?

A.Tcpdump
B.Nbtscan
C.Hydra
D.Sqlmap
AnswerB

Nbtscan sends NetBIOS name service queries (UDP 137) across an IP range, returning registered names, workgroup/domain membership and logged-in usernames from legacy Windows hosts. This directly satisfies the stem's requirement for a NetBIOS name query scan, unlike SMB-focused enumeration tools that cannot retrieve NetBIOS name table entries.

Why this answer

Nbtscan sends NetBIOS Name Service (NBNS) status queries (UDP port 137) to a range of IP addresses and parses the responses to reveal registered NetBIOS names, workgroup/domain names, and often the logged-in username via the Messenger service. It is purpose-built for exactly this enumeration task on legacy Windows hosts. Running 'nbtscan 192.168.1.0/24' produces a table of IP, NetBIOS name, server, user, and MAC address.

Exam trap

The trap is confusing passive capture tools (Tcpdump) or unrelated offensive tools (Hydra, Sqlmap) with the specific NetBIOS name query utility, so candidates who have not used nbtscan may pick Tcpdump because it 'sees network traffic'.

How to eliminate wrong answers

Option A is wrong because Tcpdump is a packet capture tool, not a NetBIOS name query scanner; it can capture NBNS traffic but does not actively query hosts or parse NetBIOS names. Option C is wrong because Hydra is an online password brute-forcing tool for services like SSH, FTP, and RDP, not a NetBIOS enumerator. Option D is wrong because Sqlmap is an automated SQL injection tool for web applications and has nothing to do with NetBIOS name resolution.

36
MCQeasy

An attacker is scanning a network and needs to determine which operating system is running on a target host by analyzing its TCP/IP stack response behaviors. What feature does Nmap provide for this?

A.-A
B.-O
C.-sV
D.--traceroute
AnswerB

Nmap's -O flag enables OS fingerprinting by comparing the target's TCP/IP stack responses, such as initial window size and TTL, against its signature database. This directly satisfies the requirement to identify the operating system from stack behaviour.

Why this answer

Nmap's -O option enables OS detection by analyzing TCP/IP stack fingerprinting, such as initial TTL values, TCP window sizes, and responses to specific probes. This allows Nmap to guess the operating system of the target host. The other options serve different purposes: -A enables aggressive scanning (including OS detection, version detection, script scanning, and traceroute), -sV performs service version detection, and --traceroute maps the network path.

Exam trap

CPENT often tests the difference between -O (OS detection) and -A (aggressive scan), as well as -sV (service version detection), so candidates must remember the specific flag for OS fingerprinting.

How to eliminate wrong answers

Option A is wrong because -A is an aggregate option that enables OS detection along with other features like version detection and script scanning, but it is not the specific flag for OS detection alone; the question asks for the feature that determines the OS, which is -O. Option C is wrong because -sV is used for service version detection, not OS detection; it probes open ports to determine application names and versions. Option D is wrong because --traceroute is used to trace the network path to the target, not to identify the operating system.

37
Multi-Selecteasy

A penetration tester is evaluating an internal network and needs to identify live Windows hosts that have Server Message Block (SMB) services running. Which TWO Nmap Scripting Engine (NSE) scripts can be used to gather SMB version and OS details safely? (Choose TWO)

Select 2 answers
A.smb-brute
B.smb-vuln-ms08-067
C.smb-enum-users
D.smb-os-discovery
E.smb-protocols
AnswersD, E

The smb-os-discovery script queries SMB to extract the operating system, computer name and domain, directly satisfying the requirement to gather OS details. Its queries are non-intrusive, making it safe for identifying live Windows hosts running SMB services.

Why this answer

Option D, smb-os-discovery, is correct because it safely queries SMB to extract the remote host's OS, computer name, domain, and SMB version information without performing intrusive actions. Option E, smb-protocols, is correct because it enumerates which SMB dialects (e.g., NT LM 0.12, SMB 2.02, SMB 3.0) the server supports, directly revealing SMB version details in a non-destructive manner. Option A, smb-brute, is incorrect because it performs credential brute-forcing, which is intrusive and can lock accounts, not a safe version/OS discovery method.

Option B, smb-vuln-ms08-067, is incorrect because it actively checks for a specific vulnerability and may crash or disrupt the target, so it is not a safe discovery script. Option C, smb-enum-users, is incorrect because it enumerates user accounts, which is information gathering beyond SMB version/OS details and can be noisy or trigger alerts.

Exam trap

The trap is picking scripts that sound like 'SMB enumeration' (smb-enum-users, smb-brute) when the question specifically asks for safe version/OS fingerprinting; brute-force and vuln-check scripts are noisy or disruptive.

38
MCQeasy

A client asks you to verify that their perimeter router does not leak internal topology information to the internet. You want to send crafted probe packets with varying TTL values and observe the ICMP responses to map the path and infer router interfaces. Which technique should you use?

A.Run a TCP SYN scan with the --traceroute option to enumerate open ports on each hop.
B.Send IGMP membership reports to the perimeter router to enumerate its multicast routing interfaces.
C.Perform a UDP scan against high ports on the perimeter router to read its routing table.
D.Use traceroute with incrementing TTL values to elicit ICMP time-exceeded messages from each hop.
AnswerD

Traceroute sends packets with successively larger TTL values; each router that decrements the TTL to zero returns an ICMP time-exceeded message containing its address. Collecting these replies reveals the path and the router interfaces that respond, directly showing whether the perimeter leaks internal topology. It is the standard technique for the requirement described.

Why this answer

Traceroute manipulates the TTL field so that each successive router discards the packet and returns an ICMP time-exceeded message bearing its own address. Analyzing these replies maps the path and reveals which router interfaces respond, showing whether internal topology is exposed at the perimeter. Port scanning, Nmap's traceroute complement, and IGMP queries do not elicit hop-by-hop interface responses.

Exam trap

The trap here is assuming that any scanning tool reveals the path, when only deliberate TTL manipulation with ICMP time-exceeded replies exposes hop interfaces.

39
MCQmedium

You are auditing a perimeter network protected by an Intrusion Detection System (IDS). To bypass signature-based detection mechanisms that look for standard Nmap packet patterns, you decide to fragment outgoing TCP packets into tiny 8-byte blocks. Which Nmap argument accomplishes this packet fragmentation?

A.--mtu
B.--data-length
C.-D
D.-f
AnswerD

The `-f` argument fragments packets into 8-byte blocks after the IP header, directly satisfying the requirement to split outgoing TCP packets into tiny fragments that evade signature-based IDS pattern matching. This is the standard Nmap fragmentation switch; alternatives like `--mtu` allow custom sizes but `-f` is the fixed 8-byte option.

Why this answer

The -f option causes Nmap to split the IP packets into tiny fragments. Specifying it twice (-ff) sends 16-byte fragments instead of 8-byte fragments.

40
Multi-Selecthard

An elite penetration tester is conducting network reconnaissance behind a restrictive stateful firewall that drops anomalous TCP flag combinations. Which THREE Nmap scan types are most likely to fail or receive unreliable results because they rely on non-standard TCP flag combinations? (Choose THREE)

Select 3 answers
A.TCP SYN scan (-sS)
B.Null scan (-sN)
C.FIN scan (-sF)
D.Xmas scan (-sX)
E.TCP Connect scan (-sT)
AnswersB, C, D

A Null scan sends TCP segments with no flags set, a combination no legitimate stack produces. Stateful firewalls and hardened hosts drop such anomalous packets silently, so closed ports appear open|filtered and results become unreliable, directly violating the stem's constraint that anomalous flag combinations are dropped.

Why this answer

Xmas scan (-sX), FIN scan (-sF), and Null scan (-sN) rely on non-standard or empty TCP flag combinations that modern stateful firewalls drop automatically.

41
Multi-Selecthard

An attacker has gained access to a compromised host and wants to establish persistence and covert command-and-control (C2) communication through corporate firewalls. Which THREE protocols or channels are commonly leveraged for outbound covert tunneling because they are rarely blocked by egress filters? (Choose THREE)

Select 3 answers
A.HTTPS (Port 443)
B.SMB (Port 445)
C.ICMP (Ping)
D.BGP (Port 179)
E.DNS (Port 53)
AnswersA, C, E

Outbound TCP 443 is almost universally permitted to support web browsing, so C2 traffic blends with legitimate TLS sessions. Encapsulating command channels inside HTTPS defeats egress filtering and inspection, directly satisfying the scenario's need for covert tunnelling through corporate firewalls.

Why this answer

DNS, HTTPS (port 443), and ICMP are frequently allowed outbound through corporate firewalls and are heavily used for tunneling.

42
MCQmedium

A penetration tester is performing network reconnaissance against a hardened target and needs to discover live hosts while avoiding ping probes. Which Nmap option tells Nmap not to perform host discovery before scanning ports, ensuring every target IP is fully port-scanned?

A.-R
B.-p-
C.-Pn
D.-n
AnswerC

-Pn disables Nmap's host discovery phase entirely, treating every supplied target as online and proceeding straight to port scanning. This satisfies the constraint of discovering live hosts while avoiding ping probes on a hardened target that suppresses ICMP replies.

Why this answer

The -Pn option disables host discovery, forcing Nmap to proceed with port scanning every specified IP address as if it were online.

43
MCQhard

An attacker wants to bypass egress filtering on a restricted network by encapsulating TCP packets inside ICMP echo request payloads. Which open-source tunneling utility is designed specifically for this purpose?

A.Socat
B.Netcat
C.Ptunnel
D.Iodine
AnswerC

Ptunnel encapsulates TCP connections inside ICMP echo request and reply payloads, so traffic passes egress filters that permit only ICMP. This satisfies the constraint of tunnelling TCP through ICMP to bypass the restricted network's filtering.

Why this answer

Ptunnel (Ping Tunnel) is a specialized application that allows tunneling TCP connections reliably through ICMP echo request and reply packets.

44
MCQhard

During an external engagement, you find that the target's edge device responds to IKE on UDP/500 and appears to accept aggressive-mode Phase 1 proposals. You want to determine whether a pre-shared key can be recovered offline so you can impersonate a peer. Which approach is most appropriate?

A.Downgrade the tunnel by sending a main-mode proposal with weaker encryption to force the device to disclose its PSK.
B.Use ike-scan with the -M flag to enumerate transforms, then authenticate to the device using the default vendor PSK to confirm access.
C.Replay the captured IKE Phase 1 packets to the device to force it to reveal the pre-shared key in a notify payload.
D.Capture the aggressive-mode exchange with tcpdump and run ike-scan with the --pskcrack option to produce a hash file for offline cracking.
AnswerD

Aggressive mode transmits a hash derived from the pre-shared key in a form that can be captured and attacked offline. Ike-scan with --pskcrack extracts that material into a hash file compatible with cracking tools such as psk-crack or hashcat, allowing dictionary or brute-force recovery without further interaction with the device. This matches the requirement of offline PSK recovery from an exposed aggressive-mode service.

Why this answer

Aggressive-mode IKE exchanges include a hash derived from the pre-shared key, which can be captured and attacked offline. Ike-scan with --pskcrack extracts this material into a file that psk-crack or hashcat can process, enabling dictionary or brute-force recovery of the PSK. Replay, main-mode downgrade, and transform enumeration do not disclose the key, so they cannot achieve the stated objective.

Exam trap

The trap here is assuming the pre-shared key itself crosses the wire, when only a derived hash is transmitted and must be cracked offline.

45
MCQmedium

A penetration tester is conducting a network penetration test and discovers an open SNMP service (UDP port 161) using a default community string. Which tool can be used to enumerate user accounts, routing tables, and running processes via SNMP?

A.Rpcinfo
B.Snmpwalk
C.Smbclient
D.NFSstat
AnswerB

Snmpwalk issues SNMP GETNEXT requests using the default community string, walking the MIB tree to dump OIDs covering user accounts, routing tables and running processes. It directly satisfies the need to enumerate those objects over UDP port 161.

Why this answer

Snmpwalk is a command-line tool from the Net-SNMP suite that queries SNMP-enabled devices using GETNEXT requests to retrieve a subtree of management information. It can walk the MIB tree to extract data such as user accounts (via OIDs like 1.3.6.1.4.1.77.1.2.25 for Windows), routing tables (1.3.6.1.2.1.4.21), and running processes (1.3.6.1.2.1.25.4.2.1.2). With a default community string like 'public', an attacker can enumerate this information without authentication.

Exam trap

CPENT often tests the confusion between SNMP enumeration tools and other network service enumeration tools like rpcinfo or smbclient, expecting candidates to know that snmpwalk is specifically designed for SNMP OID traversal.

How to eliminate wrong answers

Option A is wrong because rpcinfo queries RPC services on port 111, not SNMP on UDP 161. Option C is wrong because smbclient interacts with SMB/CIFS shares on TCP 445, not SNMP. Option D is wrong because nfsstat displays NFS statistics locally or remotely via RPC, not SNMP data.

46
Multi-Selectmedium

A penetration tester has compromised an internal machine and needs to pivot deeper into the network. Which TWO tools or features can be utilized to set up a SOCKS proxy for tunneling arbitrary TCP traffic through the compromised host? (Choose TWO)

Select 2 answers
A.Netcat -e flag
B.Wireshark display filter
C.Metasploit auxiliary/server/socks_proxy
D.Nmap -sS scan flag
E.SSH dynamic port forwarding (-D flag)
AnswersC, E

Metasploit's auxiliary/server/socks_proxy module runs inside an existing Meterpreter session, exposing a SOCKS4a listener that routes arbitrary TCP through the compromised host. This satisfies the requirement to pivot deeper without deploying separate tooling on the target.

Why this answer

Option C, Metasploit's auxiliary/server/socks_proxy module, is correct because it starts a SOCKS4a/SOCKS5 proxy server inside Metasploit that can route arbitrary TCP traffic through an existing Meterpreter or shell session, enabling pivoting into deeper network segments. Option E, SSH dynamic port forwarding with the -D flag, is correct because it creates a local SOCKS4/SOCKS5 proxy that tunnels arbitrary TCP connections through the SSH server (the compromised host if SSH access is available), which is a classic pivoting technique. Option A, Netcat's -e flag, is wrong because it binds a shell to a port rather than providing a SOCKS proxy for arbitrary TCP traffic.

Option B, a Wireshark display filter, is wrong because it only filters captured packets for analysis and provides no tunneling capability. Option D, Nmap's -sS flag, is wrong because it performs a TCP SYN stealth scan and does not establish any proxy or tunnel.

Exam trap

CPENT often tests pivot tooling — candidates pick Netcat -e because it 'creates a tunnel,' but the trap is that Netcat forwards a single stream, not a SOCKS proxy capable of arbitrary TCP sessions.

47
MCQeasy

A penetration tester is scanning a web server and wants to rapidly locate hidden administrative directories and backup files using a wordlist. Which command-line tool is designed specifically for directory brute-forcing?

A.Nmap
B.Gobuster
C.Netcat
D.Hping3
AnswerB

Gobuster is purpose-built for directory and file brute-forcing, using a wordlist to fire rapid HTTP requests and flag valid responses by status code. Its dedicated dir mode satisfies the requirement to locate hidden administrative directories and backup files quickly, unlike general-purpose scanners or manual requests.

Why this answer

Gobuster is a Go-based brute-forcing tool purpose-built for directory and file discovery on web servers, using wordlists to enumerate hidden paths, backup files, and administrative directories via HTTP requests. Its speed and multi-threaded design make it the standard choice for this task.

Exam trap

CPENT often tests tool-to-task mapping — candidates may pick Nmap because it has an http-enum script, missing that Gobuster is the dedicated directory brute-forcing tool.

How to eliminate wrong answers

Option A is wrong because Nmap is a network port scanner and host discovery tool — it can run http-enum scripts but is not designed for directory brute-forcing with wordlists. Option C is wrong because Netcat is a general-purpose TCP/UDP read/write utility used for banners, shells, and file transfer, not directory enumeration. Option D is wrong because Hping3 is a packet crafting and analysis tool for custom TCP/IP probes, not a web content discovery tool.

48
Multi-Selectmedium

A penetration tester is evaluating network security controls and wants to check for insecure or plaintext authentication protocols in use across the network. Which TWO protocols transmit credentials or session tokens in cleartext and can be easily sniffed? (Choose TWO)

Select 2 answers
A.SSH v2
B.SFTP (SSH File Transfer Protocol)
C.HTTPS
D.Telnet
E.FTP (File Transfer Protocol)
AnswersD, E

Telnet transmits all data, including login credentials, as unencrypted plaintext over TCP port 23, so any sniffer on the path captures usernames and passwords directly. This satisfies the stem's cleartext-credential constraint, unlike SSH or TLS-wrapped alternatives that encrypt the session.

Why this answer

Telnet (D) is correct because it operates over TCP port 23 and transmits all data, including usernames and passwords, in cleartext with no encryption, making credentials trivially recoverable via packet sniffing. FTP (E) is correct because its control channel on TCP port 21 sends USER and PASS commands in plaintext, so authentication credentials can be captured by any sniffer on the path. SSH v2 (A) is not correct because it negotiates encrypted sessions using strong ciphers and key exchange, protecting credentials from sniffing.

SFTP (B) is not correct because it runs over the SSH transport, inheriting its encryption and integrity protections. HTTPS (C) is not correct because it wraps HTTP inside TLS, encrypting credentials and session tokens in transit.

Exam trap

The trap here is confusing protocols that sound secure (SFTP, SSH, HTTPS) with their insecure ancestors (FTP, Telnet, HTTP) — candidates who don't carefully read the protocol names may incorrectly select SFTP thinking it's the same as FTP.

49
MCQeasy

An external penetration tester is conducting reconnaissance against a corporate network and needs to discover valid email addresses and associated infrastructure hosted publicly. Which tool uses search engines and public databases to gather open-source intelligence on target domains?

A.TheHarvester
B.Metasploit
C.Wireshark
D.Burp Suite
AnswerA

TheHarvester queries search engines and public databases to enumerate emails, subdomains and hosts for a target domain, satisfying the requirement for passive open-source intelligence gathering. Unlike active scanning tools, it never touches the target's infrastructure directly, keeping the reconnaissance covert during the external engagement.

Why this answer

TheHarvester is an OSINT reconnaissance tool that queries search engines (Google, Bing, Baidu), certificate transparency logs, PGP key servers, and public databases like Shodan and Hunter to enumerate emails, subdomains, hostnames, and employee names tied to a target domain. It is purpose-built for the passive reconnaissance phase of a penetration test.

Exam trap

CPENT often tests tool categorization — candidates confuse active exploitation frameworks (Metasploit, Burp) with passive OSINT collectors, so the trap is picking a tool that 'sounds like reconnaissance' but actually operates at a different phase.

How to eliminate wrong answers

Option B is wrong because Metasploit is an exploitation framework for delivering payloads and running post-exploitation modules, not an OSINT collection tool. Option C is wrong because Wireshark is a packet capture and protocol analyzer used for traffic inspection, not public-source intelligence gathering. Option D is wrong because Burp Suite is a web application proxy for intercepting and manipulating HTTP/S traffic during active testing, not for querying search engines and public databases.

50
MCQhard

An elite penetration tester needs to bypass a strict perimeter stateful inspection firewall that drops fragmented packets and inspects TCP payload flags. They decide to use Nmap to send packets with the FIN, PSH, and URG flags set simultaneously (a Xmas scan). Which Nmap flag implements this?

A.-sN
B.-sF
C.-sX
D.-sW
AnswerC

The -sX flag sets FIN, PSH and URG simultaneously, producing the Xmas tree scan. Because these flags are meaningless on a normal open port, compliant stacks drop the packet, letting Nmap infer state while evading payload-flag inspection.

Why this answer

Nmap's -sX flag performs the Xmas scan, which sets the FIN, PSH, and URG flags simultaneously in the TCP header. This unusual flag combination is designed to evade stateless firewalls and some IDS signatures that only look for SYN or common flag patterns. The name comes from the flags being 'lit up' like a Christmas tree in a packet analyzer.

Exam trap

CPENT often tests the confusion between the three 'flag-based' stealth scans — candidates mix up -sN (Null, no flags), -sF (FIN only), and -sX (FIN+PSH+URG) because the mnemonics are similar; memorizing the exact flag set for each is essential.

How to eliminate wrong answers

Option A is wrong because -sN is the Null scan, which sends TCP packets with no flags set at all — the opposite of the Xmas scan. Option B is wrong because -sF is the FIN scan, which sets only the FIN flag, not the FIN+PSH+URG combination. Option D is wrong because -sW is the Window scan, which uses the TCP window field to differentiate open from closed ports rather than manipulating flag bits.

51
Multi-Selecthard

You are conducting an internal network penetration test and have obtained credentials for a domain user. You want to identify which hosts on the internal network permit SMB signing to be disabled so that relay attacks become feasible. Which TWO actions should you take to build this target list? (Choose two.)

Select 2 answers
A.Query Active Directory for the ms-DS-MachineAccountQuota attribute on the domain object to determine which machines allow unsigned SMB.
B.Enable the LanmanServer service on each target and set the RequireSecuritySignature registry value to 0 before testing.
C.Use CrackMapExec or NetExec with the smb-signing module to enumerate signing configuration across the subnet in a single sweep.
D.Run Nmap with the smb2-security-mode NSE script against the internal subnet and parse the output for hosts that report message signing not required.
E.Perform a broadcast NetBIOS name query for each host to read the SMB signing flag from the node status response.
AnswersC, D

CrackMapExec and its successor NetExec include a module that reports SMB signing status per host across a CIDR range. Running it with domain credentials enumerates many hosts quickly and outputs a clear required/not-required indicator, which directly identifies relay-feasible targets. This is a standard, efficient way to build the signing-disabled list during an internal engagement.

Why this answer

SMB signing enforcement is advertised in the SMB2 negotiate response, so hosts that report signing enabled but not required are relay candidates. Nmap's smb2-security-mode script and CrackMapExec/NetExec's smb-signing module both retrieve this data across a subnet and let you build a precise target list. Machine account quota and NetBIOS name queries expose unrelated information, and modifying the target is out of scope.

Exam trap

The trap here is confusing account-creation or name-resolution attributes with the SMB2 negotiate data that actually reports signing enforcement.

52
MCQmedium

A penetration tester is analyzing network traffic and notices an attacker is leveraging IPv6 neighbor discovery protocol (NDP) spoofing to intercept local traffic. Which mitigation feature implemented on enterprise switches prevents malicious rogue advertisements on local networks?

A.Dynamic ARP Inspection (DAI)
B.IPv6 RA Guard
C.DHCP Snooping
D.Port Security
AnswerB

IPv6 RA Guard on the switch inspects and drops rogue Router Advertisement messages arriving on host-facing ports, blocking the spoofed advertisements NDP spoofing relies on. This satisfies the requirement to prevent malicious rogue advertisements on the local enterprise network segment.

Why this answer

IPv6 RA Guard (Router Advertisement Guard) is a switch feature defined in RFC 6105 that inspects and blocks rogue ICMPv6 Router Advertisement and Redirect messages on access ports. It prevents an attacker from spoofing as an IPv6 router to redirect or intercept local traffic via NDP spoofing. RA Guard classifies ports as trusted (uplink to legitimate router) or untrusted (host-facing), dropping RAs received on untrusted ports.

Exam trap

CPENT often tests the confusion between IPv4 and IPv6 layer-2 protections — candidates incorrectly pick DAI or DHCP Snooping because they associate 'spoofing mitigation' with those features, forgetting that NDP operates at the ICMPv6 layer and requires RA Guard.

How to eliminate wrong answers

Option A is wrong because Dynamic ARP Inspection only protects IPv4 ARP traffic by validating ARP packets against the DHCP snooping binding table — it has no visibility into ICMPv6 NDP or Router Advertisement messages. Option C is wrong because DHCP Snooping builds a binding table of IP-to-MAC mappings for DHCPv4 (and optionally DHCPv6) but does not inspect or block Router Advertisement messages used in NDP spoofing. Option D is wrong because Port Security limits the number of MAC addresses allowed on a switch port and can shut down the port on violation, but it does not analyze ICMPv6 RA content and cannot distinguish a legitimate router from a rogue one.

53
MCQeasy

During a perimeter penetration test, you need to identify live hosts on a target network without performing a full port scan. You have no prior knowledge of the network and want to minimize the chance of triggering intrusion detection systems. Which Nmap command is best suited for this task?

A.nmap -O 192.168.1.0/24
B.nmap -sU -p 53 192.168.1.0/24
C.nmap -sn 192.168.1.0/24
D.nmap -sS 192.168.1.0/24
AnswerC

The -sn option performs a ping scan, which sends ICMP echo requests, TCP SYN to port 443, TCP ACK to port 80, and an ICMP timestamp request to determine if hosts are up. It does not scan ports, making it faster and less likely to trigger IDS than a full port scan. This is the recommended way to discover live hosts on a network without scanning ports.

Why this answer

The -sn option in Nmap performs a ping scan, which discovers live hosts without scanning ports. It uses a combination of ICMP echo, TCP SYN to port 443, TCP ACK to port 80, and ICMP timestamp requests to determine if a host is up. This is the least intrusive method for host discovery and is ideal for minimizing IDS alerts while mapping a network.

Exam trap

The trap here is assuming that any Nmap scan will discover hosts, but many options perform port scans or OS detection, which are noisy and unnecessary for simple host discovery.

54
Multi-Selecteasy

A penetration tester needs to enumerate available shares and permissions on a remote Windows file server during an internal audit. Which TWO tools or commands can be used to query SMB shares? (Choose TWO)

Select 2 answers
A.smbclient -L //target-ip
B.sqlmap -u target-url
C.enum4linux -a target-ip
D.nmap --script http-enum
E.aircrack-ng target.cap
AnswersA, C

The -L flag makes smbclient list the shares exported by the target host over SMB, returning share names and comments without mounting them. This directly satisfies the requirement to enumerate available shares on the remote Windows file server during the internal audit.

Why this answer

Option A (smbclient -L //target-ip) is correct because smbclient is an SMB/CIFS client that, with the -L flag, lists the shares and their comments/type on a remote Windows host over TCP 445/139, directly satisfying the share-enumeration requirement. Option C (enum4linux -a target-ip) is correct because enum4linux is a wrapper around Samba tools (smbclient, rpcclient, net) that with -a performs all simple enumeration, including share listing and permission/ACL information via SMB and RPC. Option B (sqlmap -u target-url) is wrong because sqlmap automates SQL-injection testing against web applications, not SMB share enumeration.

Option D (nmap --script http-enum) is wrong because http-enum enumerates web server directories and files over HTTP, not SMB shares. Option E (aircrack-ng target.cap) is wrong because aircrack-ng cracks Wi-Fi (WEP/WPA) keys from captured 802.11 frames, which is unrelated to SMB share querying.

Exam trap

The trap here is confusing web enumeration tools (sqlmap, http-enum) with SMB enumeration tools — candidates must recognize that SMB is a Windows file-sharing protocol requiring Samba/RPC-based tooling, not HTTP or SQL tooling.

55
MCQmedium

A penetration tester is analyzing a network where ICMP echo requests are blocked by perimeter firewalls, making traditional host discovery fail. Which Nmap host discovery option should be used to discover live hosts using TCP ACK packets sent to port 80?

A.-PS80
B.-PA80
C.-PE
D.-PU80
AnswerB

TCP ACK pings (-PA80) bypass the ICMP-blocking perimeter firewall because they are sent as bare TCP ACK segments, which many stateless firewalls pass and which elicit RST replies from live hosts. This satisfies the stem's constraint of discovering hosts when ICMP echo requests are filtered.

Why this answer

Nmap's -PA option performs a TCP ACK ping, sending an empty TCP packet with the ACK flag set to the specified port (default 80). Because a TCP ACK packet to a closed port elicits an RST from a live host and nothing from a filtered/blocked host, it can discover live hosts even when ICMP echo is blocked. Using -PA80 sends the ACK probe to port 80, which is the option the question requires.

Exam trap

CPENT often tests the distinction between TCP SYN ping (-PS) and TCP ACK ping (-PA) — candidates frequently pick -PS80 out of habit, forgetting that the question specifically asks for ACK packets to bypass ICMP-blocking firewalls.

How to eliminate wrong answers

Option A is wrong because -PS80 performs a TCP SYN ping, not an ACK ping — it sends a SYN packet and expects SYN/ACK or RST, which is a different probe type than the ACK-based discovery the question asks for. Option C is wrong because -PE is the ICMP echo request ping, which is exactly the mechanism the scenario says is blocked by the perimeter firewall. Option D is wrong because -PU80 sends a UDP ping to port 80, which is a UDP-based probe, not a TCP ACK probe.

56
MCQmedium

You have compromised a dual-homed Linux host that sits between a DMZ and an internal network. From this host you need to reach internal web servers on TCP/8080 that are not routable from your attack machine, and you want to route all your tooling traffic through the pivot using SOCKS. Which approach correctly establishes the pivot?

A.Run ssh -L 8080:internal-web:8080 user@pivot and point your tools at localhost:8080.
B.Use nmap --proxies socks4://pivot:1080 to route scans through the pivot's SOCKS service.
C.Run ssh -R 1080:localhost:1080 user@pivot to create a reverse SOCKS proxy on the pivot host.
D.Run ssh -D 1080 user@pivot and configure your tools to use the local SOCKS5 proxy on port 1080.
AnswerD

The -D flag on the SSH client starts a dynamic SOCKS proxy that forwards arbitrary TCP connections through the SSH server. Because the compromised host is dual-homed, connections to internal web servers on TCP/8080 originate from its internal interface, reaching hosts that are not routable from the attack machine. Pointing tools at the local SOCKS5 listener routes all their traffic through the pivot correctly.

Why this answer

A dynamic SSH forward with -D creates a SOCKS proxy on the attack machine that tunnels arbitrary TCP connections through the dual-homed host. Because the pivot has an internal interface, those connections reach internal web servers that are otherwise unroutable. Static local forwards reach only one destination, reverse forwards run in the wrong direction, and a proxy option alone does not establish the tunnel.

Exam trap

The trap here is confusing a single static port forward with a dynamic SOCKS proxy that can carry arbitrary tooling traffic to many internal destinations.

57
MCQeasy

A penetration tester needs to perform a stealthy TCP SYN scan against a target network using Nmap to avoid triggering simple stateless packet filters. Which command-line flag should be used?

A.-sA
B.-sU
C.-sT
D.-sS
AnswerD

The -sS flag performs a half-open TCP SYN scan, sending SYN packets and never completing the three-way handshake. This satisfies the stealth requirement because no full connection is established, so stateless packet filters see only unsolicited SYNs rather than completed sessions, reducing logging and detection compared with a full connect scan.

Why this answer

The -sS flag tells Nmap to perform a TCP SYN scan, which sends a SYN packet and waits for a SYN-ACK response, never completing the full 3-way handshake, thus remaining stealthier.

58
MCQmedium

During an internal penetration test, you successfully compromise a Linux host with two network interfaces: eth0 (10.10.10.50) connected to the initial segment, and eth1 (192.168.100.10) connected to an isolated internal subnet. To route subsequent Nmap TCP SYN scans through this compromised host into the 192.168.100.0/24 network using Metasploit, which post-exploitation module must you configure and run first?

A.auxiliary/scanner/portscan/tcp
B.post/multi/manage/autoroute
C.exploit/windows/local/payload_inject
D.auxiliary/server/socks_proxy
AnswerB

Autoroute reads the compromised host's routing table and injects routes into Metasploit's session, so TCP SYN scans traverse eth1 into 192.168.100.0/24. It satisfies the pivot constraint: reaching an isolated subnet through a dual-homed host without manual proxy configuration.

Why this answer

The post/multi/manage/autoroute module in Metasploit adds routes to the Meterpreter session's routing table, enabling the framework to pivot through the compromised host into the 192.168.100.0/24 subnet. Once autoroute is configured with the target subnet, subsequent Metasploit modules (including scanners) automatically route traffic through the session. This is the prerequisite step before running any scan against the isolated network.

Exam trap

CPENT often tests the ordering of pivot setup — candidates pick the scanner or SOCKS proxy because they focus on the end goal (scanning), forgetting that autoroute must be configured first to establish the route through the compromised host.

How to eliminate wrong answers

Option A is wrong because auxiliary/scanner/portscan/tcp is the scanning module itself — it cannot reach the 192.168.100.0/24 network until a route is established through the pivot host; running it first would fail to reach the target subnet. Option C is wrong because exploit/windows/local/payload_inject is a Windows local privilege escalation/payload injection module, irrelevant to a Linux pivot host and to routing traffic. Option D is wrong because auxiliary/server/socks_proxy sets up a SOCKS proxy for external tools (like proxychains), but it is not the Metasploit-native routing mechanism and is typically used alongside or instead of autoroute depending on the tooling; the question specifically asks for the module to configure first for Metasploit's own routing.

59
MCQhard

During an internal penetration test, you compromise a Windows host that sits on a management VLAN. The network is segmented, and the host has two interfaces: one on the management VLAN (10.10.10.0/24) and one on the corporate VLAN (192.168.1.0/24). You want to reach a database server at 172.16.5.20 on a third VLAN, but your compromised host has no route to that subnet. You have administrative privileges on the compromised host. Which of the following is the most reliable technique to pivot to the 172.16.5.0/24 network?

A.Configure a VPN connection from your attack machine to the compromised host and enable Internet Connection Sharing on the corporate VLAN interface.
B.Use a tool such as Metasploit's autoroute or a SOCKS proxy to route traffic through the compromised host, then use proxychains to reach the target.
C.Use ARP spoofing to impersonate the database server and redirect traffic from the management VLAN to your attack machine.
D.Enable IP forwarding on the compromised host and add a static route for 172.16.5.0/24 pointing to the default gateway of the management VLAN.
AnswerB

When a compromised host has multiple interfaces but no direct route to the target subnet, you can leverage it as a pivot by configuring a route through the host and a SOCKS proxy. Metasploit's autoroute adds a route in the Meterpreter session, and proxychains directs tools through the SOCKS proxy. This allows traffic to be forwarded from your attack machine through the compromised host to the target network, assuming the host can reach it via one of its interfaces.

Why this answer

The compromised host has multiple interfaces but no direct route to the target subnet. To pivot, you must route traffic through the host using a tool like Metasploit's autoroute or a SOCKS proxy, then direct your attack tools through that proxy. This is a standard CPENT pivot technique.

Simply adding a static route or using ICS does not create a functional pivot when the host lacks a route to the target network.

Exam trap

The trap here is assuming that enabling IP forwarding or adding a static route on the compromised host will magically provide a path to a network the host cannot reach.

Ready to test yourself?

Try a timed practice session using only Network And Perimeter Exploitation questions.