A penetration tester completes a scan and sees the following Nmap output on a host:
Nmap scan report for victim (10.10.10.10)
Host is up (0.0001s latency)
PORT STATE SERVICE
161/udp open snmp
445/tcp open microsoft-ds
3389/tcp open ms-wbt-server
Running Microsoft Windows 7
OS CPE: cpe:/o:microsoft:windows_7::sp0
The tester wants to obtain shell access. Which of the following related exploits should the
tester try first?
The Nmap scan shows three critical services: SNMP (161/udp), SMB (445/tcp), and RDP (3389/tcp). The host is identified as Windows 7 SP0, which is historically vulnerable to MS17-010 (EternalBlue) if unpatched. EternalBlue is a remote code execution exploit against SMBv1 that allows attackers to gain shell access without authentication. Since the tester’s goal is shell access, this is the most direct and effective exploit to attempt first.
Option A: exploit/windows/smb/psexec
PsExec requires valid credentials to execute commands remotely over SMB. Without credentials, this exploit cannot succeed, so it is not the first choice.
Option B: exploit/windows/smb/ms08_067_netapi
MS08-067 targets Windows XP and Server 2003 systems. While extremely famous, it does not apply to Windows 7, making it irrelevant in this scenario.
Option D: auxiliary/scanner/snmp/snmp_login
This module only attempts SNMP login brute force. It can provide information but does not yield shell access. Since the tester’s objective is shell access, this option is not suitable.
Therefore, MS17-010 EternalBlue is the correct exploit to try first. It directly targets the SMB service on port 445, matches the OS fingerprint (Windows 7), and is known to provide remote shell access if the system is unpatched. In penetration testing methodology, testers prioritize exploits that match the identified OS and services, especially those with high impact and no credential requirement.
References
CompTIA PenTest+ PT0-003 Exam Objectives – Domain 3.0 Attacks and Exploits (Network-based vulnerabilities).
Microsoft Security Bulletin MS17-010: CVE-2017-0144 (EternalBlue) – Microsoft Learn (learn.microsoft.com in Bing)
Question 62Choose 1
A penetration tester conducts a scan on an exposed Linux web server and gathers the
following data:
Host: 192.168.55.23
Open Ports:
22/tcp Open OpenSSH 7.2p2 Ubuntu 4ubuntu2.10
80/tcp Open Apache httpd 2.4.18 (Ubuntu)
111/tcp Open rpcbind 2-4 (RPC #100000)
Additional notes:
Directory listing enabled on /admin
Apache mod_cgi enabled
No authentication required to access /cgi-bin/debug.sh
X-Powered-By: PHP/5.6.40-0+deb8u12
Which of the following is the most effective action to take?
Show answerHide answer
Correct answer: BReview the contents of /cgi-bin/debug.sh.
Explanation
Explanation:
The scan reveals that /cgi-bin/debug.sh requires no authentication and is accessible via Apache with mod_cgi enabled. CGI scripts are executed on the server when requested. Reviewing the contents of debug.sh is the most effective immediate action because:
It may contain hardcoded credentials, debug commands, or system calls.
It could allow command injection or direct remote code execution.
This is a low-effort, high-impact information gathering step before any exploitation.
Why other options are incorrect
A. msfvenom + /admin upload – /admin has directory listing enabled, but that does not guarantee write permissions. Uploading a payload may fail due to missing file write access or upload functionality. Premature without understanding the environment.
C. Nikto scan on port 80 – Nikto is a web vulnerability scanner, but the tester already has specific actionable intelligence (CGI script with no auth). Running a full Nikto scan is redundant and slower than directly reviewing the script.
D. Brute-force against OpenSSH 7.2p2 – SSH brute-forcing is noisy, time-consuming, and may trigger lockouts or alerts. No indication of weak SSH credentials. Higher risk and lower priority than exploiting an already discovered unauthenticated CGI script.
Apache mod_cgi documentation – CGI scripts execute with web server privileges; unauthenticated access is a critical finding.
Question 63Choose 1
A penetration tester must identify hosts without alerting an IPS. The tester has access to a
local network segment. Which of the following is the most logical action?
Show answerHide answer
Correct answer: APerforming reverse DNS lookups
Explanation
Explanation:
Reverse DNS lookups query DNS servers to map IP addresses back to hostnames. This method generates standard DNS traffic (UDP/TCP 53), which is almost never blocked or alerted by IPS because DNS is essential for normal network operations. No raw packets are sent to target IPs directly, so it bypasses IPS signature detection that triggers on ICMP, ARP, or SYN scans. This is a passive or low-noise discovery technique when the tester already has access to the local network segment and DNS servers.
Why other options are incorrect
B. Nmap ping sweep – Sends ICMP echo requests, TCP SYN/ACK, or ARP probes. These are actively scanned and easily detected by IPS signatures (e.g., "ICMP sweep," "port scan").
C. LLMNR poisoning using Responder – Actively listens and responds to LLMNR/NBT-NS requests. This is not a host discovery method; it's a spoofing attack for credential theft. It also generates suspicious traffic that some IPS can detect.
D. Viewing local routing table – Shows the tester's own routing information (default gateway, local subnets). It does not identify other hosts on the network.
References
CompTIA PenTest+ PT0-003 – Domain 2.1 (Passive/Stealth Discovery): "Use DNS interrogation to identify hosts without active scanning."
MITRE ATT&CK T1046 – Network Service Scanning – but reverse DNS is a passive alternative (T1590.005).
Question 64Choose 1
A penetration tester performs the following scan:
nmap -sU -p 53,161,162 192.168.1.51
PORT | STATE
53/udp | open|filtered
161/udp | open|filtered
162/udp | open|filtered
The tester then manually uses snmpwalk against port 161 and receives valid SNMP
responses. Which of the following best explains the scan result for port 161?
Show answerHide answer
Correct answer: BNmap marked the port as open|filtered because no response was received.
Explanation
Explanation:
Nmap’s UDP scan (-sU) sends an empty UDP packet to the target port. If it receives a UDP response (e.g., SNMP trap or protocol-specific reply), the port is marked open. If it receives an ICMP port unreachable error, the port is closed. If no response is received at all (due to filtering, packet loss, or silent services), Nmap marks the port open|filtered. SNMP (port 161) often does not reply to empty UDP probes — it waits for a properly formatted SNMP GET request. Since snmpwalk later succeeded with valid responses, the port is truly open, but the initial probe received no reply, causing the open|filtered state.
Why other options are incorrect
A. SNMP daemon delayed response – UDP scan timeouts are fixed (default ~1s). SNMP typically does not respond to empty probes at all, not just delayed.
C. Rate limiting – No evidence of rate limiting; snmpwalk worked fine. Rate limiting would cause intermittent replies, not complete silence for an empty probe.
D. Lack of root privileges – Root is not required for UDP scans; non-root users can send raw UDP packets. Root is needed for SYN scans (-sS) or certain OS detection features.
SNMP behavior – Port 161 ignores malformed/empty UDP packets; requires proper community string and OID request.
Question 65Choose 1
A penetration tester executes multiple enumeration commands to find a path to escalate
privileges. Given the following command:
find / -user root -perm -4000 -exec ls -ldb {} \; 2>/dev/nul l
Which of the following is the penetration tester attempting to enumerate?
Show answerHide answer
Correct answer: DPermission
Explanation
Explanation:
The command searches the entire filesystem (find /) for files owned by root (-user root) with the SETUID bit set (-perm -4000). SETUID files execute with the owner's privileges (root), even when run by a non-root user. Misconfigured or vulnerable SETUID binaries are a common privilege escalation vector. The tester is enumerating special permissions (SETUID) to identify potential privilege escalation paths — not general permissions, but specifically the SETUID permission bit.
Why other options are incorrect
A. Attack path mapping – Too broad; refers to mapping multi-step attack chains. This command is a specific enumeration for one vulnerability type (SETUID binaries).
B. API keys – Not relevant. API keys are typically found in config files, environment variables, or source code — not identified by searching for SETUID root files.
C. Passwords – Passwords are stored in /etc/shadow, configuration files, or databases. This command does not search for password artifacts.
References
CompTIA PenTest+ PT0-003 – Domain 3.4 (Privilege Escalation): "Enumerate SETUID binaries for privilege escalation."
Linux file permissions – -4000 = SETUID bit; find -perm checks permission masks.
MITRE ATT&CK T1548.001 – "Abuse Elevation Control Mechanism: Setuid and Setgid."
GTFOBins – Documents exploitable SETUID binaries for privilege escalation.
Question 66Choose 1
A penetration tester successfully gains access to a Linux system and then uses the
following command:
find / -type f -ls > /tmp/recon.txt
Which of the following best describes the tester’s goal?
Show answerHide answer
Correct answer: APermission enumeration
Explanation
Explanation:
The command find / -type f -ls > /tmp/recon.txt searches the entire filesystem (/) for regular files (-type f) and outputs detailed information using -ls (similar to ls -l), which includes permissions, ownership, size, and timestamps. The output is saved to /tmp/recon.txt. While this captures many attributes, the primary goal in a post-exploitation context is to enumerate file permissions — specifically looking for world-writable files, SUID/SGID binaries, or files with weak permissions that can lead to privilege escalation.
Why other options are incorrect
B. Secrets enumeration – Searching for secrets (passwords, API keys, SSH keys) typically uses grep with patterns (e.g., grep -r "password") or targets specific files (/etc/shadow, .ssh/). The find -ls command does not search file contents.
C. User enumeration – User enumeration involves checking /etc/passwd, /etc/shadow, /home/ directories, or who, w, last commands. find -ls on all files is inefficient for just user discovery.
D. Service enumeration – Service enumeration includes checking running processes (ps aux), listening ports (netstat), systemd units, or init scripts. The command does not target service-related files specifically.
Linux find manual – -ls outputs permission bits, ownership, and file metadata.
MITRE ATT&CK T1083 – "File and Directory Discovery" — used to identify writable or misconfigured files.
Privilege escalation methodology – Step 1: Enumerate permissions on all files to find weak configurations.
Question 67Choose 1
A client warns the assessment team that an ICS application is maintained by the
manufacturer. Any tampering of the host could void the enterprise support terms of use.
Which of the following techniques would be most effective to validate whether the
application encrypts communications in transit?
Show answerHide answer
Correct answer: AUtilizing port mirroring on a firewall appliance
Explanation
Explanation:
The client cannot tamper with the ICS host (risk of voiding support). Port mirroring (SPAN port) copies network traffic from a switch or firewall appliance to a monitoring port without touching the target host. The tester can then analyze the captured packets (e.g., with Wireshark) to determine if the application encrypts communications (look for TLS handshakes or plaintext data). This method is completely passive and non-intrusive.
Why other options are incorrect
B. Installing packet capture software on the server – Requires modifying the host (installing software), which may void support terms. Also risks agent instability on sensitive ICS systems.
C. Reconfiguring the application to use a proxy – Requires changing application settings on the host, which is tampering and may break support agreements.
D. Requesting certificate pinning be disabled – Requires application or configuration change on the host; also assumes certificate pinning is enabled, which is not the question (tester just needs to validate encryption).
References
CompTIA PenTest+ PT0-003 – Domain 4.0 (Operational Constraints): "Use passive monitoring techniques when host modification is prohibited."
ICS security best practices – Port mirroring is preferred for assessment of vendor-locked systems (e.g., ISA/IEC 62443).
Wireshark + port mirroring – Standard method for passive traffic analysis without endpoint changes.
Question 68Choose 1
During an assessment, a penetration tester obtains access to an internal server and wouldlike to perform further reconnaissance by capturing LLMNR traffic. Which of the following
tools should the tester use?
Show answerHide answer
Correct answer: CResponder
Explanation
Explanation:
Responder is a tool specifically designed to listen for, capture, and poison LLMNR (Link-Local Multicast Name Resolution), NBT-NS, and MDNS traffic on a local network segment. When a Windows host fails to resolve a name via DNS, it broadcasts LLMNR requests. Responder listens to these broadcasts and can capture hashes (e.g., NTLMv2) for offline cracking or relay attacks. The tester explicitly wants to "capture LLMNR traffic," which is Responder's primary function.
Why other options are incorrect
A. Burp Suite – A web application proxy for testing HTTP/HTTPS traffic. It does not capture LLMNR or other local network name resolution protocols.
B. Netcat – A general-purpose network utility for reading/writing raw TCP/UDP connections. It cannot parse or capture LLMNR traffic without extensive manual scripting.
D. Nmap – A port and service scanner. It does not passively capture LLMNR broadcast traffic.
Responder GitHub/documentation – "LLMNR, NBT-NS, and MDNS poisoner and hash catcher."
MITRE ATT&CK T1557.001 – "Adversary-in-the-Middle: LLMNR/NBT-NS Poisoning and SMB Relay."
Question 69Choose 1
Which of the following describes the process of determining why a vulnerability scanner is
not providing results?
Show answerHide answer
Correct answer: ARoot cause analysis
Explanation
Explanation:
Root cause analysis (RCA) is the systematic process of identifying the underlying reason why a problem occurred. In this context, when a vulnerability scanner is not providing results (e.g., no findings, incomplete scans, false negatives), RCA investigates potential causes: incorrect scan configuration, network firewalls blocking traffic, insufficient credentials, outdated plugins, or target system unavailability. RCA aims to fix the fundamental issue, not just the symptom.
Why other options are incorrect
B. Secure distribution – Refers to safely delivering reports or tools to authorized parties (e.g., encrypted channels). Not related to troubleshooting scanner failures.
C. Peer review – A quality assurance process where another person reviews the tester's methodology or findings. Does not determine why a scanner failed.
D. Goal reprioritization – Changing the order or importance of testing objectives during an engagement. Not a diagnostic process for scanner issues.
References
CompTIA PenTest+ PT0-003 – Domain 2.0 (Information Gathering): "Troubleshoot scanning issues using root cause analysis."
NIST SP 800-115 – Root cause analysis for security testing anomalies.
Industry best practices – RCA is standard for diagnosing tool failures (e.g., false negatives, connectivity issues).
ITIL framework – Root cause analysis as a core problem management technique.
Question 70Choose 1
While performing reconnaissance, a penetration tester attempts to identify publicly
accessible ICS (Industrial Control Systems) and IoT (Internet of Things) systems. Which of the following tools is most effective for this task?
Show answerHide answer
Correct answer: BShodan
Explanation
Explanation:
Shodan is a search engine that indexes internet-connected devices and their banners (e.g., HTTP, SSH, Telnet, Modbus, Siemens S7). It is specifically designed to identify publicly accessible ICS (e.g., SCADA, PLCs) and IoT devices (e.g., cameras, smart thermostats) by searching on default ports, protocol fingerprints, or geographic location. The tester can query Shodan to find exposed industrial control systems without sending any packets directly to targets.
Why other options are incorrect
A. theHarvester – Collects email addresses, subdomains, and PGP keys from public sources (search engines, LinkedIn). Does not index ICS or IoT devices.
C. Amass – A DNS enumeration and subdomain discovery tool. Focuses on domain mapping, not device/service fingerprinting across the internet.
D. Nmap – Actively scans IP addresses for open ports and services. It is not a search engine for publicly exposed devices; it requires target IP ranges and sends probes, making it slower and less suitable for initial discovery of unknown ICS/IoT assets.
References
CompTIA PenTest+ PT0-003 – Domain 2.1 (Information Gathering): "Use Shodan to discover internet-accessible ICS and IoT devices."
Shodan documentation – "Search engine for internet-connected devices."
MITRE ATT&CK T1592.002 – "Gather Victim Host Information: Software" via internet scanning services.
ICS security best practices – Shodan is commonly used to assess exposure of industrial control systems.
Full mock exam
Sit the PT0-003 exam before exam day
Full-length mocks with the same number of questions and the same time limit as the real PT0-003 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.