Courseiva

EC-Council Certified Penetration Testing Professional (CPENT) (CPENT) (CPENT) — Questions 151–225

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

Page 2

Page 3 of 4

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

152
MCQhard

A CPENT tester gains access to an engineering workstation on an OT network and finds a project file for a Siemens SIMATIC S7-1200 PLC. The tester wants to extract the PLC's configuration, including any stored password hashes, from the engineering workstation's project data to demonstrate credential exposure. Which artifact should the tester examine?

A.The S7-1200's web server index page, which serves the PLC password in cleartext over HTTP for diagnostic purposes
B.The .ap17 project archive's SystemBlock and hardware configuration XML files, which contain PLC protection level settings and hashed password material
C.The STEP 7 project's GlobalLabels CSV export, which stores the PLC password in a readable column
D.The S7-1200's SD card root directory file named PASSWD.TXT, which TIA Portal writes during commissioning
AnswerB

TIA Portal stores project data in an .ap17 archive containing XML and binary files. The SystemBlock and hardware configuration XML files hold the PLC's protection level and the password hash used for access levels. Extracting and analyzing these files can reveal the hash for offline cracking, demonstrating credential exposure from the engineering workstation without touching the live PLC.

Why this answer

TIA Portal project archives (.ap17) bundle the hardware configuration and SystemBlock data as XML and binary files. These contain the PLC protection level and the hashed password used for access control. Extracting and cracking that hash from the engineering workstation demonstrates credential exposure without interacting with the live PLC, which is the goal of this assessment.

Exam trap

The trap here is assuming the PLC itself exposes cleartext credentials, when the realistic exposure path is hashed password material inside the engineering workstation's project archive.

153
Multi-Selecteasy

An auditor reviews network security configurations in an AWS VPC. Which TWO of the following network configurations represent potential security risks? (Choose TWO)

Select 2 answers
A.A security group allowing inbound TCP port 3389 (RDP) from 0.0.0.0/0.
B.Enabling AWS Shield Advanced for DDoS protection on Application Load Balancers.
C.Using AWS PrivateLink to connect securely to VPC endpoint services.
D.A security group allowing inbound TCP port 22 (SSH) from 0.0.0.0/0.
E.A VPC Flow Log enabled and streaming traffic data to an encrypted S3 bucket.
AnswersA, D

Security groups are stateful allow-lists; permitting 0.0.0.0/0 inbound on 3389 exposes RDP to the entire internet, enabling brute-force and BlueKeep-style exploitation. The stem asks for risky configurations, and unrestricted source ranges on management ports qualify.

Why this answer

Option A is correct because a security group permitting inbound TCP 3389 (RDP) from 0.0.0.0/0 exposes Windows Remote Desktop to the entire internet, inviting brute-force and ransomware attacks. Option D is correct because allowing inbound TCP 22 (SSH) from 0.0.0.0/0 exposes Linux/Unix remote shell access to all source IPs, enabling credential brute-forcing and exploitation of SSH vulnerabilities. Option B is not a risk but a mitigation, since AWS Shield Advanced provides enhanced DDoS protection for Application Load Balancers.

Option C is not a risk because AWS PrivateLink privately connects VPCs to endpoint services without exposing traffic to the public internet. Option E is not a risk because VPC Flow Logs to an encrypted S3 bucket is a secure, recommended monitoring practice.

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

155
MCQeasy

A CPENT tester is assessing a building automation system that uses KNX for lighting and HVAC control. The tester wants to understand the group address structure to map which devices control which functions. Which action BEST accomplishes this?

A.Send KNXnet/IP Tunneling requests to read the device descriptor of every actuator on the bus.
B.Perform a KNXnet/IP device management scan that resets all devices to factory default addresses.
C.Broadcast KNXnet/IP routing indications with a forged source address to overwrite group address assignments.
D.Capture KNXnet/IP traffic and decode the group address fields in telegram frames to map device-to-function relationships.
AnswerD

KNXnet/IP carries KNX telegrams over IP, and each telegram includes source, destination group address, and payload. Capturing and decoding these fields reveals which devices write to which group addresses, effectively mapping control relationships for lighting and HVAC. This passive method is appropriate for understanding the system without disrupting building operations.

Why this answer

Decoding group address fields in captured KNXnet/IP telegrams maps which devices control which lighting and HVAC functions, because each telegram carries source, destination group address, and payload. Overwriting assignments, factory resets, and descriptor reads either disrupt the system or return inventory data rather than the control relationships needed.

Exam trap

The trap here is confusing device descriptor reads with group address mapping, when descriptors reveal hardware details rather than control relationships.

156
Multi-Selecthard

Which THREE methods or attack primitives can be used to achieve domain escalation when an attacker has compromised an account with 'GenericAll' permissions over a Group Policy Object (GPO)?

Select 3 answers
A.Adding a startup script or service configuration within the GPO file share path in SYSVOL
B.Creating restricted local user accounts or modifying local administrator groups across target OUs via GPO settings
C.Modifying the KRBTGT account password directly through Group Policy settings
D.Injecting immediate scheduled tasks into the GPO via Group Policy Preferences (GPP)
E.Directly modifying the NTDS.dit database via unauthenticated LDAP write operations
AnswersA, B, D

Writing a startup script or service configuration into the GPO's SYSVOL share lets the compromised account push code execution to every machine or user the GPO applies to, including domain controllers, converting GenericAll over the GPO into domain-wide escalation.

Why this answer

With GenericAll over a GPO, an attacker can edit the GPO's contents and have them applied to all linked OUs, computers, or users. Option A is correct because writing a startup script or service configuration into the GPO's SYSVOL path (\\<domain>\SYSVOL\<domain>\Policies\{GUID}\Machine\Scripts\Startup or the GptTmpl.inf service section) causes the script/service to execute as SYSTEM on every affected machine at boot. Option B is correct because GPO security settings (e.g., Restricted Groups or Group Policy Preferences local users/groups) can add a controlled account to the local Administrators group or create local users across all machines in the linked OU, yielding broad local admin and lateral movement.

Option D is correct because Group Policy Preferences support Immediate Scheduled Tasks (ScheduledTasks.xml in SYSVOL), which execute on the next policy refresh as SYSTEM, giving code execution on target hosts. Option C is wrong because the KRBTGT password is stored in AD (NTDS.dit) and cannot be changed through GPO settings; GPOs do not manage domain account credentials. Option E is wrong because NTDS.dit is not writable via unauthenticated LDAP, and LDAP writes require authenticated, authorized access to AD objects, not merely GPO GenericAll.

Exam trap

CPENT often tests whether candidates know the actual boundaries of GPO abuse, luring them toward impossible actions like resetting KRBTGT or editing NTDS.dit via LDAP, which are not GPO-driven.

157
Multi-Selecteasy

A tester has achieved code execution on a Windows server and needs to clean up event logs or check log activity to evade detection during post-exploitation. Which TWO built-in tools or commands can be used to manage or clear Windows Event Logs? Choose two.

Select 2 answers
A.wevtutil cl <LogName>
B.netsh advfirewall reset
C.taskkill /f /im lsass.exe
D.ipconfig /flushdns
E.Clear-EventLog -LogName <LogName>
AnswersA, E

`wevtutil cl <LogName>` clears a specified Windows Event Log directly through the Windows Event Log API, satisfying the requirement to erase activity records during post-exploitation. Unlike PowerShell's `Clear-EventLog`, it works from any command shell and needs no scripting host, so it functions even where PowerShell logging or constrained language mode would expose the tester.

Why this answer

Option A, `wevtutil cl <LogName>`, is correct because wevtutil is the built-in Windows command-line utility for managing event logs, and the `cl` (clear-log) subcommand clears the specified log (e.g., `wevtutil cl Security`), directly serving the goal of erasing log evidence. Option E, `Clear-EventLog -LogName <LogName>`, is correct because it is the native PowerShell cmdlet that clears a specified event log on the local or remote computer, providing the same log-clearing capability through PowerShell. Option B, `netsh advfirewall reset`, is incorrect because it restores Windows Firewall configuration to default, which is unrelated to event log management.

Option C, `taskkill /f /im lsass.exe`, is incorrect because it force-terminates the LSASS process, which would crash the system and does not manage event logs. Option D, `ipconfig /flushdns`, is incorrect because it only clears the DNS resolver cache and has no effect on Windows Event Logs.

158
Multi-Selecthard

During a lateral movement assessment in an Active Directory environment, a penetration tester wants to verify if SMB signing is disabled on internal subnet hosts to assess vulnerability to NTLM relay attacks. Which TWO tools or methods can be used to identify systems with SMB signing disabled? Choose two.

Select 2 answers
A.tracert <target_ip>
B.ping -t <target_ip>
C.nmap --script smb2-security-mode -p 445 <target_ip>
D.nslookup -type=mx <domain>
E.CrackMapExec (or NetExec) smb <subnet>
AnswersC, E

The smb2-security-mode NSE script negotiates an SMB2 session and reads the signing-required field from the response, reporting whether message signing is enabled and required. This directly satisfies the stem's need to enumerate hosts vulnerable to NTLM relay across the subnet.

Why this answer

Option C is correct because the Nmap NSE script smb2-security-mode queries SMB2 on port 445 and reports the message signing configuration, explicitly showing whether signing is required or not, which directly identifies hosts vulnerable to NTLM relay. Option E is correct because CrackMapExec/NetExec's smb module enumerates SMB hosts across a subnet and reports signing status (e.g., 'signing:False') in its output, making it ideal for quickly sweeping an internal range. Option A (tracert) only maps the network path to a target via ICMP TTL expiry and reveals nothing about SMB configuration.

Option B (ping -t) merely sends continuous ICMP echo requests to test reachability and cannot detect SMB signing. Option D (nslookup -type=mx) queries DNS mail exchanger records and is unrelated to SMB security settings.

159
MCQmedium

During a Windows post-exploitation assessment, you have compromised a local service account with 'SeImpersonatePrivilege'. Which tool and technique should you utilize to escalate to NT AUTHORITY\SYSTEM?

A.Use GPP-decrypt to extract credentials from cached XML files.
B.Use PrintSpoofer to trigger a pipe connection from the spooler service.
C.Run Invoke-TokenManipulation to steal a process token.
D.Execute reg add to modify the ImagePath of a system service.
AnswerB

SeImpersonatePrivilege lets a process impersonate tokens from connections it can coerce. PrintSpoofer abuses the spooler service to trigger a named-pipe connection, capturing its SYSTEM token, satisfying the stem's requirement to reach NT AUTHORITY\SYSTEM from a service account.

Why this answer

PrintSpoofer exploits the SeImpersonatePrivilege by coercing the Print Spooler service to connect to a named pipe controlled by the attacker, then impersonating the resulting SYSTEM token. This is a well-known privilege escalation technique on Windows when SeImpersonatePrivilege is available. It directly achieves NT AUTHORITY\SYSTEM escalation.

Exam trap

CPENT often tests privilege escalation primitives, and candidates confuse credential extraction (GPP-decrypt) or generic token theft with the specific SeImpersonatePrivilege abuse technique that leverages the Print Spooler service.

How to eliminate wrong answers

Option A is wrong because GPP-decrypt extracts passwords from Group Policy Preferences XML files (cpassword), which is a credential harvesting technique, not a token impersonation escalation for SeImpersonatePrivilege. Option C is wrong because Invoke-TokenManipulation can steal tokens but requires appropriate privileges and is less reliable for SeImpersonatePrivilege abuse compared to dedicated tools like PrintSpoofer or JuicyPotato. Option D is wrong because modifying a service's ImagePath requires administrative privileges already and is a persistence/execution technique, not an escalation from SeImpersonatePrivilege.

160
Multi-Selecthard

During an Active Directory security review, an assessor examines Kerberos delegation configurations. Which THREE delegation misconfigurations or vulnerabilities represent high-risk attack vectors if exploited? (Choose THREE)

Select 3 answers
A.Standard Kerberos pre-authentication enabled on all standard user accounts with strong passwords
B.Unconstrained Delegation on a computer account, allowing any user's TGT to be cached when they authenticate to the host
C.Resource-Based Constrained Delegation (RBCD) where a compromised machine account has write access to the msDS-AllowedToActOnBehalfOfOtherIdentity attribute of a higher-privileged target
D.Constrained Delegation with Protocol Transition (S4U2Self/S4U2Proxy) enabled on a service account without proper restrictions
E.Automatic workstation registration limits set to allow zero new domain-joined machines
AnswersB, C, D

Unconstrained Delegation lets a host cache any authenticating user's TGT in memory. An attacker who compromises that computer can extract those tickets and replay them, impersonating privileged users across the domain — far broader than constrained variants, which limit impersonation to specified services.

Why this answer

Option B is correct because Unconstrained Delegation (TrustedForDelegation) causes the host to cache the TGT of every authenticating user in LSASS memory; an attacker who compromises that host can extract those TGTs (e.g., via Mimikatz) and impersonate privileged users across the domain. Option C is correct because RBCD abuse occurs when an attacker controls a principal with write access to a target's msDS-AllowedToActOnBehalfOfOtherIdentity attribute, letting them configure the target to trust their controlled account and then obtain service tickets via S4U2Self/S4U2Proxy to impersonate any user to that target. Option D is correct because Constrained Delegation with Protocol Transition allows a service to obtain a forwardable ticket for a user without that user's credentials (S4U2Self) and then use S4U2Proxy to access downstream services, so a compromised service account can pivot to any resource listed in msDS-AllowedToDelegateTo.

Option A is not a vulnerability—Kerberos pre-authentication with strong passwords is a hardening best practice that resists AS-REP roasting. Option E is unrelated to delegation; it concerns machine account quota (ms-DS-MachineAccountQuota) and does not by itself constitute a Kerberos delegation attack vector.

161
Multi-Selecthard

Which THREE tactics or actions are effective in defending against or detecting Golden Ticket attacks in an enterprise Active Directory environment?

Select 3 answers
A.Enabling unconstrained delegation on all workstation computer objects
B.Enforcing Tiered Administration models to protect domain controller access
C.Disabling LDAP channel binding on all domain controllers
D.Monitoring Kerberos Ticket Granting Service (TGS) requests with abnormal lifetime values (Event ID 4769)
E.Performing a double-rotation of the KRBTGT account password
AnswersB, D, E

Tiered administration limits where credential material can be exposed, preventing attackers from acquiring KRBTGT hashes.

Why this answer

Option B is correct because enforcing Tiered Administration models restricts who can log on to and administer Tier 0 assets such as domain controllers, limiting the credential exposure that enables an attacker to obtain the KRBTGT hash needed to forge a Golden Ticket. Option D is correct because Golden Tickets are forged TGTs, and their abuse surfaces in Kerberos service ticket activity; monitoring TGS requests (Event ID 4769) for anomalous ticket lifetimes, encryption types, or account patterns helps detect forged tickets that bypass normal TGT issuance. Option E is correct because the KRBTGT account's password hash signs all TGTs, so a double-rotation (resetting the password twice, with replication in between) invalidates existing Golden Tickets and prevents their continued use.

Option A is wrong because enabling unconstrained delegation on workstations expands attack surface and lets compromised hosts impersonate users to services, which aids attackers rather than defending against Golden Tickets. Option C is wrong because disabling LDAP channel binding weakens protection against relay and credential-theft attacks on domain controllers, making the environment less secure, not more.

Exam trap

CPENT often tests whether candidates can distinguish between offensive techniques (e.g., unconstrained delegation) and defensive measures (e.g., Tiered Administration, KRBTGT rotation) in the context of Golden Ticket attacks.

162
Multi-Selecteasy

An auditor reviews an enterprise's hybrid cloud identity architecture. Which TWO of the following configurations represent insecure identity practices? (Choose TWO)

Select 2 answers
A.Disabling multi-factor authentication requirements for global administrator accounts during emergency maintenance windows.
B.Enforcing strong password complexity and expiration policies for all cloud user accounts.
C.Implementing Microsoft Entra ID Protection to detect compromised credentials and risky sign-ins.
D.Configuring service accounts with passwords that never expire and granting them interactive logon rights.
E.Utilizing Azure AD managed identities for Azure resources instead of hardcoded credentials.
AnswersA, D

Disabling MFA for global administrator accounts removes the second authentication factor protecting the highest-privilege identities, so a compromised password alone grants full tenant control. Emergency maintenance windows do not justify this exposure; privileged access should use temporary credentials or break-glass accounts with compensating controls.

Why this answer

Option A is correct because disabling multi-factor authentication for global administrator accounts—even temporarily during emergency maintenance—removes the strongest protection on the most privileged identities, exposing the tenant to credential-stuffing, phishing, and token-replay attacks that MFA would otherwise block. Option D is correct because non-expiring service account passwords combined with interactive logon rights create long-lived, human-usable credentials that violate least privilege and the separation of service and interactive accounts, making lateral movement and credential theft far easier. Option B is not an insecure practice: strong password complexity and expiration policies are standard hardening controls for cloud user accounts.

Option C is not insecure: Microsoft Entra ID Protection is a defensive tool that detects compromised credentials and risky sign-ins. Option E is not insecure: Azure managed identities eliminate hardcoded credentials by issuing tokens through the platform, which is a recommended secure practice.

Exam trap

CPENT often tests the identification of insecure identity practices, and candidates may mistakenly think that temporary MFA disablement is acceptable or that service accounts with non-expiring passwords are fine, when both are considered high-risk.

163
MCQmedium

An operator has gained administrative access to a subordinate domain in a multi-domain Active Directory forest and wishes to escalate privileges to Enterprise Admin across the entire forest. What object or group must be compromised to achieve forest-wide control?

A.The Enterprise Admins group in the forest root domain
B.The Cert Publishers group on any workstation
C.The Domain Admins group of the subordinate domain
D.The Account Operators group in the builtin container
AnswerA

The Enterprise Admins group in the forest root domain holds forest-wide administrative rights, so compromising it grants control over every domain in the forest. Subordinate-domain Domain Admin rights alone do not confer Enterprise Admin privileges.

Why this answer

The Enterprise Admins group resides in the forest root domain and grants full administrative control over all domains in the forest. Compromising this group (or adding an account to it) is the definitive way to achieve forest-wide privilege escalation. In a multi-domain forest, even Domain Admin in a child domain does not automatically confer Enterprise Admin rights, so the attacker must target the forest root's Enterprise Admins group.

Exam trap

The trap is assuming that Domain Admin in a child domain equates to Enterprise Admin; candidates must remember that forest-wide control requires the Enterprise Admins group in the forest root domain.

How to eliminate wrong answers

Option B is wrong because Cert Publishers is a group that manages certificate publication and has no forest-wide administrative privileges. Option C is wrong because Domain Admins in a subordinate domain only grants full control over that specific domain, not the entire forest. Option D is wrong because Account Operators is a built-in group with limited account management rights in a single domain and cannot escalate to forest-wide control.

164
MCQmedium

A security consultant is performing a penetration test against a smart building HVAC system controlled by BACnet/IP. The consultant wants to discover BACnet devices and their supported object properties on the local subnet. Which utility or Python tool specifically designed for BACnet protocol assessment should the consultant use?

A.ettercap
B.bacpypes (using scripts like whois.py / iam.py)
C.sqlmap
D.msfvenom
AnswerB

bacpypes is a Python BACnet stack whose whois.py and iam.py scripts broadcast Who-Is and parse I-Am replies, enumerating devices and object properties on the subnet. This directly satisfies the requirement for a BACnet-specific discovery tool.

Why this answer

bacpypes is a Python library that implements the BACnet protocol stack, and its bundled scripts such as whois.py (Who-Is/I-Am discovery) and iam.py (I-Am response) are designed specifically for BACnet device discovery and property enumeration. This makes it the correct tool for assessing BACnet/IP devices on a smart building network.

Exam trap

CPENT often tests whether candidates can map a protocol to its dedicated assessment tool — the trap is picking a generic network tool like ettercap or a web tool like sqlmap when the question specifically requires BACnet object/property discovery, which only bacpypes (or BACnet-specific tools like BACnet-discover) provides.

How to eliminate wrong answers

Option A is wrong because ettercap is a general-purpose LAN man-in-the-middle and ARP spoofing tool — it does not understand BACnet object properties or device discovery. Option C is wrong because sqlmap is an automated SQL injection tool for web applications, unrelated to BACnet. Option D is wrong because msfvenom is a Metasploit payload generator for creating exploit binaries, not a BACnet protocol assessment tool.

165
MCQhard

A penetration tester is evaluating a hybrid Active Directory environment. They compromise an on-premises user account that has been synchronized to Azure AD. They discover that the on-premises account is a member of a high-privilege local group, but Azure AD Connect has filtered out this group synchronization. How can the tester leverage Azure AD Connect configuration weaknesses?

A.Use the Azure AD Connect database password stored in the local SQL Express instance to perform a DCShadow attack.
B.Force Azure AD Connect to disable multi-factor authentication for all cloud administrators.
C.Examine Azure AD Connect synchronization rules and connector filters for misconfigurations or export rules that might inadvertently expose directory objects or allow rule manipulation.
D.Inject a malicious DLL into the Azure AD Connect health agent service to execute arbitrary code on the Azure cloud domain controller.
AnswerC

Synchronisation rules and connector filters determine which objects and attributes reach Microsoft Entra ID. Reviewing them for misconfigured export rules or filtering gaps reveals whether the high-privilege group or its members can be surfaced despite the intended filter.

Why this answer

Azure AD Connect synchronization rules and connector filters determine which on-premises objects and attributes flow to Azure AD. Misconfigurations — such as overly broad scoping filters, custom sync rules, or export rules — can inadvertently expose high-privilege objects or allow an attacker to manipulate rules to sync a privileged account into the cloud, enabling privilege escalation in Azure AD.

Exam trap

CPENT often tests the distinction between AD Connect configuration weaknesses (sync rules/filters) and unrelated attack techniques (DCShadow, MFA bypass, DLL injection) — candidates pick exotic techniques instead of the documented sync-rule abuse path.

How to eliminate wrong answers

Option A is wrong because the AD Connect database password (for the local SQL Express) does not enable a DCShadow attack — DCShadow requires domain admin or replication rights and is unrelated to the sync database credentials. Option B is wrong because Azure AD Connect cannot disable MFA for cloud administrators; MFA is managed in Azure AD/Entra ID, not by the sync engine. Option D is wrong because injecting a DLL into the health agent service is a code-execution technique on the AD Connect server, not a configuration weakness in sync rules, and it does not target an 'Azure cloud domain controller' (Azure AD is not a domain controller).

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

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

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

169
Multi-Selectmedium

You are performing a privilege escalation on a Windows machine. Which THREE of the following are valid techniques to gather local information for further escalation?

Select 3 answers
A.tasklist /svc
B.dir /s /b config.php
C.whoami /priv
D.systeminfo
E.netsh wlan show profiles
AnswersA, C, D

tasklist /svc enumerates running processes alongside their hosted services, revealing service accounts and privileged processes. This local enumeration satisfies the stem's requirement to gather host information for privilege escalation, exposing potential weak service configurations or credentials.

Why this answer

Option A (tasklist /svc) is correct because it enumerates running processes along with the services hosted in each process, revealing service accounts, potentially privileged processes, and unquoted service paths or vulnerable services that can be leveraged for escalation. Option C (whoami /priv) is correct because it lists the privileges assigned to the current token, such as SeImpersonatePrivilege, SeDebugPrivilege, or SeBackupPrivilege, which directly indicate escalation vectors like token impersonation or Potato-style attacks. Option D (systeminfo) is correct because it returns OS version, build number, hotfix level, and patch information, allowing an attacker to identify missing patches and known kernel or local privilege escalation exploits.

Option B (dir /s /b config.php) is not a Windows local enumeration technique for privilege escalation—it targets a PHP configuration file and is more relevant to web application reconnaissance. Option E (netsh wlan show profiles) only reveals saved wireless network profiles and their SSIDs, which is useful for credential or network discovery but not for local privilege escalation.

170
Multi-Selecteasy

An auditor is evaluating cloud storage security across multiple cloud providers. Which TWO of the following settings indicate improper security configurations for cloud storage buckets? (Choose TWO)

Select 2 answers
A.An Amazon S3 bucket configured with ACLs allowing public read and write access.
B.An Azure Storage Account with 'Secure transfer required' set to Enabled.
C.A Google Cloud Storage bucket with IAM binding granting storage.objectViewer to allUsers.
D.Enabling versioning and object lock on financial data storage buckets.
E.Enabling AWS S3 Block Public Access at the account level.
AnswersA, C

S3 ACLs granting public read and write let anyone list, download, and overwrite or delete bucket objects without authentication. This is a critical misconfiguration exposing data confidentiality and integrity, and is a classic cloud storage security failure.

Why this answer

Option A is correct because an S3 bucket ACL granting public read and write access (e.g., AllUsers with WRITE or WRITE_ACP permissions) allows anyone on the internet to upload, overwrite, or delete objects, which is a serious misconfiguration and a common cause of data breaches. Option C is correct because binding storage.objectViewer to allUsers in Google Cloud Storage makes every object in the bucket readable by anyone on the internet, exposing data without authentication. Option B is not improper: setting 'Secure transfer required' to Enabled on an Azure Storage Account enforces HTTPS/TLS for all requests, which is a security best practice.

Option D is not improper: versioning plus object lock (e.g., S3 Object Lock in compliance mode) protects financial data against deletion or tampering and supports retention requirements. Option E is not improper: enabling S3 Block Public Access at the account level is a recommended guardrail that overrides bucket policies and ACLs to prevent public exposure.

171
Multi-Selecthard

When analyzing a compromised Active Directory environment using BloodHound, which THREE common node properties or paths typically signify a high-value target or an immediate path to Domain Admin?

Select 3 answers
A.Principals with GenericAll or WriteDACL over the Domain object
B.Standard users with 'MemberOf' a departmental security group
C.Standard domain user accounts with default password policies
D.Members of the Domain Admins group
E.Computers configured with Unconstrained Delegation
AnswersA, D, E

GenericAll or WriteDACL over the Domain object grants full control or the ability to modify the domain's ACLs, letting an attacker grant themselves DCSync rights or escalate directly to Domain Admin, marking it as an immediate high-value path in BloodHound.

Why this answer

Option A is correct because GenericAll or WriteDACL rights over the Domain object allow an attacker to modify the domain's ACLs or grant themselves DCSync rights, effectively leading to full domain compromise. Option D is correct because members of Domain Admins inherently possess the highest privileges in the domain, making them direct high-value targets and a clear path to Domain Admin. Option E is correct because computers configured with Unconstrained Delegation cache TGTs of any user who authenticates to them, so compromising such a host can yield Domain Admin credentials when a privileged account connects.

Option B is not correct because membership in a departmental security group typically grants only limited, scoped access and does not by itself indicate a high-value target or Domain Admin path. Option C is not correct because default password policies on standard user accounts are a general hygiene weakness, not a specific BloodHound node property or path that directly signifies Domain Admin escalation.

Exam trap

CPENT often tests the confusion between generic group membership and genuinely dangerous ACL/delegation edges — candidates pick any 'admin-looking' group instead of recognizing the specific BloodHound edges (GenericAll, WriteDACL, Unconstrained Delegation) that create real attack paths.

172
MCQhard

A penetration tester is evaluating a Kubernetes environment and discovers that the Kubernetes dashboard is deployed with cluster-admin privileges and is exposed to the internet via a NodePort service without authentication. How can this be exploited?

A.The dashboard exposes the cloud provider root account password in plain text logs.
B.The attacker can harvest Kerberos ticket-granting tickets from the dashboard cache.
C.An external attacker can access the dashboard web interface without credentials and deploy malicious pods with host-level access, resulting in complete cluster compromise.
D.The attacker can perform a buffer overflow against the etcd TLS listener via the dashboard port.
AnswerC

An unauthenticated NodePort-exposed dashboard with cluster-admin rights lets any external attacker reach the web interface and create workloads. Deploying a pod with hostPath or privileged settings grants node access, escalating to full cluster compromise as the scenario describes.

Why this answer

An unauthenticated Kubernetes dashboard exposed via NodePort allows an attacker to execute arbitrary commands, deploy malicious pods, and take over the entire cluster.

173
MCQeasy

A penetration tester is auditing an AWS environment and discovers that an IAM role used by an EC2 instance has an overly permissive trust policy allowing any principal in an external AWS account to assume it without specifying an ExternalId. What is the standard security term and remediation for this vulnerability?

A.Access Key exposure; remediate by rotating the static credentials associated with the IAM role.
B.Cross-account confused deputy vulnerability; remediate by adding a Condition block requiring an 'sts:ExternalId'.
C.Resource-based policy escalation; remediate by disabling cross-account access entirely in AWS Organizations.
D.IAM privilege escalation via PassRole; remediate by removing iam:PassRole permissions from the instance profile.
AnswerB

The trust policy lacks an ExternalId condition, letting any principal in the external account assume the role and exploit the confused deputy flaw. Adding a Condition block requiring 'sts:ExternalId' binds assumption to a shared secret, satisfying the stem's remediation requirement.

Why this answer

Allowing external accounts to assume a role without an ExternalId leaves the configuration vulnerable to the 'Confused Deputy' problem. Remediation involves adding a condition using 'sts:ExternalId' to the trust policy.

174
MCQhard

An auditor is reviewing Active Directory Certificate Services and identifies ESC8. What exact AD CS endpoint is exploited during an ESC8 attack vector?

A.The Kerberos Key Distribution Center service on port 88
B.The HTTP-based Web Enrollment (certsrv/) or Certificate Enrollment Web Service endpoints
C.The LDAP signing and LDAP channel binding endpoints on port 636
D.The RPC-based DCOM interface on port 135
AnswerB

ESC8 abuses NTLM relay against AD CS HTTP enrolment interfaces — the certsrv/ web enrolment pages or the Certificate Enrollment Web Service — letting an attacker request a certificate as the relayed machine or user.

Why this answer

ESC8 exploits AD CS HTTP enrollment endpoints — specifically the Web Enrollment interface (certsrv/) and the Certificate Enrollment Web Service (CES) — which are vulnerable to NTLM relay when they accept HTTP-based authentication without requiring HTTPS or Extended Protection for Authentication (EPA). An attacker relays a coerced machine account authentication to these endpoints to obtain a certificate for that machine, enabling domain privilege escalation.

Exam trap

CPENT often tests the specific endpoint exploited by ESC8 — candidates confuse it with Kerberos (port 88) or LDAP (636) endpoints, but ESC8 is strictly about HTTP-based AD CS enrollment services.

How to eliminate wrong answers

Option A is wrong because the KDC on port 88 handles Kerberos ticket exchange (AS-REQ/TGS-REQ), which is unrelated to certificate enrollment and is the target of attacks like Kerberoasting or AS-REP Roasting, not ESC8. Option C is wrong because LDAP signing and channel binding on port 636 address LDAP relay protections, not AD CS HTTP enrollment — they relate to ESC8 mitigations only tangentially via EPA concepts. Option D is wrong because the RPC/DCOM interface on port 135 is used for remote management and is not the AD CS enrollment endpoint exploited by ESC8.

175
MCQhard

A security analyst is performing a security assessment on a Siemens S7-1200 PLC. Using Nmap, which NSE script should the analyst run to gather detailed device information, including rack, slot, and firmware version via the S7 communication protocol?

A.s7-info
B.modbus-discover
C.bacnet-info
D.enip-info
AnswerA

The `s7-info` NSE script queries Siemens S7 PLCs over the S7comm protocol on TCP port 102, extracting module identification, rack and slot configuration, firmware version, and hardware order numbers. This directly satisfies the stem's requirement for detailed device information via the S7 communication protocol against the S7-1200.

Why this answer

Nmap includes specific industrial control scripts in the 'scripts/' directory. The 's7-info' script specifically queries Siemens S7 devices to extract operational data.

176
MCQhard

A penetration tester has obtained a low-privileged shell on a Windows 10 workstation that is part of an Active Directory domain. The tester discovers that the workstation has Credential Guard enabled and that the current user has local admin rights on a different server. The tester wants to move laterally to the server using the current user's credentials without knowing the plaintext password. Which technique should the tester use to extract the user's Kerberos ticket from memory and reuse it on the target server?

A.Use 'net use \\server\share /user:domain\user' to authenticate to the server with an empty password, relying on cached credentials.
B.Use Mimikatz with the 'sekurlsa::logonpasswords' command to dump clear-text credentials from LSASS memory.
C.Use the Windows built-in 'runas /savecred' command to launch a new process with saved credentials from the Credential Manager.
D.Use Mimikatz with the 'sekurlsa::tickets /export' command to export all Kerberos tickets from memory, then inject the relevant ticket using 'kerberos::ptt'.
AnswerD

With Credential Guard enabled, plaintext passwords and NTLM hashes are protected, but Kerberos tickets may still be extractable from LSASS memory in some configurations. Mimikatz's sekurlsa::tickets /export exports tickets to .kirbi files, and kerberos::ptt injects a ticket into the current session, enabling lateral movement without the plaintext password. This is a standard pass-the-ticket technique that aligns with the scenario's constraints.

Why this answer

When Credential Guard is enabled, clear-text passwords and NTLM hashes are protected, but Kerberos tickets may still reside in memory and can be exported and reused. The tester should extract tickets using Mimikatz's sekurlsa::tickets /export, then inject the appropriate ticket with kerberos::ptt to authenticate to the target server. This pass-the-ticket approach allows lateral movement without knowing the plaintext password, directly addressing the scenario's constraints.

Exam trap

The trap here is assuming that Credential Guard completely prevents any credential theft, but Kerberos tickets can still be extracted and reused for lateral movement.

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

178
MCQhard

A CPENT tester is evaluating an industrial control system that uses the DNP3 protocol for communication between a master station and remote terminal units (RTUs). The tester wants to determine whether the RTUs enforce any authentication on critical control functions. Which method is MOST appropriate to assess this without causing an outage?

A.Send DNP3 Operate (function code 0x04) commands to the RTU's control points to see if they are rejected.
B.Issue DNP3 Cold Restart (function code 0x0D) to the RTU and observe whether the device reboots successfully.
C.Use DNP3 Disable Unsolicited Responses (function code 0x15) to suppress event reporting and check for errors.
D.Capture DNP3 traffic and analyze the application layer for Secure Authentication (IEEE 1815) challenge-response exchanges.
AnswerD

DNP3 Secure Authentication adds challenge-response exchanges for critical function codes, so inspecting captured traffic reveals whether the RTU and master negotiate authentication. This passive analysis determines whether authentication is enforced without sending any control commands. It is the safest way to assess authentication on a live ICS and directly answers the question about enforcement on critical functions.

Why this answer

Passively analyzing captured DNP3 traffic for Secure Authentication challenge-response exchanges reveals whether the RTU enforces authentication on critical functions without sending control commands. Active Operate, Cold Restart, and Disable Unsolicited Responses either risk an outage or fail to answer the authentication question, so passive inspection is the safest and most direct method.

Exam trap

The trap here is thinking that sending a control command is necessary to test authentication, when passive inspection of challenge-response exchanges already reveals whether it is enforced.

179
MCQeasy

An AWS penetration tester discovers that an Amazon RDS database instance has the 'Publicly Accessible' flag set to true, and its security group allows inbound traffic from 0.0.0.0/0 on port 3306. What is the immediate risk, and what is the recommended control?

A.S3 bucket policies will automatically override database access controls.
B.The database is vulnerable to container escape via Docker socket exposure.
C.IAM role trust policies are bypassed by external SQL injection attacks.
D.The database can be reached from the internet; the security group should be restricted to trusted CIDR blocks and public accessibility disabled.
AnswerD

Publicly Accessible plus 0.0.0.0/0 on port 3306 exposes MySQL directly to internet scanning and brute force. Restricting the security group to trusted CIDR blocks and disabling public accessibility removes that exposure, satisfying the stem's immediate-risk and control requirement.

Why this answer

The database is exposed to the public internet, requiring network ACLs, security group restriction, and disabling public accessibility.

180
MCQhard

An attacker has identified an Active Directory Certificate Services (AD CS) template configured with the 'Enrollee Supplies Subject' flag enabled (EDITF_ATTRIBUTESUBJECTALTNAME2 is enabled on the CA), and the template permissions allow low-privileged domain users to enroll. Furthermore, the template allows client authentication. How can this misconfiguration (ESC1) be exploited?

A.Request a certificate specifying an arbitrary SAN (e.g., Domain Admin) and use it for PKINIT authentication
B.Execute a DCSync attack directly against the Certification Authority web enrollment endpoint
C.Force the CA machine account to authenticate to an attacker-controlled SMB share using PetitPotam
D.Perform a Silver Ticket attack by decrypting the CA database with a captured machine hash
AnswerA

With EDITF_ATTRIBUTESUBJECTALTNAME2 enabled, the requester can embed an arbitrary SAN in the CSR, and the CA copies it into the issued certificate. Because the template permits client authentication, the resulting certificate authenticates via PKINIT as the impersonated account, such as Domain Admin.

Why this answer

ESC1 is the AD CS misconfiguration where a template allows the enrollee to supply the subject (including SAN) and permits client authentication, while low-privileged users can enroll. An attacker requests a certificate with an arbitrary SAN such as the Domain Admin's UPN, then uses it for PKINIT (Kerberos certificate logon) to obtain a TGT as that user — effectively impersonating Domain Admin without knowing their password.

Exam trap

CPENT often tests whether candidates can distinguish ESC1 (SAN impersonation via PKINIT) from ESC8 (NTLM relay to AD CS web enrollment) and other AD CS attacks — picking PetitPotam or DCSync instead of the SAN/PKINIT path is the classic mistake.

How to eliminate wrong answers

Option B is wrong because DCSync is a replication-rights abuse (DS-Replication-Get-Changes) against a domain controller, not an attack against a CA web enrollment endpoint, and it does not exploit ESC1. Option C is wrong because PetitPotam coerces machine-account authentication (NTLM relay to AD CS for ESC8), which is a different AD CS attack path, not the ESC1 SAN-impersonation technique. Option D is wrong because a Silver Ticket forges a service ticket using a compromised service/machine account hash; it does not involve decrypting the CA database, and it is unrelated to ESC1's certificate-based impersonation.

181
MCQeasy

A penetration tester has obtained domain administrator credentials for a Windows Active Directory environment. The tester wants to extract the KRBTGT account password hash to create Golden Tickets. Which method is most direct for obtaining this hash?

A.Perform a Kerberoasting attack against the KRBTGT service account.
B.Run Mimikatz with the lsadump::dcsync command targeting the krbtgt account.
C.Use Volume Shadow Copy to copy the NTDS.dit file and extract hashes offline.
D.Run Mimikatz with the sekurlsa::logonpasswords command on a domain-joined workstation.
AnswerB

The lsadump::dcsync command in Mimikatz uses the Directory Replication Service (DRS) protocol to request replication data from a domain controller. With domain administrator privileges, this allows the tester to extract the KRBTGT account hash directly. This method is stealthy and does not require code execution on the domain controller itself, making it a preferred technique for Golden Ticket creation.

Why this answer

DCSync is a technique that impersonates a domain controller to request replication of account data, including password hashes. With domain administrator rights, Mimikatz's lsadump::dcsync can retrieve the KRBTGT hash directly from a domain controller without needing to access the DC's file system. This is the most direct and stealthy method for obtaining the KRBTGT hash to forge Golden Tickets.

Exam trap

The trap here is confusing DCSync with other credential dumping methods; DCSync specifically leverages replication permissions to pull hashes remotely, whereas other methods require local access or target different accounts.

182
MCQhard

An ethical hacker is performing a security review of a smart energy grid employing IEC 60870-5-104. The hacker wishes to inject a forged ASDU (Application Service Data Unit) command to open a circuit breaker. Using Python, which library can the hacker use to construct and transmit raw IEC 104 application layer frames over TCP?

A.BeautifulSoup
B.Pandas
C.Pygame
D.Scapy
AnswerD

Scapy provides an IEC 60870-5-104 contrib layer (scapy.contrib.iec104) with APCI/ASDU classes, letting you craft and send raw application-layer frames over TCP. This satisfies the requirement to forge a circuit-breaker command ASDU at the application layer.

Why this answer

Scapy is a Python library for crafting, sending, sniffing, and dissecting network packets at arbitrary protocol layers, including raw application-layer payloads. It can construct custom IEC 60870-5-104 APDU/ASDU frames and transmit them over TCP, making it the correct tool for injecting forged ASDU commands to a smart grid device.

Exam trap

CPENT often tests whether candidates can distinguish general-purpose Python libraries from packet-crafting libraries — the trap is picking a familiar name like Pandas or BeautifulSoup when the question specifically requires raw protocol frame construction, which only Scapy provides.

How to eliminate wrong answers

Option A is wrong because BeautifulSoup is an HTML/XML parsing library used for web scraping — it has no packet crafting or network transmission capability. Option B is wrong because Pandas is a data analysis library for tabular data manipulation, unrelated to network protocols. Option C is wrong because Pygame is a game development framework for graphics and input handling, with no networking or protocol construction features.

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

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

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

186
MCQmedium

During a CPENT engagement, you have obtained a low-privileged shell on a Windows Server 2019 host that is a member of an Active Directory domain. You notice the host has the SMB signing requirement disabled. You want to perform lateral movement to other hosts on the network by capturing and relaying authentication attempts. Which tool and technique would best allow you to relay NTLM authentication to a target host where SMB signing is not enforced?

A.Use Responder with the -w flag to capture NTLMv2 hashes and then crack them offline with Hashcat.
B.Use Metasploit's psexec module with the current user's credentials to move laterally.
C.Use Mimikatz to extract plaintext credentials from memory and then use them for lateral movement.
D.Use ntlmrelayx.py from Impacket to relay captured NTLM authentication to the target host's SMB service.
AnswerD

ntlmrelayx.py is designed to relay NTLM authentication to services like SMB, and when SMB signing is disabled on the target, the relay succeeds. It allows immediate code execution or command execution on the target without cracking hashes. This directly addresses the scenario's requirement for lateral movement via relay.

Why this answer

Relaying NTLM authentication is a powerful lateral movement technique when SMB signing is not enforced. The tool ntlmrelayx.py from Impacket is specifically built to relay authentication to SMB and other protocols. With SMB signing disabled on the target, the relayed authentication is accepted, allowing the attacker to execute commands or dump SAM hashes.

This avoids the need to crack captured hashes and directly leverages the authentication attempt.

Exam trap

The trap here is confusing hash capture and cracking with relay attacks; capturing NTLM hashes does not automatically enable lateral movement unless you can relay them to a service that does not enforce signing.

187
MCQmedium

A penetration tester is analyzing the firmware of an IoT smart bulb extracted via a flash dump. Using Binwalk, the tester extracts the squashfs-root file system. Which command should the tester execute to search for hardcoded private RSA keys within the extracted directory?

A.strings -k squashfs-root/
B.grep -rn 'BEGIN RSA PRIVATE KEY' squashfs-root/
C.firmadyne -s squashfs-root/
D.binwalk -A squashfs-root/
AnswerB

Recursive grep scans every file under squashfs-root, matching the literal PEM header that precedes hardcoded private RSA keys in firmware. The -r flag satisfies the requirement to search the entire extracted directory tree, while -n reports line numbers for locating each key within its file.

Why this answer

The grep command with the -r (recursive) and -n (line number) flags searches through all files in the squashfs-root directory for the string 'BEGIN RSA PRIVATE KEY'. This pattern is the standard header for PEM-encoded RSA private keys, making it an effective way to locate hardcoded keys in extracted firmware. The command is simple, fast, and does not require additional tools.

Exam trap

The trap is overcomplicating the search with specialized tools when a basic grep command is the most direct method. Candidates might choose binwalk or firmadyne thinking they are required for firmware analysis, but the question asks for a search command.

How to eliminate wrong answers

Option A is wrong because 'strings -k' is not a valid option; strings extracts printable characters but does not search for specific patterns recursively. Option C is wrong because firmadyne is an emulation framework, not a search tool, and '-s' is not a valid flag for searching. Option D is wrong because binwalk -A performs architecture analysis, not string searching for private keys.

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

189
Multi-Selecthard

Which THREE techniques or remediation steps are recommended to secure Active Directory Certificate Services (AD CS) against certificate-based abuse vectors like ESC1 through ESC8?

Select 3 answers
A.Disable HTTP-based web enrollment or enforce HTTPS with Extended Protection for Authentication (EPA) enabled.
B.Regularly audit AD CS infrastructure and templates using tools like Certipy or BloodHound.
C.Disable Kerberos pre-authentication across all domain controller computer accounts.
D.Enforce unconstrained delegation on all certificate authority servers.
E.Remove the 'ENROLLEE_SUPPLIES_SUBJECT' flag from certificate templates unless strictly required.
AnswersA, B, E

Disabling HTTP web enrolment or enforcing HTTPS with Extended Protection for Authentication blocks NTLM relay to the CA web interface, directly mitigating ESC8. EPA binds the authentication exchange to the TLS channel, so a relayed credential cannot be reused against the enrolment endpoint.

Why this answer

Option A is correct because ESC8 abuses the HTTP-based web enrollment endpoints (certsrv) via NTLM relay, so disabling HTTP enrollment or enforcing HTTPS with Extended Protection for Authentication (EPA) and disabling NTLM on those endpoints blocks that relay vector. Option B is correct because continuous auditing of AD CS templates, CAs, and ACLs with tools like Certipy or BloodHound (e.g., Certipy's 'find' and 'template' checks) surfaces misconfigurations such as ESC1-ESC8 before attackers exploit them. Option E is correct because removing the ENROLLEE_SUPPLIES_SUBJECT flag prevents low-privileged enrollees from specifying an arbitrary subject/SAN (e.g., a domain admin UPN), which is the core of ESC1 template abuse.

Option C is wrong because disabling Kerberos pre-authentication on domain controller computer accounts would weaken authentication and enable AS-REP roasting, not secure AD CS. Option D is wrong because enforcing unconstrained delegation on CA servers increases exposure to credential theft and relay/impersonation attacks rather than mitigating certificate abuse.

Exam trap

The trap is that candidates pick options that sound like 'hardening' (disabling pre-auth, enabling delegation) but actually weaken security, confusing attack-surface reduction with attack-surface expansion.

190
Multi-Selecthard

An engineering team is hardening an Operational Technology (OT) network segment that relies on legacy SCADA protocols lacking native encryption or authentication. Which THREE compensating controls should the penetration tester recommend to mitigate risks associated with these insecure protocols? (Choose THREE)

Select 3 answers
A.Disable all TCP and UDP ports on the SCADA network switches
B.Deploy industrial Intrusion Detection Systems (IDS) tuned for OT protocol anomalies
C.Deploy network segmentation adhering to the ISA/IEC 62443 zones and conduits model
D.Implement industrial firewalls capable of Deep Packet Inspection (DPI) for SCADA protocols
E.Install traditional endpoint antivirus software directly on the Programmable Logic Controllers (PLCs)
AnswersB, C, D

An OT-tuned IDS passively monitors SCADA traffic and alerts on protocol anomalies and malicious command sequences, compensating for the absent encryption and authentication in legacy protocols by detecting exploitation attempts that those protocols cannot themselves prevent or log.

Why this answer

Option B is correct because an industrial IDS tuned for OT protocol anomalies (e.g., Modbus, DNP3, IEC 61850) provides passive monitoring and detection of malicious or abnormal commands without requiring the legacy protocols to support encryption or authentication. Option C is correct because ISA/IEC 62443 zones and conduits segmentation limits lateral movement and restricts access to SCADA devices, effectively compensating for the lack of native security in the protocols. Option D is correct because industrial firewalls with SCADA-aware Deep Packet Inspection can enforce protocol-level allowlisting and filter malformed or unauthorized function codes (e.g., Modbus write commands) that legacy protocols cannot authenticate.

Option A is incorrect because disabling all TCP/UDP ports would break the SCADA network's required communications and is not a viable compensating control. Option E is incorrect because PLCs typically run real-time operating systems that cannot host traditional endpoint antivirus, and such software is not designed for OT environments.

Exam trap

CPENT often tests the misconception that IT security controls (antivirus, patching, standard firewalls) translate directly to OT — candidates who pick endpoint AV on PLCs or blanket port shutdowns reveal a lack of OT-specific knowledge.

191
MCQhard

A penetration tester gains shell access inside a Docker container running on a Linux host. They inspect the container's capabilities using capsh --print and notice CAP_SYS_ADMIN is enabled, and the cgroup v1 filesystem is mounted read-write inside the container. Which specific container escape vector is immediately available?

A.Writing directly to the host's /etc/passwd file via a shared memory segment mounted at /dev/shm.
B.Leveraging the cgroups release_agent notification mechanism to execute arbitrary commands on the host operating system.
C.Using the ptrace system call to inject code into the host's systemd daemon process.
D.Issuing a mount command to repartition the host's primary storage block device.
AnswerB

CAP_SYS_ADMIN plus a read-write cgroup v1 mount lets the tester write to the release_agent file, which the host kernel executes outside the container's namespace. This directly satisfies the escape precondition the stem describes, yielding host-level command execution.

Why this answer

With CAP_SYS_ADMIN and a read-write cgroup v1 mount, the attacker can write a path to the release_agent file and then trigger a cgroup release, causing the kernel to execute that path as root in the host's initial namespace. This is the canonical cgroup v1 container escape (CVE-2022-0492 is a related kernel-side variant). No other listed vector is available from inside a standard container without additional host misconfigurations.

Exam trap

The trap here is assuming any CAP_SYS_ADMIN container is trivially escapable via mount or ptrace, when the specific writable cgroup v1 release_agent condition is what actually enables the escape.

How to eliminate wrong answers

Option A is wrong because /dev/shm is a tmpfs shared-memory mount inside the container's mount namespace; it is not the host's /etc/passwd and writing there does not affect the host. Option C is wrong because ptrace cannot cross PID namespaces by default and systemd runs in the host's PID namespace, so the container cannot see or attach to it. Option D is wrong because repartitioning a block device requires the device node to be exposed and CAP_SYS_ADMIN plus write access to the raw device, which is not implied by the scenario and would be blocked by the container's device cgroup.

192
MCQmedium

During a CPENT engagement against a Microsoft 365 tenant, you obtain a low-privileged user's credentials and successfully authenticate. You need to determine whether the tenant has enabled Security Defaults or configured custom Conditional Access policies, because this affects your ability to perform password spraying and legacy authentication attacks. Which Microsoft Graph endpoint should you query to retrieve the tenant's Conditional Access policy configuration?

A.GET https://graph.microsoft.com/v1.0/identity/conditionalAccess/policies
B.GET https://graph.microsoft.com/v1.0/policies/identitySecurityDefaultsEnforcementPolicy
C.GET https://graph.microsoft.com/v1.0/auditLogs/signIns
D.GET https://graph.microsoft.com/v1.0/identity/conditionalAccess/namedLocations
AnswerA

The Microsoft Graph endpoint /identity/conditionalAccess/policies returns the collection of conditionalAccessPolicy objects, including their state (enabled/disabled), conditions, grant controls, and session controls. With a token possessing Policy.Read.All or Policy.Read.ConditionalAccess, a tester can enumerate exactly which policies exist, whether legacy authentication is blocked, and which users or apps are excluded, directly informing the attack plan.

Why this answer

Conditional Access policy objects are exposed through the Microsoft Graph identity namespace, and enumerating them reveals the enabled state, included/excluded users and apps, client app types (such as legacy authentication), and grant controls like MFA. This directly determines whether password spraying or legacy protocol attacks will succeed. Security Defaults is a separate object, named locations are only conditions, and sign-in logs are historical rather than configuration data.

Exam trap

The trap here is assuming that Security Defaults being disabled means no authentication protections exist, when custom Conditional Access policies can still block legacy authentication and enforce MFA.

193
MCQeasy

A penetration tester is assessing an IoT device that uses MQTT for communication. The tester has captured MQTT traffic and notices that the CONNECT packets do not include a username or password. Which of the following best describes the security implication of this observation?

A.The MQTT protocol inherently does not support authentication, so this is expected behavior.
B.The MQTT traffic is encrypted with TLS, so the absence of credentials is not a concern.
C.The MQTT broker is using certificate-based authentication, which replaces username and password.
D.The MQTT broker allows anonymous connections, which may permit unauthorized clients to publish or subscribe to topics.
AnswerD

When MQTT CONNECT packets lack a username and password, the broker may be configured to allow anonymous access. This means any client can connect without credentials and potentially subscribe to sensitive topics or publish malicious data. In IoT environments, this is a common misconfiguration that can lead to data leakage or device manipulation. Therefore, this observation indicates a significant security risk.

Why this answer

MQTT CONNECT packets without a username and password often indicate that the broker permits anonymous connections. This misconfiguration allows any client to connect and potentially access or manipulate MQTT topics, leading to data breaches or unauthorized control of IoT devices. It is a critical finding in a penetration test, as it directly impacts the confidentiality and integrity of the system.

Exam trap

The trap here is assuming that TLS encryption automatically provides authentication, when in fact anonymous access can still be allowed even over TLS.

194
Multi-Selectmedium

During a Kubernetes cluster security assessment, a penetration tester identifies multiple misconfigurations. Which TWO of the following findings represent high-risk security flaws in Kubernetes RBAC and cluster setup? (Choose TWO)

Select 2 answers
A.Exposing the Kubernetes API server endpoint directly to the public internet (0.0.0.0/0) without IP whitelisting or robust authentication.
B.Enabling Pod Security Standards (e.g., Restricted profile) across all namespaces.
C.Using network policies to isolate sensitive database pods from frontend web pods.
D.Binding the cluster-admin ClusterRole to the default service account in the default namespace via a ClusterRoleBinding.
E.Enabling Kubernetes Role-Based Access Control (RBAC) across all API groups.
AnswersA, D

A publicly exposed API server on 0.0.0.0/0 without IP whitelisting or strong authentication lets unauthenticated attackers reach the control plane, enumerate resources and attempt privilege escalation. This directly satisfies the stem's high-risk cluster setup flaw criterion.

Why this answer

Option A is correct because exposing the Kubernetes API server to 0.0.0.0/0 removes network-level protection, allowing unauthenticated or brute-forced access to the control plane; the API server is the cluster's most sensitive endpoint, so public exposure without IP whitelisting or strong authentication is a high-risk misconfiguration. Option D is correct because binding the cluster-admin ClusterRole to the default service account in the default namespace grants every pod running under that service account full cluster-wide administrative privileges, enabling trivial privilege escalation and lateral movement if any such pod is compromised. Option B is not a flaw — enabling the Restricted Pod Security Standard hardens workloads by enforcing least-privilege pod settings.

Option C is not a flaw — network policies that isolate database pods from frontend pods implement proper microsegmentation. Option E is not a flaw — enabling RBAC across all API groups is the recommended secure default, not a misconfiguration.

195
MCQeasy

A penetration tester has gained a standard user shell on a Linux target and discovers that the user can execute a specific backup binary using sudo without a password. The binary internally calls the system() function to invoke the tar command using a relative path instead of an absolute path. Which technique should the tester use to escalate privileges?

A.Append a new user account to the /etc/passwd file by leveraging a kernel exploit
B.Modify the /etc/sudoers file directly using a buffer overflow vulnerability
C.Inject shellcode into the target binary's memory space using GDB while running under sudo
D.Modify the PATH environment variable to include a malicious directory containing a crafted tar binary and execute the sudo command
AnswerD

Because the sudo binary calls system() with a relative 'tar' path, the shell resolves it via PATH. Prepending a malicious directory containing a fake tar binary causes sudo to execute it as root, satisfying the stem's relative-path constraint.

Why this answer

By manipulating the PATH environment variable to point to a directory controlled by the attacker containing a malicious script named tar, executing the sudo binary will cause it to run the malicious script with elevated privileges via the relative path invocation.

196
MCQeasy

An auditor finds an Amazon S3 bucket configured with public read access enabled via an Access Control List (ACL), but the bucket policy explicitly denies public read access. How does AWS evaluate these conflicting permissions?

A.AWS generates a configuration error and blocks all traffic until the conflict is resolved manually.
B.Access is granted because any Allow permission supersedes bucket restrictions.
C.The explicit Deny in the bucket policy takes precedence, resulting in access being denied.
D.The public ACL takes precedence because ACLs are evaluated before bucket policies.
AnswerC

AWS evaluates all applicable policies together, and any explicit Deny overrides every Allow, whether from an ACL, bucket policy or identity policy. The public-read ACL grant is therefore negated by the bucket policy's explicit Deny, so anonymous requests receive Access Denied.

Why this answer

AWS evaluates all applicable policies (identity-based, resource-based, ACLs, SCPs, permission boundaries) together, and any explicit Deny anywhere in the evaluation chain overrides every Allow. Because the bucket policy contains an explicit Deny for public read, that Deny wins over the ACL's public-read grant, and the request is denied. This is the fundamental 'explicit deny always wins' rule in AWS IAM policy evaluation logic.

Exam trap

The trap here is the misconception that ACLs and bucket policies are evaluated in a priority order, when in fact AWS uses a single unified evaluation where explicit Deny always overrides Allow.

How to eliminate wrong answers

Option A is wrong because AWS does not generate a configuration error or block all traffic when ACLs and bucket policies conflict — it simply evaluates them using the standard deny-overrides-allow logic. Option B is wrong because the claim that 'any Allow supersedes bucket restrictions' is the opposite of how AWS works; explicit Deny always takes precedence over any Allow. Option D is wrong because ACLs are not evaluated before bucket policies in a way that gives them priority — all policies are evaluated together, and an explicit Deny in the bucket policy overrides the ACL grant.

197
MCQeasy

Which technique is most effective for achieving persistence on a Windows system by leveraging the automatic startup mechanism that executes during user login?

A.Creating a hidden scheduled task.
B.Modifying the default shell via Winlogon.
C.Replacing the utilman.exe binary with cmd.exe.
D.Adding an entry to the Run registry key in the current user hive.
AnswerD

The HKCU Run key is read by Explorer at each user logon and launches its listed programs automatically, giving per-user persistence without administrative rights, which satisfies the requirement for an automatic startup mechanism triggered during login.

Why this answer

The Run registry key (HKCU\Software\Microsoft\Windows\CurrentVersion\Run) is a documented Windows autostart extensibility point that executes programs automatically when the current user logs in. Adding an entry here provides user-level persistence that survives reboots and requires no special privileges, making it one of the most common and reliable persistence mechanisms.

Exam trap

CPENT often tests the distinction between persistence mechanisms — candidates may confuse privilege-escalation backdoors (utilman.exe swap) or system-wide shell modifications (Winlogon) with user-level login persistence (Run key).

How to eliminate wrong answers

Option A is wrong because while scheduled tasks can provide persistence, they are not the 'automatic startup mechanism that executes during user login' — they are a separate task-scheduling mechanism and are more heavily monitored. Option B is wrong because modifying the Winlogon shell (Shell value under HKLM\...\Winlogon) replaces the entire user shell and is a system-wide, high-privilege change, not a per-user login startup mechanism. Option C is wrong because replacing utilman.exe with cmd.exe is an accessibility-feature backdoor used for privilege escalation at the logon screen, not a login-time persistence mechanism.

198
MCQhard

You have gained initial access to a Windows host and need to move laterally to a domain controller using Pass-the-Hash. What is the mandatory prerequisite for this attack to succeed?

A.The target must have the Remote Registry service disabled.
B.The target must be running Windows 10 or higher.
C.You must have the plaintext password of the target account.
D.The target must have NTLM authentication enabled in the local security policy.
AnswerD

Pass-the-Hash replays a captured NTLM hash directly, so the target must accept NTLM authentication; if NTLM is disabled by local or domain policy, the forged credentials are refused and lateral movement fails. Enabling NTLM in the local security policy therefore satisfies the attack's mandatory prerequisite.

Why this answer

Pass-the-Hash (PtH) works by using the NTLM hash of a user's password to authenticate via NTLM, bypassing the need for the plaintext password. For this to succeed, the target system must accept NTLM authentication. If NTLM is disabled in the local security policy (e.g., via 'Network security: Restrict NTLM' settings), the attack fails because the hash cannot be used.

Thus, the mandatory prerequisite is that NTLM authentication is enabled on the target.

Exam trap

CPENT often tests the misconception that Pass-the-Hash requires the plaintext password or specific Windows versions, when the core prerequisite is simply that NTLM authentication is enabled on the target.

How to eliminate wrong answers

Option A is wrong because disabling the Remote Registry service does not prevent Pass-the-Hash; it only blocks remote registry access, which is unrelated to NTLM authentication. Option B is wrong because Pass-the-Hash works on many Windows versions, including older ones like Windows 7 and Server 2008, not just Windows 10 or higher. Option C is wrong because Pass-the-Hash specifically does not require the plaintext password; it uses the NTLM hash directly.

199
MCQmedium

A tester gains code execution on a Linux host inside a Docker container and discovers they can access the Docker socket (/var/run/docker.sock) from within the container. How can the tester exploit this to escape the container and compromise the host?

A.Modify /etc/passwd inside the container to add a root user.
B.Run 'docker run -v /:/hostfs --rm -it alpine chroot /hostfs' to mount the host root directory inside a new container.
C.Send a SIGKILL signal to the docker daemon process via kill -9 1.
D.Execute 'sudo su' inside the container environment.
AnswerB

Mounting the host root filesystem into a new container via the exposed socket grants direct read/write access to host files, effectively escaping isolation. The Docker daemon runs as root on the host, so any container it launches inherits that privilege.

Why this answer

Access to /var/run/docker.sock allows the container to interact with the host's Docker daemon. The tester can spin up a new container that mounts the host's root filesystem (/) and provides a chroot or direct execution shell on the host.

200
Multi-Selecteasy

When reviewing container security and Kubernetes cluster configurations, which THREE practices or misconfigurations commonly lead to container escapes or host compromise? (Choose three)

Select 3 answers
A.Using a non-root user directive (USER 1000) inside the Dockerfile.
B.Exposing sensitive host directories (such as '/' or '/proc') via 'hostPath' volumes.
C.Enabling the 'privileged: true' security context flag in the pod specification.
D.Mounting the Docker daemon UNIX socket (/var/run/docker.sock) inside a container.
E.Enabling Kubernetes Role-Based Access Control (RBAC) with least-privilege binding.
AnswersB, C, D

A hostPath volume bind-mounts a host filesystem path directly into the pod, bypassing the container's isolated mount namespace. Mounting '/' or '/proc' exposes host files, credentials and kernel interfaces, enabling escape by writing to host binaries or reading sensitive host data.

Why this answer

Option B is correct because mounting sensitive host directories such as '/' or '/proc' through a hostPath volume gives the container direct read/write access to host files, kernel interfaces, and process information, which an attacker can abuse to modify host binaries, read secrets, or escape the container boundary. Option C is correct because setting privileged: true disables most container isolation, grants all Linux capabilities, and removes seccomp/AppArmor restrictions, effectively giving the container root-level control over the host devices and kernel. Option D is correct because mounting /var/run/docker.sock exposes the Docker daemon API to the container, allowing an attacker to create a new privileged container that mounts the host filesystem and thereby compromise the node.

Option A is not a risk but a hardening practice, since running as a non-root UID (USER 1000) reduces the impact of a compromise. Option E is also a security best practice, as RBAC with least-privilege bindings limits what identities can do in the cluster rather than enabling escapes.

201
MCQeasy

An IoT penetration tester is assessing a smart camera that communicates with a cloud service using MQTT. The tester captures network traffic and notices that the MQTT CONNECT packet includes a username and password in cleartext. Which of the following is the MOST likely reason for this exposure?

A.The MQTT connection is not using TLS encryption.
B.The MQTT broker is configured to use TLS, but the client is not.
C.The MQTT client is configured to use MQTT over WebSocket without TLS.
D.The MQTT broker is using a self-signed certificate that the client rejects.
AnswerA

MQTT, by default, does not encrypt traffic. If TLS is not configured, all data, including CONNECT packets with username and password, is sent in cleartext. This is the most likely reason for the exposure. The tester observed credentials in cleartext, which directly indicates the absence of TLS encryption on the MQTT connection.

Why this answer

MQTT does not encrypt traffic by default. Without TLS, the CONNECT packet, which contains username and password, is transmitted in cleartext. The observation of cleartext credentials directly points to the absence of TLS encryption on the MQTT connection.

Other options describe scenarios that would either prevent connection or are specific subsets of the same root cause.

Exam trap

The trap here is overcomplicating the reason for cleartext credentials when the simplest explanation is the lack of TLS encryption.

202
Multi-Selectmedium

A penetration tester is evaluating the security posture of an industrial SCADA network. Which THREE of the following operational technology (OT) vulnerabilities are most commonly found during network penetration tests of legacy control systems? (Choose THREE)

Select 3 answers
A.Lack of cryptographic authentication on control commands (allowing spoofing)
B.Strict implementation of mandatory end-to-end TLS 1.3 encryption on all internal PLC racks
C.Cleartext transmission of industrial control protocols (e.g., Modbus, Telnet)
D.Automatic hardware-level isolation preventing any lateral movement from the corporate IT network
E.Use of default or hardcoded service credentials on engineering workstations and PLCs
AnswersA, C, E

Legacy OT protocols such as Modbus and DNP3 were designed without authentication, so any host on the segment can forge control commands. This satisfies the spoofing vector, letting an attacker issue unauthorised setpoints or commands to PLCs.

Why this answer

Option A is correct because legacy OT protocols such as Modbus/TCP, DNP3, and IEC 60870-5-104 typically lack cryptographic authentication, so an attacker on the network can forge or replay control commands to spoof a master station or HMI. Option C is correct because these same industrial protocols (Modbus, DNP3, Profinet, and Telnet for device management) usually transmit data in cleartext, allowing credential capture and command manipulation via simple sniffing. Option E is correct because engineering workstations, PLCs, and RTUs frequently ship with default, shared, or hardcoded service credentials that are rarely changed in legacy deployments, giving testers easy authenticated access.

Option B does not belong because mandatory end-to-end TLS 1.3 on internal PLC racks is not a common finding in legacy SCADA environments—most legacy PLCs cannot even negotiate TLS, so this describes a hardened state rather than a vulnerability. Option D does not belong because automatic hardware-level isolation from the corporate IT network is not a typical OT characteristic; flat or poorly segmented networks enabling IT-to-OT lateral movement are the common finding, not enforced isolation.

203
MCQeasy

A tester is analyzing an IoT gateway that runs a web management interface. During discovery, the tester finds that the device exposes an unauthenticated API endpoint that accepts JSON input. Which command-line HTTP client should the tester use to send a custom POST request containing JSON data to test for command injection?

A.ping -c 4 -p '{"cmd":"id"}' 192.168.1.100
B.netstat -an | grep 80
C.traceroute -p 80 192.168.1.100
D.curl -X POST -H 'Content-Type: application/json' -d '{"cmd":"id"}' http://192.168.1.100/api
AnswerD

curl sends an arbitrary POST with a JSON body and explicit Content-Type header, letting the tester deliver the injection payload to the unauthenticated API endpoint. It satisfies the constraint of crafting a custom JSON request from the command line without needing a scripting language or interactive client.

Why this answer

cURL is the standard command-line utility for transferring data with URLs, supporting custom HTTP methods, headers, and data payloads.

204
MCQmedium

An operator has compromised an Active Directory domain and wants to establish persistence using a Golden Ticket. What critical piece of information from the domain is required to forge this ticket?

A.The NTLM hash (or AES keys) of the krbtgt service account.
B.The krbtgt account's public SSH key stored in Active Directory.
C.The global catalog server IP address and LDAP bind credentials.
D.The Domain Administrator's plaintext password.
AnswerA

Forging a Golden Ticket requires encrypting the forged TGT with the krbtgt account's key, so possessing its NTLM hash or AES keys lets the attacker mint valid tickets offline, granting domain-wide persistence without further authentication.

Why this answer

A Golden Ticket is forged using the KRBTGT account's NTLM hash (or AES keys), which allows the attacker to generate valid Kerberos Ticket Granting Tickets (TGTs) for any user.

205
Multi-Selecteasy

A penetration tester has gained initial access to a Windows system and needs to enumerate local users and groups to identify high-privileged accounts for potential escalation. Which TWO built-in Windows command-line commands can be used to list local user accounts? Choose two.

Select 2 answers
A.wmic useraccount get name
B.ipconfig /all
C.net user
D.tasklist /v
E.systeminfo
AnswersA, C

The wmic useraccount get name query reads the Win32_UserAccount class through WMI, returning local account names without extra tooling. It satisfies the enumeration goal, letting the tester identify high-privileged accounts for potential escalation on the compromised Windows host.

Why this answer

Option A, `wmic useraccount get name`, is correct because the WMIC `useraccount` alias queries the Win32_UserAccount WMI class and returns the names of all local user accounts, which is exactly what the tester needs for enumeration. Option C, `net user`, is correct because running it without arguments lists every local user account on the system, a classic built-in method for identifying accounts including privileged ones. Option B, `ipconfig /all`, only displays network adapter configuration such as IP addresses, MAC addresses, and DNS servers, so it does not enumerate users.

Option D, `tasklist /v`, lists running processes with verbose details and has nothing to do with local account enumeration. Option E, `systeminfo`, shows OS version, hotfixes, and hardware information but does not list local users or groups.

206
MCQeasy

An internal penetration tester is performing reconnaissance using BloodHound to map out attack paths in an Active Directory domain. Which automated data collection tool is officially supported and widely utilized to gather ACLs, session information, and object relationships for BloodHound ingestion?

A.BloodHound-Collector-GUI
B.AD-Collector-Pro
C.Responder
D.SharpHound
AnswerD

SharpHound is the official BloodHound collector, gathering ACLs, sessions and object relationships via LDAP and SMB into JSON for ingestion. It satisfies the reconnaissance requirement by automating collection that would otherwise need manual enumeration, mapping attack paths across the Active Directory domain.

Why this answer

SharpHound is the official data collector for BloodHound, written in C#, designed to query Active Directory via LDAP and WinAPI to gather telemetry for mapping attack paths.

207
MCQmedium

A CPENT tester is engaged to assess a municipal water utility's OT network. After passively mapping the environment, the tester identifies a Siemens SIMATIC S7-1200 PLC on VLAN 20 and wants to read the current state of its process image inputs and outputs without altering the running program. Which approach is MOST appropriate for this objective?

A.Replay a captured S7comm Stop CPU request to place the PLC in STOP mode and inspect its diagnostic buffer.
B.Perform an S7comm Upload (0x1D) of the entire program block to the tester's workstation to infer I/O values.
C.Use an S7comm Read Variable (0x04) request against the process image input and output areas of the PLC.
D.Send S7comm Write Variable (0x05) requests to the PLC's memory areas to force input and output values.
AnswerC

S7comm Read Variable requests retrieve data from specified memory areas, including the process image inputs (PE) and outputs (PA), without writing to the PLC. This satisfies the requirement to observe current I/O state while leaving the running program and physical process untouched. It is a standard, low-impact method used during OT enumeration on Siemens S7-1200/1500 devices.

Why this answer

Reading the current process image inputs and outputs on a Siemens S7-1200 requires an S7comm Read Variable request, which queries the PLC's PE and PA areas without changing execution. Write Variable, Stop CPU, and full program Upload either alter state, halt the process, or return logic rather than live I/O, so they fail the read-only requirement on a live water utility.

Exam trap

The trap here is assuming that uploading the PLC program is equivalent to reading live I/O, when upload returns static logic rather than the current process image values.

208
Multi-Selecteasy

An auditor is reviewing an AWS cloud environment and identifies several common misconfigurations related to identity and access management. Which TWO of the following practices represent significant security risks? (Choose TWO)

Select 2 answers
A.Enabling multi-factor authentication (MFA) on all IAM users with console access.
B.Enabling AWS CloudTrail logging across all regions in the account.
C.Using the AWS account root user credentials for day-to-day operational tasks.
D.Maintaining active access keys for the AWS account root user.
E.Attaching AWS managed policies for read-only access to auditing roles.
AnswersC, D

The root user holds unrestricted, non-revocable privileges across the entire AWS account, so using it for routine operations removes least-privilege boundaries and exposes every resource to accidental or malicious compromise. This is a significant identity and access management risk.

Why this answer

Using root credentials for daily tasks and creating active access keys for root users violate foundational AWS security best practices.

209
MCQmedium

A penetration tester executing lateral movement in a Windows domain wants to hide their network activity and command execution by using WinRM (Windows Remote Management). Which PowerShell cmdlet is specifically designed to execute commands on a remote trusted host via WinRM?

A.Get-WmiObject -ComputerName TargetHost -Class Win32_Process
B.Start-Process -FilePath "powershell.exe" -Credential ...
C.Invoke-Command -ComputerName TargetHost -ScriptBlock { ... }
D.Enter-PSSession -ComputerName TargetHost
AnswerC

Invoke-Command with -ComputerName and -ScriptBlock establishes a WinRM session over HTTP/5985 or HTTPS/5986, executing the script block remotely on the trusted host. This satisfies the requirement to run commands through WinRM rather than SMB or WMI.

Why this answer

Invoke-Command allows running script blocks or scripts on local or remote computers using WinRM.

210
MCQmedium

An attacker gains access to an Azure environment and enumerates App Service Configuration settings. They discover that connection strings and database passwords are stored in plaintext within the application settings rather than being referenced via Azure Key Vault references. What attack path does this enable?

A.The attacker can perform a Golden Ticket attack against the Azure Active Directory Domain Services.
B.Azure Firewall automatically terminates the web application due to compliance violations.
C.Any user or service principal with read access to the App Service configuration can extract plaintext database credentials.
D.The App Service hypervisor becomes vulnerable to guest-to-host breakout.
AnswerC

Plaintext connection strings in App Service application settings are readable by anyone holding Reader or Contributor on the resource, exposing database credentials directly. This satisfies the stem's attack path: no Key Vault reference means no separate secret access control.

Why this answer

Storing connection strings and passwords in plaintext within App Service configuration settings means that anyone with read access to the App Service's configuration can retrieve these secrets. This includes users or service principals with Reader role or higher on the App Service resource. The attack path is straightforward: extract credentials and use them to access backend databases or other services, potentially leading to data breach or further compromise.

Exam trap

CPENT often tests the misconception that App Service configuration settings are always secure, when in fact plaintext secrets are a common misconfiguration leading to credential exposure.

How to eliminate wrong answers

Option A is wrong because a Golden Ticket attack requires compromising the KRBTGT account hash, which is not related to App Service configuration settings. Option B is wrong because Azure Firewall does not automatically terminate applications for compliance violations; it is a network security service, not a compliance enforcement tool. Option D is wrong because guest-to-host breakout is a hypervisor vulnerability, not a consequence of plaintext credentials in App Service settings.

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

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

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

214
MCQhard

You have compromised a domain user account and discovered that the user has 'WriteDACL' permission on a sensitive Organizational Unit (OU). You want to escalate privileges by modifying the OU's ACL to grant yourself full control. Which built-in Windows command-line utility can you use to modify the ACL of the OU?

A.dsacls
B.set-acl
C.icacls
D.cacls
AnswerA

dsacls is a built-in Windows command-line tool that allows viewing and modifying ACLs on Active Directory objects, including OUs. With WriteDACL permission, you can use dsacls to grant yourself Full Control on the OU, then further compromise objects within it. It is part of the AD DS tools and is available on domain controllers and administrative workstations.

Why this answer

dsacls is the correct tool because it is specifically designed to manage ACLs on Active Directory objects, including OUs. With WriteDACL permission, you can use dsacls to grant yourself Full Control on the OU, enabling further privilege escalation. The other tools either target file system ACLs or are not command-line utilities.

Exam trap

The trap here is assuming that icacls or cacls can be used on AD objects, when they only work on file system objects.

215
MCQeasy

During an assessment of an Operational Technology (OT) network, a tester discovers a Programmable Logic Controller (PLC) using the Modbus TCP protocol. The tester needs to query holding registers to understand the operational state of the industrial process. Which default TCP port should the tester target for Modbus communications?

A.Port 80
B.Port 502
C.Port 443
D.Port 1883
AnswerB

Modbus TCP encapsulates its protocol data unit directly in TCP segments, and the specification reserves port 502 as the registered default for this traffic. Targeting 502 lets the tester issue function code 3 read-holding-register requests to the PLC, satisfying the requirement to query holding registers and assess the process state.

Why this answer

Modbus TCP uses port 502 by default. Port 80 is HTTP, port 443 is HTTPS, and port 1883 is MQTT.

216
MCQeasy

An auditor reviews an Azure storage account and notes that 'Secure transfer required' is set to Disabled. What security risk does this misconfiguration introduce?

A.Storage account access keys are transmitted in plaintext during Azure Resource Manager API calls.
B.Shared Access Signatures (SAS) tokens expire immediately upon generation.
C.Data in transit between clients and the storage account can be intercepted over unencrypted HTTP connections.
D.Blob storage data at rest is stored without AES-256 encryption.
AnswerC

With Secure transfer required disabled, the storage account accepts requests over plain HTTP, so credentials, tokens and object data travel unencrypted. An attacker positioned on the network path can capture that traffic, satisfying the question's focus on interception of data in transit.

Why this answer

Disabling secure transfer allows unencrypted HTTP connections to the storage account, enabling potential Man-in-the-Middle (MitM) attacks to intercept data in transit.

217
MCQhard

A penetration tester is analyzing an ARM-based IoT router firmware. The tester wants to statically analyze a compiled ELF binary named 'auth_service' to identify potential buffer overflows. Which open-source reverse engineering framework, developed by NSA, should the tester utilize to perform disassembly and decompilation of this binary?

A.Snort
B.Autopsy
C.Wireshark
D.Ghidra
AnswerD

Ghidra, released by NSA, disassembles and decompiles ELF binaries across architectures including ARM, so it handles the router's auth_service without executing it. Static analysis of compiled code for buffer overflows is exactly its supported workflow.

Why this answer

Ghidra is an open-source reverse engineering suite developed by the NSA that supports multiple processor architectures, including ARM, MIPS, and PowerPC, making it ideal for IoT firmware analysis.

218
MCQeasy

An analyst is reviewing PCAP files captured from an ICS environment where Modbus/TCP traffic is flowing. The analyst notices cleartext commands being sent to alter coil values. Which tool can the analyst use to automatically extract Modbus registers and visualize the register state changes over time from the PCAP file?

A.John the Ripper
B.Wireshark
C.Hashcat
D.Dirb
AnswerB

Wireshark's Modbus/TCP dissector decodes function codes, register addresses and values, and its IO Graph and statistics features plot register state changes over capture time. This satisfies the stem's requirement to automatically extract registers and visualise changes from the PCAP.

Why this answer

Wireshark natively dissects Modbus/TCP (port 502) and can display coil, register, and function-code fields; using its filter and IO Graph or Statistics features, the analyst can extract register values and visualize state changes over time from the PCAP. This makes it the correct tool for the described task.

Exam trap

CPENT often tests whether candidates recognize that Wireshark is not just a 'packet viewer' but a full protocol dissector with export and graphing capabilities — the trap is assuming you need a specialized ICS tool when Wireshark already parses Modbus.

How to eliminate wrong answers

Option A is wrong because John the Ripper is an offline password cracker for hashes, not a protocol analyzer. Option C is wrong because Hashcat is a GPU-accelerated hash cracking tool, unrelated to Modbus traffic analysis. Option D is wrong because Dirb is a web content brute-forcer that enumerates directories and files on HTTP servers, not an ICS protocol dissector.

219
MCQeasy

A tester is conducting a physical security and RF assessment against a wireless building automation system operating at 433 MHz. The tester wants to capture and replay the radio frequency signal emitted by a key fob to unlock a gate. Which hardware tool is specifically designed for software-defined radio (SDR) signal capture and analysis in this frequency range?

A.JTAGulator
B.Bus Pirate
C.Rubber Ducky
D.HackRF One / RTL-SDR
AnswerD

HackRF One is a half-duplex SDR transceiver covering 1 MHz to 6 GHz, spanning the 433 MHz band, with RTL-SDR as a receive-only alternative. It satisfies the stem's capture-and-replay requirement, unlike fixed-frequency hardware that cannot record arbitrary waveforms.

Why this answer

HackRF One, RTL-SDR, and similar software-defined radios are used for capturing RF signals. Specifically, devices like RTL-SDR or HackRF paired with GNU Radio or Universal Radio Hacker (URH) cover the 433 MHz band.

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

221
MCQhard

During lateral movement, you decide to use 'Pass-the-Ticket' to access a target. Which file format does Mimikatz typically use to export Kerberos tickets?

A..kirbi
B..ntds
C..sam
D..pfx
AnswerA

Mimikatz exports Kerberos tickets in the .kirbi format, a base64-encoded structure holding the ticket's encrypted blob and session key. This satisfies the stem's Pass-the-Ticket requirement, since the .kirbi file can be re-injected into a session via kerberos::ptt to impersonate the victim without knowing their password.

Why this answer

Mimikatz uses the .kirbi file extension to save exported Kerberos tickets.

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

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

224
MCQmedium

During an internal penetration test, you compromise a domain-joined Windows 10 workstation and obtain a SYSTEM-level shell. You extract the NTLM hash of a domain user from LSASS but cannot crack it. Which technique allows you to authenticate to a remote server as that domain user without knowing the plaintext password?

A.Overpass-the-Hash
B.Pass-the-Ticket
C.Pass-the-Hash
D.Kerberoasting
AnswerC

Pass-the-Hash uses the NTLM hash directly in the authentication process, bypassing the need for the plaintext password. In this scenario, you have extracted the hash from LSASS, and since the domain user has an active logon session, the hash is valid for NTLM authentication. Tools like Mimikatz or Impacket's psexec.py can perform PtH to access remote resources.

Why this answer

Pass-the-Hash is the correct technique because it allows authentication using the NTLM hash directly, without needing the plaintext password. This is particularly useful when you have extracted a hash from LSASS but cannot crack it. The other options either require different credential material (Kerberos tickets) or are more complex and less direct.

Exam trap

The trap here is confusing Pass-the-Hash with Overpass-the-Hash, which converts the hash to a Kerberos ticket and may not work in all scenarios.

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

Page 2

Page 3 of 4

Page 4

All pages