Courseiva

EC-Council Certified Penetration Testing Professional (CPENT) (CPENT) (CPENT) — Questions 76–150

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

Page 1

Page 2 of 4

Page 3
76
MCQmedium

An operator has compromised an account with GenericAll permissions over a computer object in Active Directory. How can this permission be leveraged to achieve code execution on the target host?

A.Modify the user's PrimaryGroupID to map to Domain Admins directly.
B.Execute a DCSync attack against the computer object's registry hive.
C.Directly modify the local SAM database of the target computer over RPC without credentials.
D.Configure msDS-AllowedToActOnBehalfOfOtherIdentity to point to a controlled account, enabling Resource-Based Constrained Delegation.
AnswerD

Writing msDS-AllowedToActOnBehalfOfOtherIdentity on the target computer object grants a controlled account resource-based constrained delegation, letting it impersonate any user to that host's service. Combined with GenericAll's write access, the operator obtains a service ticket as a privileged user, then executes code via SMB or WinRM on the target.

Why this answer

GenericAll on a computer object allows full control, including the ability to write to the msDS-AllowedToActOnBehalfOfOtherIdentity attribute. By setting this attribute to a controlled account, an attacker can configure Resource-Based Constrained Delegation (RBCD), enabling that account to impersonate any user to the target computer and achieve code execution via Kerberos delegation. This is a well-known privilege escalation path in Active Directory.

Exam trap

The trap here is confusing GenericAll on a computer with permissions needed for DCSync or direct SAM modification; candidates may overlook RBCD as a viable escalation path.

How to eliminate wrong answers

Option A is wrong because modifying PrimaryGroupID to Domain Admins is not possible with GenericAll on a computer object; PrimaryGroupID is an attribute of user objects, and even if it were, it would not directly grant code execution on the host. Option B is wrong because DCSync requires Replicating Directory Changes permissions, not GenericAll on a computer, and it targets domain controllers, not computer registry hives. Option C is wrong because directly modifying the local SAM database over RPC without credentials is not feasible; it requires administrative access to the target, which is what the attacker is trying to achieve.

77
MCQhard

During an Active Directory penetration test, an operator has compromised a user account and discovered that the account has GenericAll permissions on a computer object. The operator wants to abuse this permission to gain administrative access to the computer. Which technique should the operator use?

A.DCSync
B.AS-REP Roasting
C.Kerberoasting
D.Resource-Based Constrained Delegation (RBCD)
AnswerD

With GenericAll on a computer object, the operator can modify the msDS-AllowedToActOnBehalfOfOtherIdentity attribute to set up Resource-Based Constrained Delegation. This allows the operator to impersonate any user to that computer, achieving administrative access. This is a direct abuse of the permission granted.

Why this answer

The correct answer is Resource-Based Constrained Delegation (RBCD) because GenericAll on a computer object allows the operator to modify the msDS-AllowedToActOnBehalfOfOtherIdentity attribute. By setting this attribute to include a controlled account, the operator can impersonate any user to that computer, gaining administrative access. Other techniques like Kerberoasting or DCSync do not directly abuse this specific permission.

Exam trap

The trap here is assuming that GenericAll on a computer object can be used for DCSync, when in fact DCSync requires domain-level replication permissions.

78
MCQhard

An operator has compromised a domain user account and wants to perform a Kerberoasting attack to extract service account hashes. The operator uses Rubeus with the kerberoast command. Which encryption type should the operator request to maximize the chance of cracking the extracted tickets?

A.RC4 (etype 23)
B.DES (etype 1)
C.AES256 (etype 18)
D.AES128 (etype 17)
AnswerA

RC4 is the weakest encryption type for Kerberos tickets and is easier to crack because it uses the NT hash of the service account as the key. Requesting RC4 tickets increases the likelihood of successful offline cracking, especially if the service account password is weak. This is why attackers often downgrade to RC4 when possible.

Why this answer

The correct answer is RC4 (etype 23) because it is the weakest encryption type for Kerberos tickets and is easier to crack. By requesting RC4 tickets, the operator increases the chances of successfully cracking the service account hash offline, especially if the password is weak. This is a common tactic in Kerberoasting attacks.

Exam trap

The trap here is assuming that any encryption type can be requested and that DES is still viable, when in fact RC4 is the most practical weak option that is widely supported.

79
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

80
MCQhard

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

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

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

Why this answer

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

81
MCQhard

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

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

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

Why this answer

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

Exam trap

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

82
Multi-Selecthard

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

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

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

Why this answer

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

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

Exam trap

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

83
MCQhard

A pentester needs to exploit an AD CS vulnerability where a low-privileged user can enroll in a template that permits Client Authentication and has the 'ENROLLEE_SUPPLIES_SUBJECT' flag set. Which tool from Certipy can be used to request a certificate and subsequently authenticate as a high-privileged user?

A.certipy req -u user@corp.local -p password -target ca.corp.local -template VulnerableTemplate -upn administrator@corp.local
B.certipy shadow -username user -target dc01
C.certipy ca -backup -ca "corp-CA-1"
D.certipy template -update VulnerableTemplate -enrollee-supplies-subject True
AnswerA

The `-upn` flag injects an arbitrary subjectAltName during enrolment, exploiting the ENROLLEE_SUPPLIES_SUBJECT flag on a Client Authentication template. Certipy's `req` command submits the CSR to the CA, returning a certificate bearing administrator's UPN, which is then usable for Kerberos PKINIT authentication as that high-privileged account.

Why this answer

The Certipy tool's 'req' command is used to request a certificate from a Certificate Authority (CA). By specifying the vulnerable template and the '-upn' flag with a high-privileged user's UPN (e.g., administrator@corp.local), the pentester can request a certificate that allows authentication as that privileged user. This exploits the ESC1 misconfiguration where the template allows the enrollee to supply the subject and permits client authentication.

The other options do not perform this specific action.

Exam trap

The trap is confusing the steps: candidates might think they need to first modify the template (option D) to enable the flag, but the question states the flag is already set, so the immediate action is to request the certificate.

How to eliminate wrong answers

Option B is wrong because 'certipy shadow' is used to add a shadow credential to a user or computer account, not to request a certificate for privilege escalation via a vulnerable template. Option C is wrong because 'certipy ca -backup' is used to back up the CA's private key and certificate, which is a post-exploitation step after compromising the CA, not the initial request. Option D is wrong because 'certipy template -update' is used to modify a template's settings (e.g., to enable ENROLLEE_SUPPLIES_SUBJECT), but the question states the template already has that flag set; the goal is to request a certificate, not modify the template.

84
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

85
MCQhard

A penetration tester is analyzing a Kubernetes deployment where a ClusterRole grants the verbs get, list, and watch on secrets, combined with a ClusterRoleBinding assigning this to a default service account in a public-facing namespace. How can an external attacker exploit this configuration?

A.By exploiting an application vulnerability to obtain the service account token, then querying the Kubernetes API to dump all cluster-wide secrets.
B.By executing a kernel-level exploit against the etcd database directly from outside the cluster.
C.By generating a self-signed certificate authority to impersonate the kube-apiserver.
D.By performing a DNS poisoning attack against CoreDNS to redirect authentication tokens.
AnswerA

ClusterRole verbs get, list and watch on secrets, bound cluster-wide, let any holder read secrets in every namespace. Stealing the default service account token via an app flaw gives the external attacker that API access, satisfying the cluster-wide dump objective.

Why this answer

A ClusterRole granting get/list/watch on secrets, bound cluster-wide to a service account in a public namespace, means any holder of that SA token can read every secret in every namespace via the API server. An external attacker who exploits an application vulnerability (e.g., SSRF, RCE, or a leaked token) to obtain the mounted service account token can then call the Kubernetes API with that bearer token and dump cluster-wide secrets, including database credentials, TLS keys, and other service account tokens.

Exam trap

The trap is that candidates focus on exotic cluster-level attacks (etcd, CoreDNS, CA impersonation) instead of recognizing that a valid SA token plus over-broad RBAC is the straightforward, intended exploitation path.

How to eliminate wrong answers

Option B is wrong because etcd is normally bound to localhost or a private interface with mutual TLS client certs; an external attacker cannot reach it directly, and a kernel exploit against etcd is not the exploitation path implied by an RBAC misconfiguration. Option C is wrong because impersonating the kube-apiserver requires compromising its serving certificate or CA private key, which is unrelated to a ClusterRole secret-read permission. Option D is wrong because DNS poisoning of CoreDNS does not yield authentication tokens — Kubernetes API auth uses bearer tokens or client certs, not DNS-resolved credentials.

86
MCQhard

During an internal penetration test, an operator gains access to a domain-joined Windows workstation and discovers that the current user has local administrator rights on that machine. The operator wants to extract the NTLM hash of the domain administrator who previously logged into this workstation. Which of the following locations is MOST likely to contain this credential material?

A.LSASS process memory
B.Group Policy Preferences XML files
C.SAM registry hive
D.NTDS.dit file
AnswerA

LSASS (Local Security Authority Subsystem Service) caches credential material, including NTLM hashes and Kerberos tickets, for users who have logged on interactively or via RDP. If a domain administrator has logged into the workstation, their credentials may reside in LSASS memory. Tools like Mimikatz or ProcDump can extract these, making it the most likely location for the domain admin hash.

Why this answer

LSASS memory is the primary location where Windows caches credential material for logged-on users, including NTLM hashes and Kerberos tickets. When a domain administrator logs into a workstation, their credentials are cached in LSASS, allowing tools like Mimikatz to extract them if the operator has local admin rights and can access LSASS. This is a common privilege escalation path in Active Directory environments.

Exam trap

The trap here is assuming that domain credentials are stored in the SAM hive or NTDS.dit on a workstation; these are local and domain controller databases, respectively, and do not contain cached domain admin credentials on a member server.

87
Multi-Selecthard

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

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

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

Why this answer

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

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

88
Multi-Selecthard

An ethical hacker is evaluating a Bluetooth Low Energy (BLE) medical sensor. Which TWO of the following vulnerabilities or attack vectors are commonly associated with insecure BLE implementations in IoT devices? (Choose TWO)

Select 2 answers
A.Executing a remote buffer overflow against the Linux kernel via wireless 802.11 management frames
B.Static or hardcoded pairing PINs (e.g., '0000' or '1234') susceptible to sniffing and brute-forcing
C.Injecting malicious SQL statements into the BLE radio frequency advertising packets
D.Performing an ARP cache poisoning attack against the target device's switch port
E.Insecure GATT characteristics allowing unauthorized unauthenticated read and write operations
AnswersB, E

Hardcoded or static pairing PINs such as '0000' let an attacker capture the pairing exchange and brute-force the six-digit key offline, then impersonate the sensor or hub. This weak-credential flaw directly undermines BLE pairing confidentiality in IoT medical devices.

Why this answer

Option B is correct because many BLE IoT devices ship with fixed or hardcoded pairing PINs such as '0000' or '1234'; since these values are predictable and often transmitted or used during the pairing exchange, an attacker within radio range can brute-force them or capture them via sniffing to complete pairing and gain access. Option E is correct because the Generic Attribute Profile (GATT) defines how services and characteristics are exposed, and if the device permits read/write operations on characteristics without requiring authentication or encryption, an attacker can use tools like gatttool or nRF Connect to read sensitive medical data or write malicious values to the sensor. Option A is not correct because it describes an 802.11 Wi-Fi kernel buffer overflow, which is unrelated to the BLE radio and protocol stack.

Option C is not correct because BLE advertising packets carry structured data (flags, UUIDs, TX power, etc.) and are not interpreted as SQL by any backend, so SQL injection is not a BLE attack vector. Option D is not correct because ARP cache poisoning targets IP/Ethernet LAN switching, whereas BLE is a point-to-point wireless protocol with no ARP or switch port involvement.

89
MCQhard

During a penetration test of a Microsoft Azure environment, a tester obtains a managed identity token for a virtual machine. The token has permissions to read secrets from an Azure Key Vault. Which technique can the tester use to escalate privileges by leveraging the Key Vault access?

A.Modify the Key Vault's firewall rules to allow the tester's IP address, then access the Key Vault directly with the managed identity token.
B.Use the managed identity to add a new access policy to the Key Vault that grants the tester's own Azure AD user full permissions.
C.Use the managed identity to export the Key Vault's private keys and then forge a token for an Azure AD administrator.
D.Retrieve a secret from the Key Vault that contains credentials for a service principal with higher privileges, then authenticate as that service principal.
AnswerD

Key Vault secrets often store credentials such as service principal secrets or connection strings. If the managed identity can read secrets, the tester can extract a secret that contains credentials for a more privileged identity. Using those credentials, the tester can authenticate and escalate privileges within the Azure environment.

Why this answer

The managed identity can read secrets from Key Vault. Secrets often contain credentials for other identities. By retrieving a secret that holds higher-privileged credentials, the tester can authenticate as that identity and escalate privileges.

This is a common lateral movement technique in Azure.

Exam trap

The trap here is assuming that Key Vault access alone allows direct modification of access policies or key export, when the realistic escalation path is extracting stored credentials from secrets.

90
Multi-Selectmedium

An operator wants to perform lateral movement across an internal network using native Windows administrative protocols that do not require installing third-party agent software. Which THREE protocols or services can be leveraged? Choose three.

Select 3 answers
A.FTP (File Transfer Protocol)
B.WinRM (Windows Remote Management)
C.SNMP (Simple Network Management Protocol)
D.RDP (Remote Desktop Protocol)
E.SMB / RPC (via Service Control Manager / ADMIN$)
AnswersB, D, E

WinRM provides native remote command execution over HTTP/S via the WS-Management protocol, letting an operator run PowerShell or cmd sessions on target hosts without deploying agents. It satisfies the stem's constraint of using built-in Windows administrative protocols for lateral movement, since WinRM ships enabled on modern Windows Server systems.

Why this answer

WinRM (B) is correct because it is a native Windows remote management service built on WS-Management and SOAP over HTTP/HTTPS (ports 5985/5986), allowing an operator to execute commands remotely via tools like winrs or PowerShell remoting without installing any agent. RDP (D) is correct because it is a built-in Windows remote desktop protocol (TCP 3389) that provides interactive graphical access to a remote host, enabling lateral movement using only native OS functionality. SMB/RPC via the Service Control Manager and ADMIN$ share (E) is correct because native Windows administrative tooling such as PsExec-style techniques use SMB (TCP 445) to copy a service binary to ADMIN$ and RPC to the Service Control Manager to start it remotely, requiring no third-party agent.

FTP (A) is not correct because it is a file-transfer protocol, not a remote execution or administrative control mechanism, and SNMP (C) is not correct because it is a monitoring/management protocol for querying device state, not a native Windows remote command-execution channel.

91
MCQhard

During a CPENT engagement against a pharmaceutical manufacturer's OT environment, the tester captures Modbus/TCP traffic between a human-machine interface (HMI) and several PLCs. The tester wants to demonstrate that an attacker on the IT network could manipulate coil states on a specific PLC without authentication. Which action BEST demonstrates this risk while minimizing impact on the production line?

A.Initiate a Modbus/TCP Diagnose (0x08) request to clear counters and diagnostic registers on the PLC.
B.Send a Modbus/TCP Read Coils (0x01) request to the PLC and capture the response to prove unauthenticated access.
C.Craft a Modbus/TCP Write Single Coil (function code 0x05) packet targeting an unused coil address on the PLC.
D.Broadcast a Modbus/TCP Write Multiple Coils (0x0F) packet to all PLCs on the subnet to change every coil.
AnswerC

Modbus/TCP has no built-in authentication, and Write Single Coil (0x05) lets an attacker change a coil state directly. Targeting an unused coil address demonstrates the lack of authentication and the write capability while avoiding disruption to the production line's active control logic. This is a controlled proof of concept appropriate for a CPENT engagement where operational safety must be preserved.

Why this answer

Modbus/TCP lacks authentication, so a Write Single Coil (0x05) to an unused coil proves an attacker can manipulate coil states without credentials while avoiding disruption to active production logic. Broadcasting writes, reading only, or clearing diagnostics either endanger the line or fail to demonstrate the write capability that the scenario requires.

Exam trap

The trap here is believing that reading coil data proves write access, when the scenario specifically requires demonstrating manipulation of coil states.

92
Multi-Selectmedium

A penetration tester is performing lateral movement inside an Active Directory domain and wants to use Pass-the-Hash (PtH) attacks to authenticate to other systems without cracking user passwords. Which TWO requirements must be met for a successful Pass-the-Hash attack using NTLM hashes against Windows targets?

Select 2 answers
A.The target account's NTLM password hash must be known to the attacker
B.SMB signing must be globally disabled across the entire Active Directory forest
C.The target system must accept NTLM authentication (i.e., NTLM is not completely disabled via group policy)
D.The target user account must have Kerberos pre-authentication disabled
E.The local Windows Firewall on the domain controller must be completely disabled
AnswersA, C

NTLM authentication proves knowledge of the hash itself, not the plaintext, so possessing the target account's NTLM hash lets the attacker inject it into an authentication exchange and impersonate the user. Without that hash, no valid NTLM response can be computed, so the requirement is fundamental.

Why this answer

Option A is correct because Pass-the-Hash fundamentally requires the attacker to possess the target account's NTLM hash (the NT hash, i.e., the MD4 of the password) so it can be submitted directly in the NTLM authentication exchange without ever knowing the plaintext password. Option C is correct because PtH abuses the NTLM challenge/response protocol, so the target must still accept NTLM authentication; if NTLM is fully disabled via Group Policy (e.g., Network security: Restrict NTLM settings), the hash cannot be used and the attack fails. Option B is wrong because SMB signing does not need to be disabled forest-wide for PtH to work — signing only prevents relay/tampering, and even with signing enabled a valid NTLM hash can still authenticate (though it may hinder relay scenarios).

Option D is wrong because Kerberos pre-authentication is unrelated to NTLM-based PtH; disabling it enables AS-REP roasting, not hash-based NTLM logon. Option E is wrong because the domain controller's local firewall has no bearing on whether NTLM hash authentication succeeds against target hosts.

Exam trap

The trap is confusing PtH requirements with those of other attacks like SMB relay or Kerberos-based attacks. Candidates often think SMB signing must be disabled for PtH, but that is only for relay attacks.

93
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

94
MCQmedium

An operator has obtained a valid Kerberos Ticket Granting Ticket (TGT) in the form of a .kirbi file from a compromised domain-joined Linux host. They want to convert this .kirbi file into a .ccache file so that it can be used with Impacket tools on their attack VM. Which of the following tools is specifically designed for this conversion?

A.secretsdump.py
B.getTGT.py
C.ticketConverter.py
D.kekeo.exe
AnswerC

ticketConverter.py is a script from the Impacket suite that converts between .kirbi and .ccache formats. It is the standard tool for this purpose in AD penetration testing, allowing an operator to take a TGT extracted from Windows (often in .kirbi format) and convert it for use with Impacket tools like psexec.py or wmiexec.py that expect a .ccache credential cache.

Why this answer

When an operator has a TGT in .kirbi format and needs to use it with Impacket tools on Linux, they must convert it to .ccache format. ticketConverter.py is specifically built for this conversion, accepting a .kirbi file as input and outputting a .ccache file. This enables the use of tools like psexec.py or wmiexec.py with the -k -no-pass option and the KRB5CCNAME environment variable pointing to the converted cache.

Exam trap

The trap here is confusing the conversion tool with tools that request or dump tickets, such as getTGT.py or secretsdump.py, which serve entirely different purposes.

95
MCQhard

A security engineer discovers that an AWS IAM user has an active access key and permissions to run ec2:RunInstances, iam:PassRole, and iam:CreateRole. What privilege escalation path does this permission combination represent?

A.The user can launch a new EC2 instance and attach a privileged IAM role via iam:PassRole, then access the instance to obtain temporary security credentials.
B.The user can modify the trust policy of the root user account using iam:CreateRole.
C.The user can inject malicious code into the AWS Nitro Enclave hypervisor layer.
D.The user can escalate privileges by updating their own MFA device via the EC2 metadata service.
AnswerA

The combination of ec2:RunInstances and iam:PassRole lets the user launch an instance with an existing privileged role attached, then retrieve its temporary credentials from the instance metadata service. iam:CreateRole is unnecessary here, but PassRole is the pivot that satisfies the escalation constraint.

Why this answer

The combination of ec2:RunInstances, iam:PassRole, and iam:CreateRole allows a user to launch an EC2 instance with an attached IAM role that has higher privileges. By passing a privileged role to the instance (iam:PassRole), the user can then access the instance (e.g., via SSH or SSM) and retrieve temporary credentials from the instance metadata, effectively escalating privileges. The iam:CreateRole permission can be used to create a new role with elevated permissions if needed.

Exam trap

CPENT often tests AWS IAM privilege escalation paths; candidates may overlook the need for iam:PassRole and focus on other permissions, or confuse iam:CreateRole with iam:CreatePolicy.

How to eliminate wrong answers

Option B is wrong because iam:CreateRole allows creating new IAM roles, but it does not permit modifying the trust policy of the root user account; root account trust policies are not modifiable in that way. Option C is wrong because AWS Nitro Enclave hypervisor layer is not accessible via IAM permissions; it is a hardware-based isolation feature. Option D is wrong because updating MFA devices is done via IAM APIs, not through the EC2 metadata service, and the EC2 metadata service does not provide MFA management.

96
Multi-Selectmedium

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

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

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

Why this answer

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

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

97
Multi-Selecteasy

An auditor reviews cloud logging and monitoring configurations across an enterprise multi-cloud environment. Which TWO of the following practices represent critical security deficiencies? (Choose TWO)

Select 2 answers
A.Configuring automated alerts for unusual spikes in cloud resource creation.
B.Hardcoding cloud provider API access keys directly into public application source code repositories.
C.Using cloud-native Key Management Services with automatic key rotation enabled.
D.Disabling centralized cloud audit logging (such as AWS CloudTrail or Azure Activity Logs) to save storage costs.
E.Enforcing least-privilege access principles across all IAM service accounts.
AnswersB, D

Embedding long-lived cloud provider API keys in publicly accessible repositories exposes credentials to anyone, enabling unauthorised access and resource abuse. This directly violates the stem's requirement to identify a critical logging and monitoring security deficiency, since leaked keys bypass audit controls entirely.

Why this answer

Option B is correct because hardcoding cloud provider API access keys into public source code repositories exposes long-lived credentials to anyone who can view the repo, enabling unauthorized API calls, resource creation, and data exfiltration; secrets should instead be stored in a secrets manager or KMS-backed vault and injected at runtime. Option D is correct because disabling centralized audit logging such as AWS CloudTrail or Azure Activity Logs destroys the tamper-evident record of control-plane and data-plane activity, eliminating detection, forensic investigation, and compliance evidence, which is a critical monitoring deficiency regardless of storage cost savings. The unmarked options do not belong: A is a sound detection practice that surfaces anomalous resource creation, C is a recommended key-management practice using cloud-native KMS with automatic rotation, and E is a foundational IAM control that reduces blast radius by enforcing least privilege.

98
MCQhard

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

99
Multi-Selectmedium

An IoT penetration tester is conducting a security audit of a Linux-based smart gateway. Which THREE of the following commands or file inspection techniques can the tester use on the device (or extracted rootfs) to identify privilege escalation vectors or misconfigurations? (Choose THREE)

Select 3 answers
A.Analyzing Modbus holding registers for unauthorized register modifications
B.Checking Bluetooth GATT profile characteristics using nRF Connect
C.Reviewing sudo privileges using 'sudo -l'
D.Inspecting scheduled tasks and cron jobs in '/etc/crontab' and '/var/spool/cron/'
E.Finding files with SUID/SGID permissions using 'find / -perm -4000 2>/dev/null'
AnswersC, D, E

Running sudo -l lists the invoking user's permitted sudo commands and their restrictions. Any allowed command that can spawn a shell or edit privileged files becomes an escalation path, directly exposing misconfigured sudoers entries on the gateway.

Why this answer

Finding privilege escalation vectors involves searching for SUID/SGID binaries, inspecting sudo permissions, and checking cron jobs.

100
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

101
MCQeasy

A penetration tester reviewing a Windows machine identifies that a scheduled task executes a script with administrative privileges, but the script file has weak permissions allowing standard users to modify it. What type of privilege escalation vector does this represent?

A.Unquoted service path exploitation involving spaces in service binary names.
B.DLL Hijacking via PATH environment variable manipulation.
C.Insecure Scheduled Task Permissions / Writable Task Executable
D.Kerberoasting against domain service principal names.
AnswerC

A privileged scheduled task running a script writable by standard users lets any low-privileged account replace the script's contents, which then execute as administrator at the next trigger. The weakness is the writable executable referenced by the task, not the task's own configuration.

Why this answer

If a scheduled task runs as SYSTEM or an admin, and the underlying script or binary is writable by low-privileged users, it represents an insecure file permissions vulnerability leading to privilege escalation when the task triggers.

102
Multi-Selecthard

An ICS penetration tester is auditing a manufacturing plant floor. Which TWO of the following methodologies or tools are specifically used for identifying and fingerprinting industrial control system devices across the network? (Choose TWO)

Select 2 answers
A.Using 'Aircrack-ng' to inject Bluetooth Low Energy advertisements into nearby smart meters
B.Running 'sqlmap' against TCP port 80 to extract database schemas from the corporate ERP
C.Cracking WPA2 enterprise handshakes using Hashcat and a dictionary list
D.Using Nmap with industrial NSE scripts such as 'modbus-discover', 's7-info', and 'enip-info'
E.Employing active asset discovery tools designed for OT environments (e.g., Nozomi Guardian, Claroty, or Dragos Platform)
AnswersD, E

Nmap's industrial NSE scripts probe protocol-specific fields: modbus-discover enumerates Modbus devices, s7-info fingerprints Siemens S7 PLCs, and enip-info queries EtherNet/IP identity objects. These fingerprint ICS devices by parsing native protocol responses rather than generic TCP banners.

Why this answer

Option D is correct because Nmap's NSE script engine includes ICS-specific scripts like modbus-discover, s7-info, and enip-info that actively probe Modbus/TCP (port 502), Siemens S7comm (port 102), and EtherNet/IP (port 44818) to identify and fingerprint PLCs, RTUs, and other industrial devices. Option E is correct because dedicated OT asset-discovery platforms such as Nozomi Guardian, Claroty, and Dragos Platform passively and/or actively inventory ICS/SCADA assets, extracting vendor, model, firmware, and protocol details across industrial networks. Option A is wrong because Aircrack-ng is a Wi-Fi auditing suite and does not inject BLE advertisements into smart meters.

Option B is wrong because sqlmap targets SQL injection in web applications and has nothing to do with ICS device fingerprinting. Option C is wrong because Hashcat cracking WPA2-Enterprise handshakes is a wireless credential attack, not OT asset discovery.

Exam trap

The trap is that candidates see 'network discovery' and pick generic IT tools (Nmap without ICS scripts, sqlmap, Aircrack-ng) instead of recognizing that ICS fingerprinting requires protocol-aware scripts or dedicated OT platforms.

103
MCQeasy

An ethical hacker has obtained the NTLM password hash of a local administrator account on a Windows workstation and wants to perform lateral movement using Pass-the-Hash (PtH). Which tool allows executing a command or spawning an interactive prompt on a remote system using only the NTLM hash without knowing the plaintext password?

A.Windows Remote Desktop Connection (mstsc.exe)
B.Standard Windows net use command
C.WinRM standard client via browser
D.psexec.py from the Impacket toolkit
AnswerD

Pass-the-Hash exploits NTLM's challenge-response authentication, where the hash itself serves as the credential, so no plaintext is needed. Impacket's psexec.py injects that hash via SMB to create a service on the remote host, spawning a shell. This directly satisfies the stem's constraint: lateral movement using only the captured local administrator NTLM hash.

Why this answer

Pass-the-Hash relies on injecting or using the NTLM hash directly in place of the user's password during authentication. Impacket's psexec.py (or crackmapexec / netexec) natively supports NTLM hash authentication.

104
MCQmedium

An IoT penetration tester successfully dumps the flash memory of an embedded router. The resulting binary image contains a U-Boot bootloader environment. Which command can the tester look for or attempt to inject via the serial console to override the Linux kernel boot arguments and spawn a root shell?

A.tftp 0x80000000 kernel.bin
B.printenv mtdparts
C.setenv bootargs ${bootargs} init=/bin/sh
D.run flash_os_image
AnswerC

U-Boot's `setenv bootargs` rewrites the kernel command line passed at boot, and appending `init=/bin/sh` replaces the default init process with a shell running as root. This directly satisfies the stem's requirement to override kernel boot arguments via the serial console and spawn a root shell.

Why this answer

U-Boot uses environment variables to define boot parameters. Appending 'init=/bin/sh' or 'init=/bin/bash' to the 'bootargs' variable forces the kernel to launch a shell instead of the standard init process.

105
MCQmedium

A pentester successfully compromises a machine and obtains a valid Kerberos Ticket Granting Ticket (TGT) file (.ccache). To use this ticket for lateral movement on Linux using Impacket, which environment variable must be exported?

A.KRB_TICKET_PATH
B.KERBEROS_CACHE
C.KRB5CCNAME
D.AD_TICKET_FILE
AnswerC

KRB5CCNAME tells Kerberos client libraries which credential cache file to use. Exporting it to point at the stolen .ccache lets Impacket tools such as psexec.py authenticate with the TGT for lateral movement, satisfying the stem's requirement.

Why this answer

KRB5CCNAME is the standard MIT Kerberos environment variable that tells Kerberos-aware tools where to find the credential cache (ccache) file. Exporting it to point at the stolen .ccache lets Impacket tools like psexec.py, wmiexec.py, and smbclient.py authenticate using the ticket. This is the canonical pass-the-ticket workflow on Linux.

Exam trap

CPENT often tests whether candidates know the exact MIT Kerberos environment variable name, so memorize KRB5CCNAME rather than plausible-sounding alternatives like KERBEROS_CACHE.

How to eliminate wrong answers

Option A is wrong because KRB_TICKET_PATH is not a recognized Kerberos environment variable. Option B is wrong because KERBEROS_CACHE is not a standard variable — the real one is KRB5CCNAME. Option D is wrong because AD_TICKET_FILE is fabricated and has no meaning in MIT Kerberos or Impacket.

106
MCQhard

During an Active Directory Certificate Services (AD CS) assessment, a tester discovers that the 'ESC1' vulnerability is present. What specific misconfiguration defines ESC1 on a certificate template?

A.The template grants WriteDACL permissions to authenticated users over the Certificate Authority object.
B.The template publishes certificates to Active Directory user objects automatically.
C.The template has Manager Approval enabled and requires enterprise admin signatures.
D.The template allows enrollees to supply alternate subject names (SAN) and authorizes low-privileged users to enroll with client authentication EKUs.
AnswerD

ESC1 requires a template flag permitting the requester to specify subjectAltName plus enrolment rights for low-privileged users, combined with a client authentication EKU. That combination lets any enrolled user request a certificate impersonating a domain administrator.

Why this answer

ESC1 is defined by a certificate template that permits the enrollee to specify a Subject Alternative Name (SAN) and is enrollable by low-privileged users, while also including a client authentication EKU (e.g., Client Authentication, Smart Card Logon). This lets an attacker request a certificate with an arbitrary SAN (e.g., a Domain Admin's UPN) and authenticate as that user via PKINIT.

Exam trap

CPENT often tests the exact combination of template flags that define ESC1 — candidates pick options about CA-level permissions (ESC7) or approval settings, missing that ESC1 is specifically about enrollee-supplied SAN plus client-auth EKU plus low-priv enrollment.

How to eliminate wrong answers

Option A is wrong because WriteDACL over the CA object relates to ESC7 (CA-level permission abuse), not ESC1 template misconfiguration. Option B is wrong because auto-enrollment/publishing certificates to AD user objects is a normal template setting and does not by itself define ESC1. Option C is wrong because Manager Approval and enterprise admin signature requirements are hardening controls that would actually prevent ESC1-style abuse, not define it.

107
MCQeasy

When analyzing BloodHound output, what visual edge or relationship indicates that user 'A' can modify the membership or attributes of group 'B'?

A.AllowedToDelegate
B.ReadLAPSPassword
C.AddMember
D.CoerceTo
AnswerC

AddMember edges represent the specific access right to add principals to a group, which directly satisfies the stem's requirement for modifying group membership. BloodHound draws this edge when a user holds WriteMembers or GenericWrite over the target group, enabling privilege escalation through group population.

Why this answer

In BloodHound, the 'AddMember' edge indicates that a user or group has the ability to add members to a group. This is a direct privilege escalation path because adding a user to a high-privileged group (e.g., Domain Admins) grants that user the group's privileges. Therefore, the visual edge that indicates user 'A' can modify the membership of group 'B' is 'AddMember'.

Exam trap

The trap is confusing 'AddMember' with other edges like 'GenericAll' or 'WriteDacl', which also allow modification but are broader; the question specifically asks for the edge that indicates ability to modify membership, which is 'AddMember'.

How to eliminate wrong answers

Option A is wrong because 'AllowedToDelegate' indicates that a user or computer can delegate credentials to another service, which is related to Kerberos delegation, not group membership modification. Option B is wrong because 'ReadLAPSPassword' indicates the ability to read the local administrator password from LAPS, which is a different privilege. Option D is wrong because 'CoerceTo' is not a standard BloodHound edge; it might refer to coercion techniques, but it does not represent group membership modification.

108
Multi-Selecthard

Which THREE techniques are commonly employed by attackers to persist on a Linux system?

Select 3 answers
A.Replacing the default bash shell
B.Modifying the kernel source code
C.Appending a public key to ~/.ssh/authorized_keys
D.Adding an entry to /etc/crontab
E.Creating a custom systemd service
AnswersC, D, E

Appending a public key to ~/.ssh/authorized_keys grants the attacker passwordless SSH access under the compromised account, surviving reboots and password changes. This satisfies the persistence requirement by establishing durable remote access without needing to re-exploit the initial vulnerability, and it often evades detection since legitimate administrators use the same mechanism.

Why this answer

Option C is correct because appending an attacker-controlled public key to ~/.ssh/authorized_keys grants persistent SSH access to the compromised account without needing the user's password, a classic Linux persistence technique. Option D is correct because adding a job to /etc/crontab (or /etc/cron.d, user crontabs) causes the scheduled command to execute repeatedly, re-establishing access or running malicious code on a recurring basis. Option E is correct because creating a custom systemd service (e.g., a unit file in /etc/systemd/system enabled with systemctl enable) causes the malicious process to start automatically at boot, providing durable persistence.

Option A is not a standard persistence technique: replacing the default bash shell would break normal login behavior and is not a recognized method for maintaining covert access. Option B is not practical for persistence: modifying kernel source code requires recompiling and reinstalling the kernel, which is far too invasive and disruptive compared to typical persistence mechanisms.

109
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

110
Multi-Selecteasy

A penetration tester has compromised a Linux server and wants to exfiltrate a compressed data archive over the network securely using encrypted protocols. Which THREE standard network tools support encrypted file transfer out of the box? Choose three.

Select 3 answers
A.scp
B.curl (using HTTPS)
C.sftp
D.nc (Netcat)
E.ftp
AnswersA, B, C

SCP tunnels file transfer through SSH, encrypting the archive in transit by default without extra configuration. This satisfies the stem's requirement for encrypted exfiltration using a standard tool, since SSH provides confidentiality and integrity out of the box on the compromised Linux host.

Why this answer

Option A (scp) is correct because it runs over SSH and encrypts the entire file transfer session, making it a standard encrypted exfiltration channel out of the box. Option B (curl using HTTPS) is correct because HTTPS wraps HTTP in TLS, so uploading the archive to an HTTPS endpoint encrypts the data in transit without additional tooling. Option C (sftp) is correct because it is the SSH File Transfer Protocol, tunneling file operations through SSH for encryption by default.

Option D (nc/Netcat) is not correct because it transmits raw data with no built-in encryption, so the archive would cross the network in cleartext. Option E (ftp) is not correct because standard FTP sends credentials and data unencrypted, requiring FTPS or SFTP for any confidentiality.

111
Multi-Selectmedium

A security auditor is performing a penetration test on an operational technology (OT) network utilizing Modbus/TCP. Which THREE of the following actions can an attacker typically perform if network segmentation and firewall rules are improperly configured? (Choose THREE)

Select 3 answers
A.Write to coils and holding registers to manipulate actuator states and setpoints
B.Send diagnostic or reset commands (e.g., Function Code 0x08) to cause controller reboots
C.Automatically decrypt Active Directory Kerberos ticket-granting tickets stored on the PLC
D.Read holding registers and input registers to harvest process variables and sensor data
E.Execute cross-site scripting (XSS) attacks against the PLC's internal browser rendering engine
AnswersA, B, D

Modbus/TCP lacks authentication, so an attacker reaching the broker can issue write function codes to coils and holding registers, altering actuator states and setpoints directly. This satisfies the stem's condition of improper segmentation and firewall rules.

Why this answer

Options A, B, and D are correct because Modbus/TCP is an unauthenticated industrial protocol whose function codes allow these operations once an attacker reaches the PLC. A: Function codes such as 0x05 (Write Single Coil), 0x06 (Write Single Register), 0x0F (Write Multiple Coils), and 0x10 (Write Multiple Registers) let an attacker change actuator states and setpoints, directly manipulating physical processes. B: Diagnostic function code 0x08 (Diagnostics) includes sub-functions like 0x01 (Restart Communications Option) and 0x04 (Force Listen Only Mode), and vendor-specific reset commands can force controller reboots or halt communications.

D: Function codes 0x03 (Read Holding Registers) and 0x04 (Read Input Registers) allow unauthenticated reading of process variables and sensor data, enabling reconnaissance and process-value harvesting. Option C is wrong because Modbus/TCP PLCs do not store or process Active Directory Kerberos ticket-granting tickets, and Kerberos TGTs are encrypted with the KDC's secret key, not something an OT attacker decrypts via Modbus. Option E is wrong because Modbus/TCP PLCs do not run a browser rendering engine, so cross-site scripting is not applicable to them.

Exam trap

CPENT often tests the misconception that OT/SCADA protocols have built-in security controls like authentication or encryption — candidates who assume Modbus/TCP behaves like a modern IT protocol will miss that read/write/diagnostic abuse is trivially possible once network segmentation fails.

112
MCQeasy

Which post-exploitation action is considered 'Living off the Land' (LotL)?

A.Using PowerShell to download and execute a script in memory.
B.Installing a rootkit driver.
C.Deploying a custom C++ backdoor.
D.Using a known Metasploit payload.
AnswerA

Living off the Land means abusing binaries and tooling already present on the host, avoiding dropped malware. PowerShell is native to Windows, and executing a script in memory via download-and-execute leaves no file on disk, matching the LotL definition.

Why this answer

LotL involves using pre-installed system tools (like PowerShell or WMI) to conduct malicious activities, minimizing the need for custom malware.

113
Multi-Selecteasy

Which TWO of the following Active Directory enumeration methods or tools can be used by an unprivileged domain user to identify accounts configured with 'Do not require Kerberos preauthentication' (AS-REP roasting candidates)? (Choose TWO)

Select 2 answers
A.Windows Disk Cleanup utility (cleanmgr.exe)
B.Mimikatz (lsadump::dcsync)
C.Rubeus (rubeus.exe asreproast)
D.Local Security Policy snap-in (secpol.msc)
E.PowerView (Get-DomainUser -PreauthNotRequired)
AnswersC, E

Rubeus with the `asreproast` action queries LDAP for user objects whose userAccountControl attribute has the DONT_REQ_PREAUTH bit (0x400000) set, then requests AS-REPs for them. It runs under the invoking unprivileged domain user's own token, satisfying the stem's no-elevated-rights constraint.

Why this answer

Option C is correct because Rubeus is a dedicated Kerberos attack toolkit, and its `asreproast` command specifically enumerates and extracts AS-REP hashes from accounts whose UserAccountControl flag does not have Kerberos preauthentication required (UF_DONT_REQUIRE_PREAUTH, 0x400000), which an unprivileged domain user can perform. Option E is correct because PowerView's `Get-DomainUser -PreauthNotRequired` queries Active Directory via LDAP for user objects with the DONT_REQUIRE_PREAUTH flag set, directly identifying AS-REP roasting candidates without elevated privileges. Option A is wrong because cleanmgr.exe is a disk cleanup utility with no AD enumeration capability.

Option B is wrong because Mimikatz's `lsadump::dcsync` requires DCSync rights (typically Domain Admin or Replicating Directory Changes permissions), so it is not usable by an unprivileged domain user. Option D is wrong because secpol.msc edits local security policy on a single host and does not enumerate domain accounts.

114
MCQmedium

A penetration tester is assessing a Microsoft 365 tenant and discovers that a global administrator account has no multi-factor authentication (MFA) enforcement. The tester wants to exploit this to gain persistent access to the tenant's email and files. Which Azure AD feature, if misconfigured, would allow the attacker to maintain access even after the initial password is changed?

A.Azure AD application with a client secret that has a long expiration
B.Azure AD password protection with a custom banned password list
C.Azure AD Privileged Identity Management (PIM) with just-in-time access
D.Azure AD Conditional Access policy that blocks legacy authentication
AnswerA

An Azure AD application with a client secret can be used to authenticate as a service principal. If an attacker compromises a global admin, they can create or modify an application and add a long-lived secret. This secret remains valid even after the user's password is changed, providing persistent access to resources the application is granted.

Why this answer

A global administrator can create or modify an Azure AD application and add a client secret. This secret acts as a credential for the service principal and remains valid until it expires or is revoked, regardless of the user's password changes. Attackers often use this technique to maintain persistence in Microsoft 365 environments, as it allows continued access to mail, files, and other resources granted to the application.

Exam trap

The trap here is assuming that password changes or MFA enforcement automatically revoke all access, overlooking that application secrets and service principals provide an independent authentication path.

115
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

116
MCQeasy

A security researcher is analyzing an embedded Linux firmware image for potential backdoors. The researcher wants to quickly scan the binary for compressed file systems, bootloader signatures, and kernel versions without extracting it. Which command-line tool is best suited for this initial identification task?

A.Wireshark
B.Binwalk
C.Metasploit Framework
D.Aircrack-ng
AnswerB

Binwalk signatures compressed file systems, bootloaders, kernels and other embedded structures directly within the raw firmware image, listing offsets without extraction. That satisfies the quick identification constraint, unlike hexdump or strings, which reveal no structured layout.

Why this answer

Binwalk is the industry-standard tool for searching binary images for embedded file systems and executable code signatures.

117
MCQeasy

During a wireless penetration test of an industrial plant, an auditor wants to discover all active Wi-Fi access points and associated IoT wireless clients operating in the 2.4 GHz band. Which wireless auditing tool should the auditor use to monitor and dump 802.11 management frames?

A.Hydra
B.Airodump-ng
C.Sqlmap
D.Nbtscan
AnswerB

Airodump-ng passively captures 802.11 management frames, including beacons and probe requests, revealing access points and associated clients across the 2.4 GHz band. This satisfies the auditor's need to monitor and dump management frames during the wireless survey.

Why this answer

Airodump-ng is the premier tool included in the Aircrack-ng suite for capturing 802.11 wireless frames in monitor mode.

118
Multi-Selectmedium

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

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

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

Why this answer

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

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

Exam trap

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

119
MCQhard

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

120
Multi-Selecthard

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

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

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

Why this answer

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

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

121
MCQeasy

A penetration tester is assessing a Microsoft Azure environment and finds that a virtual machine has a system-assigned managed identity. The tester has obtained a shell on the VM and wants to use the managed identity to access an Azure Key Vault. Which endpoint should the tester query to obtain an access token for the Key Vault?

A.http://169.254.169.254/metadata/identity/oauth2/token
B.https://login.microsoftonline.com/<tenant-id>/oauth2/token
C.http://localhost:8080/identity/token
D.http://169.254.169.254/latest/meta-data/iam/security-credentials/
AnswerA

Azure VMs expose the Instance Metadata Service at 169.254.169.254. The managed identity token endpoint is /metadata/identity/oauth2/token, which returns an OAuth2 token for the specified resource. By requesting a token for the Key Vault resource, the tester can authenticate to Key Vault using that token.

Why this answer

Azure managed identities obtain tokens from the Instance Metadata Service (IMDS) at 169.254.169.254. The correct endpoint is http://169.254.169.254/metadata/identity/oauth2/token, where you specify the resource parameter as the target service, such as https://vault.azure.net. The token returned can then be used to authenticate to Key Vault.

Exam trap

The trap here is confusing Azure's IMDS endpoint with AWS's, or assuming you need to go through Azure AD's login endpoint when the managed identity token service is locally accessible.

122
MCQhard

An operator has compromised a Linux server and wants to establish persistence that survives kernel reboots and operates stealthily by hooking system calls or modifying kernel memory. Which persistence mechanism matches this description?

A.Compiling and loading a malicious Loadable Kernel Module (LKM) rootkit.
B.Modifying the SSH authorized_keys file for the root user.
C.Creating a systemd service unit file that executes a reverse shell.
D.Placing a persistent cron job in /etc/cron.d/
AnswerA

A malicious LKM loads into kernel space, surviving reboots once configured to load at boot, and hooks system calls or patches kernel memory to hide processes, files and connections. This matches the requirement for reboot-surviving, stealthy kernel-level persistence on Linux.

Why this answer

Loadable Kernel Modules (LKMs) allow attackers to run code in kernel space, hide processes, files, and network connections, and persist across reboots if loaded at boot time.

123
MCQhard

A security researcher is performing dynamic analysis of an IoT firmware binary inside an emulated MIPS environment using QEMU-user mode. When executing the binary, the application crashes with a segmentation fault due to missing dynamic library dependencies in the emulated root directory. Which environment variable must be exported to instruct QEMU where to search for the target root filesystem's shared libraries?

A.QEMU_ROOTFS
B.LD_LIBRARY_PATH
C.QEMU_LD_PREFIX
D.PATH
AnswerC

QEMU_LD_PREFIX points QEMU-user at the emulated root filesystem, so the dynamic linker resolves shared libraries from that directory tree instead of the host. Exporting it satisfies the constraint of supplying missing library dependencies, preventing the segmentation fault during MIPS binary execution.

Why this answer

When running binaries under QEMU user-mode emulation, the QEMU_LD_PREFIX environment variable specifies the path to the root directory containing the target architecture's libraries.

124
MCQmedium

During a hardware penetration test of an IoT device, the tester identifies a 4-pin header on the PCB. Using a multimeter, the tester measures ground on pin 1, 3.3V on pin 4, and observes fluctuating voltages on pins 2 and 3 during boot. What hardware interface do pins 2 and 3 most likely represent?

A.UART (Universal Asynchronous Receiver-Transmitter)
B.JTAG (Joint Test Action Group)
C.I2C (Inter-Integrated Circuit)
D.SPI (Serial Peripheral Interface)
AnswerA

UART transmits asynchronously over two data lines: one for transmit, one for receive, with no shared clock. Ground and 3.3V on the outer pins supply reference and power, while the fluctuating middle pins carry serial data during boot, matching UART's idle-high signalling.

Why this answer

UART (Universal Asynchronous Receiver-Transmitter) interfaces typically consist of 4 pins: VCC, GND, TX, and RX, where TX and RX show fluctuating voltage activity during transmission upon boot.

125
MCQmedium

A security analyst is performing a penetration test against a building automation system utilizing BACnet over IP. To discover BACnet devices on the local subnet without prior knowledge of their IP addresses, which specific network packet type and destination should the analyst send?

A.A UDP broadcast packet containing a BACnet Who-Is request sent to port 47808
B.An ICMP ping sweep to identify all live IP addresses on the local network segment
C.An SNMP GETBULK request using the default private community string
D.A TCP SYN scan directed at port 47808 across the entire subnet
AnswerA

BACnet Who-Is is a broadcast datagram sent to UDP port 47808; every device on the subnet replies with an I-Am containing its device instance and address. This discovers devices without prior IP knowledge, unlike unicast or directed queries.

Why this answer

BACnet's Who-Is service is a broadcast request used for device discovery; it is sent as a UDP datagram to the BACnet/IP broadcast address on port 47808 (0xBAC0). Any BACnet device on the subnet responds with an I-Am message containing its device instance and address, allowing discovery without prior IP knowledge.

Exam trap

The trap is assuming BACnet uses TCP or that a generic ICMP/SNMP sweep will find devices; candidates must remember BACnet/IP is UDP-based on port 47808 and uses the Who-Is/I-Am broadcast discovery mechanism.

How to eliminate wrong answers

Option B is wrong because an ICMP ping sweep only identifies live IPs and does not speak BACnet, so it cannot enumerate BACnet device instances or properties. Option C is wrong because SNMP GETBULK with a community string targets SNMP agents (UDP 161), not BACnet devices, and BACnet does not use SNMP MIBs. Option D is wrong because BACnet/IP uses UDP, not TCP; a TCP SYN scan to port 47808 will not elicit BACnet responses and will miss devices entirely.

126
Multi-Selecteasy

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

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

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

Why this answer

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

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

127
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

128
MCQmedium

During a Red Team assessment against an enterprise network, an operator wants to execute a Silver Ticket attack against a specific service (e.g., CIFS) on a target server. What is a key operational advantage of a Silver Ticket compared to a Golden Ticket?

A.It can only be detected by physically inspecting the NTDS.dit file on the Domain Controller
B.It does not require interaction with the Domain Controller to generate and does not alert the KDC for a TGT request
C.It grants full Domain Administrator privileges across all domain controllers
D.It automatically updates the KRBTGT password to maintain persistence
AnswerB

A Silver Ticket is forged with the service account's NTLM hash and encrypted directly with that key, so the KDC is never contacted. This satisfies the scenario's advantage: no TGT request reaches the Domain Controller, avoiding that associated detection.

Why this answer

A Silver Ticket is forged for a specific service using the NTLM hash of that specific service account (or computer account), meaning it does not require interaction with the Domain Controller's KDC for creation, and it does not generate a TGT request that might alert domain-level monitoring.

129
MCQmedium

An operator has compromised an Active Directory domain and wants to extract domain user password hashes without directly dumping LSASS memory on the Domain Controller. Which technique allows this from a machine with Domain Admin privileges?

A.Kerberoasting against computer accounts.
B.Performing an AS-REP Roasting attack on users with Kerberos pre-authentication disabled.
C.Running Responder on the local subnet to capture NTLMv2 hashes.
D.Executing a DCSync attack using tools like Mimikatz to request replication data from a Domain Controller.
AnswerD

DCSync abuses the Directory Replication Service Remote Protocol, impersonating a Domain Controller to request password hashes via replication. This extracts credentials over the network without touching LSASS on the Domain Controller, satisfying the constraint of avoiding direct memory dumping.

Why this answer

DCSync is an attack technique that abuses the Directory Replication Service (DRS) remote protocol to simulate a domain controller and request password data (hashes) for user accounts from another domain controller.

130
MCQeasy

An administrator needs to secure communication between microservices running across different AWS Virtual Private Clouds (VPCs). Which native AWS networking feature provides private connectivity without exposing traffic to the public internet?

A.Amazon CloudFront origin access control (OAC).
B.AWS VPC Endpoints powered by AWS PrivateLink.
C.AWS Web Application Firewall (WAF) rule groups.
D.AWS Identity and Access Management resource-based policies.
AnswerB

AWS PrivateLink creates unidirectional elastic network interfaces in each VPC, letting service consumers reach providers over private IP addresses within the AWS backbone. This satisfies the stem's requirement for private connectivity across separate VPCs without internet exposure, unlike VPC peering, which demands non-overlapping CIDRs and transitive routing.

Why this answer

AWS VPC Endpoints (powered by AWS PrivateLink) allow private connections between VPCs and AWS services or other VPCs without internet gateways.

131
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

132
MCQhard

An attacker has retrieved the KRBTGT account hash and wants to forge a Golden Ticket. Which tool from the Impacket suite is specifically designed to perform this forgery offline and inject the ticket?

A.getTGT.py
B.goldenPac.py
C.ticketer.py
D.raiseChild.py
AnswerC

ticketer.py forges Kerberos tickets offline from a supplied key or hash, including Golden Tickets built from the KRBTGT hash, then writes the ticket to a ccache file for injection. It requires no live domain controller interaction.

Why this answer

ticketer.py from Impacket forges Kerberos tickets offline, including Golden Tickets (using the KRBTGT hash) and Silver Tickets (using a service account hash). It accepts the domain SID, krbtgt NTLM hash, and target username to produce a valid .ccache that can be injected via KRB5CCNAME. This is the standard tool for offline Golden Ticket creation.

Exam trap

CPENT often tests whether candidates distinguish tools that request tickets with credentials (getTGT.py) from tools that forge tickets offline with hashes (ticketer.py), so match 'forge Golden Ticket offline' to ticketer.py.

How to eliminate wrong answers

Option A is wrong because getTGT.py requests a TGT from the KDC using valid credentials — it does not forge tickets offline from a hash. Option B is wrong because goldenPac.py is a wrapper that automates Golden Ticket creation and PsExec-style execution but relies on ticketer.py internally; it is not the core forgery tool. Option D is wrong because raiseChild.py is used to escalate from a child domain to a parent domain using a Golden Ticket, not to forge the ticket itself.

133
MCQeasy

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

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

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

Why this answer

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

134
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

135
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

How to eliminate wrong answers

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

136
Multi-Selecteasy

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

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

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

Why this answer

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

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

Exam trap

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

137
MCQhard

An operator is performing data exfiltration from a highly secure network environment where all outbound TCP and UDP ports except 53 are blocked by a strict egress firewall. Furthermore, DNS queries are monitored and restricted to the internal corporate DNS servers. Which advanced exfiltration technique can the operator use to bypass this restriction?

A.Use standard FTP data channels over ephemeral ports to push archives to an external staging server
B.Tunnel data through DNS queries using TXT records sent to a domain controlled by the attacker
C.Establish an ICMP reverse shell by embedding data inside the payload of ICMP echo request packets
D.Establish an HTTPS connection to an external IP address using port 443
AnswerB

Tunnelling data inside DNS queries exploits the sole permitted egress channel: port 53. Because the firewall allows only DNS to internal resolvers, encoding stolen data in TXT record requests to an attacker-controlled authoritative domain lets those resolvers recursively forward queries outward, returning responses through the same permitted path.

Why this answer

DNS tunneling encapsulates arbitrary data within DNS query and response types (such as TXT, NULL, or CNAME records) sent to an authoritative nameserver controlled by the attacker, effectively bypassing egress filtering on port 53.

138
MCQhard

A pentester wants to execute a Shadow Credentials attack (Key Credential Link abuse) against a high-value user account in Active Directory. What permission on the target user object is required to successfully perform this attack?

A.ReadLAPSPassword extended right
B.WriteProperty, GenericAll, or GenericWrite over the msDS-KeyCredentialLink attribute / target object
C.DS-Replication-Get-Changes-All domain right
D.SeEnableDelegationPrivilege on the domain controller
AnswerB

Shadow Credentials abuse requires the ability to write the msDS-KeyCredentialLink attribute on the target account. WriteProperty scoped to that attribute, GenericAll, or GenericWrite all grant this, letting the attacker inject a rogue key credential and later authenticate via PKINIT as the victim.

Why this answer

Shadow Credentials abuse requires write access to the target object's msDS-KeyCredentialLink attribute. Permissions such as GenericAll, GenericWrite, or the specific WriteProperty right over that attribute allow an attacker to inject a Key Credential, which can then be used with PKINIT to obtain a TGT for the target account without knowing its password.

Exam trap

CPENT often tests the specific attribute and permission for Shadow Credentials — candidates confuse it with DCSync rights or LAPS read rights, missing that it requires write access to msDS-KeyCredentialLink.

How to eliminate wrong answers

Option A is wrong because ReadLAPSPassword is a read-only extended right for LAPS passwords and does not permit writing to msDS-KeyCredentialLink. Option C is wrong because DS-Replication-Get-Changes-All enables DCSync, a different attack that replicates secrets rather than injecting key credentials. Option D is wrong because SeEnableDelegationPrivilege allows configuring Kerberos delegation, which is unrelated to the Key Credential Link attribute abuse used in Shadow Credentials.

139
MCQeasy

An AWS penetration tester uncovers an IAM policy attached to a user that contains the action 'iam:PutUserPolicy' with a resource of '*'. What privilege escalation vector does this enable?

A.The user can modify the AWS billing dashboard and delete all EC2 instances.
B.The user can decrypt all KMS keys in the AWS region.
C.The user can delete the AWS account root user credentials.
D.The user can attach an inline policy to their own IAM user granting full administrative access (AdministratorAccess).
AnswerD

The `iam:PutUserPolicy` action with a `*` resource lets the user write an inline policy directly onto their own IAM identity. Because inline policies are evaluated immediately and can grant any action, the tester can inject `AdministratorAccess`-equivalent permissions, escalating from limited rights to full account control without needing existing admin privileges.

Why this answer

The IAM action iam:PutUserPolicy allows a principal to create or replace an inline policy on any IAM user (when Resource is '*'). Because the policy can be attached to the attacker's own user, they can inject a policy granting themselves AdministratorAccess or any other privileged permissions, achieving full privilege escalation. This is a classic self-escalation path documented by Rhino Security Labs and others.

Exam trap

CPENT often tests the misconception that iam:PutUserPolicy only affects the target user's permissions in a limited way, when in fact it allows arbitrary policy injection leading to full privilege escalation.

How to eliminate wrong answers

Option A is wrong because iam:PutUserPolicy has no effect on billing dashboards or EC2 instances; those require services like aws-portal:ModifyBilling or ec2:TerminateInstances. Option B is wrong because KMS decryption requires kms:Decrypt and access to the key policy, not IAM policy modification. Option C is wrong because the AWS account root user credentials cannot be deleted via IAM policies; root account actions require root login and are not governed by IAM user policies.

140
MCQhard

A penetration tester is evaluating a Kubernetes cluster utilizing Role-Based Access Control (RBAC) and notes that a custom role has the create verb on pods/exec resources. What security risk does this specific permission entail?

A.The user can extract the master node's etcd database encryption keys.
B.The user can modify the cluster's underlying cloud provider IAM policies.
C.A user with this permission can execute arbitrary commands inside any running pod in the cluster, leading to potential node or cluster compromise.
D.The user can bypass network policies by altering iptables rules on the host node.
AnswerC

The create verb on pods/exec authorises spawning exec subresources, letting the holder run arbitrary commands inside any pod in the cluster, which enables credential theft, service account token abuse and potential node or cluster compromise.

Why this answer

The create verb on pods/exec in Kubernetes RBAC allows a user to invoke the exec subresource, which runs arbitrary commands inside a running container. This is effectively remote code execution within the pod's namespace, and if the pod has a mounted service account token or hostPath volume, the attacker can pivot to the node or cluster.

Exam trap

CPENT often tests the misconception that pods/exec is a benign debugging permission — candidates underestimate that it grants arbitrary code execution and can lead to full cluster compromise.

How to eliminate wrong answers

Option A is wrong because etcd encryption keys are stored on the control plane node's filesystem and are not accessible via the pods/exec subresource — extracting them requires node-level access or a control plane compromise. Option B is wrong because cloud provider IAM policies are managed outside Kubernetes (via AWS IAM, Azure RBAC, etc.) and cannot be modified through a pod exec permission. Option D is wrong because iptables rules on the host node are managed by kube-proxy and CNI plugins; pods/exec does not grant host-level network manipulation unless the pod is privileged and has hostNetwork access.

141
MCQhard

You have compromised a Linux server and want to exfiltrate sensitive data to an external server. The network egress filtering only allows DNS traffic (UDP port 53) to a specific internal DNS resolver. Which technique would best allow you to exfiltrate data over DNS while evading detection?

A.Use SSH tunneling to forward data through the internal DNS resolver.
B.Use dnscat2 with a custom domain and encode data in DNS queries.
C.Use HTTP GET requests to a web server with data encoded in the URL.
D.Use ICMP tunneling with ptunnel to encapsulate data in ping packets.
AnswerB

dnscat2 is a tool designed for DNS tunneling, allowing data exfiltration over DNS queries and responses. It encodes data in subdomains or TXT records, and since DNS traffic is allowed, it can bypass egress filtering. Using a custom domain gives the attacker control over the authoritative DNS server, enabling reliable data transfer. This method is stealthy because DNS is often less monitored.

Why this answer

DNS tunneling is a reliable method for data exfiltration when only DNS traffic is allowed. dnscat2 establishes a command-and-control channel over DNS by encoding data in DNS queries and responses. It can use various record types and is designed to evade detection by blending with legitimate DNS traffic. Since the scenario permits DNS to a specific resolver, the attacker can configure dnscat2 to use that resolver, ensuring the traffic is not blocked.

Exam trap

The trap here is assuming that any tunneling protocol will work regardless of egress filtering; only DNS-based tunneling will succeed because other protocols are blocked.

142
MCQmedium

During an assessment of a Google Cloud Platform project, a penetration tester finds that a Cloud Storage bucket has the allUsers principal granted the Storage Object Viewer role. What security flaw does this represent, and how should it be fixed?

A.The bucket is vulnerable to GCP IAM privilege escalation via service account impersonation.
B.Google Cloud Armor automatically deletes the bucket objects.
C.The bucket is public; the allUsers or allAuthenticatedUsers IAM binding must be removed to secure the data.
D.Compute Engine instances can no longer mount the bucket as a persistent disk.
AnswerC

Granting allUsers the Storage Object Viewer role binds the bucket to the public internet, letting anyone read its objects without authentication. Removing that IAM binding, along with any allAuthenticatedUsers entry, restores private access; this directly addresses the anonymous exposure described in the stem.

Why this answer

Granting allUsers IAM role bindings on a Cloud Storage bucket makes its objects publicly readable over the internet. Remediation requires removing the allUsers binding.

143
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

144
MCQmedium

You are performing a Linux privilege escalation assessment and identify a binary with the SUID bit set that executes system commands using relative paths. How do you exploit this?

A.Create a malicious script named after the command and prepend its directory to the PATH.
B.Modify /etc/ld.so.preload to inject a malicious library.
C.Exploit a buffer overflow in the binary using a NOP sled.
D.Use the --inject flag on the binary to force command execution.
E.null
AnswerA

Because the SUID binary resolves commands via relative paths, it inherits your PATH. Prepending a directory containing a malicious script named after the invoked command causes the root-privileged binary to execute your code, yielding escalation without needing to modify the binary itself.

Why this answer

When a SUID binary executes system commands using relative paths (e.g., calling 'cat' or 'ls' without a full path), it inherits the caller's PATH environment variable. An attacker can create a malicious executable with the same name as the called command in a writable directory, prepend that directory to PATH, and the SUID binary will execute the malicious script with elevated (root) privileges. This is a classic PATH hijacking privilege escalation.

Exam trap

CPENT often tests the distinction between privilege escalation vectors — candidates confuse PATH hijacking with library injection or buffer overflow, but the key indicator here is 'relative paths' in a SUID binary, which specifically points to PATH manipulation.

How to eliminate wrong answers

Option B is wrong because modifying /etc/ld.so.preload requires root privileges already — it is a persistence/rootkit technique, not a privilege escalation vector from an unprivileged account. Option C is wrong because a buffer overflow requires a specific memory corruption vulnerability in the binary; the question describes a relative-path command execution flaw, not a memory safety bug, and a NOP sled alone does not exploit anything. Option D is wrong because there is no generic '--inject' flag on Linux binaries; this is a fabricated option that does not correspond to any real privilege escalation technique.

145
MCQeasy

An Azure penetration tester identifies a Virtual Machine with public IP access that has an incoming Network Security Group (NSG) rule allowing TCP port 3389 (RDP) from any source ('Any' or 'Internet'). What is the recommended remediation?

A.Restrict the NSG rule source IP to trusted administrative networks or implement Azure Bastion for secure management.
B.Disable the Azure Key Vault service across the subscription.
C.Enable Azure Active Directory Pass-Through Authentication on the VM guest OS.
D.Attach an AWS IAM instance profile to the Azure Virtual Machine.
AnswerA

Exposing RDP to Any or Internet invites brute-force and exploitation attempts. Restricting the NSG source to trusted administrative networks, or routing management through Azure Bastion, removes public exposure while preserving administrative access to the virtual machine.

Why this answer

The NSG rule exposes RDP (TCP 3389) to the entire internet, which is the primary attack surface for brute-force, BlueKeep-style exploits, and ransomware initial access. The correct remediation is to narrow the source to trusted administrative IP ranges or, better, remove the public RDP exposure entirely and use Azure Bastion, which provides browser-based RDP/SSH over TLS through the Azure portal without a public IP on the VM. This directly addresses the misconfiguration while preserving administrative access.

Exam trap

CPENT often tests whether candidates confuse identity-layer controls (AAD, Key Vault, IAM) with network-layer controls, so any answer that doesn't touch the NSG rule or RDP exposure is a distractor.

How to eliminate wrong answers

Option B is wrong because Azure Key Vault is a secrets-management service unrelated to network exposure of RDP; disabling it would break secret/certificate operations without closing the port. Option C is wrong because AAD Pass-Through Authentication is an identity-synchronization method for hybrid tenants and does nothing to restrict inbound TCP 3389 from the internet. Option D is wrong because AWS IAM instance profiles are an AWS construct that has no meaning in Azure — Azure uses Managed Identities and RBAC, and neither would block the NSG rule.

146
MCQeasy

A penetration tester has compromised a Linux server and wants to verify if the kernel is vulnerable to a known local privilege escalation exploit (such as Dirty COW). Which command should the tester run to check the exact Linux kernel version?

A.uname -r
B.whoami
C.env
D.cat /etc/issue
AnswerA

uname -r prints the running kernel's release string, exposing the exact version needed to match against Dirty COW's affected ranges. This satisfies the requirement to confirm the precise kernel build before selecting a privilege escalation exploit.

Why this answer

The command uname -r displays the specific kernel release version, which is critical for identifying applicable kernel-level vulnerabilities.

147
Multi-Selectmedium

An operator has compromised a Windows domain and wants to maintain persistence via Active Directory mechanisms. Which TWO techniques represent valid AD-based persistence methods? Choose two.

Select 2 answers
A.Disabling Windows Defender real-time monitoring via PowerShell.
B.Adding a controlled user account to the Domain Admins or Enterprise Admins group.
C.Configuring a local Windows scheduled task to run netsh.
D.Flushing the local ARP cache on the workstation.
E.Injecting a malicious SID into the sIDHistory attribute of a controlled user account.
AnswersB, E

Adding a controlled account to Domain Admins or Enterprise Admins grants it persistent, highly privileged domain-wide access through AD group membership, which survives reboots and credential changes. This abuses native directory authorisation rather than host-level mechanisms, matching the AD-based persistence requirement.

Why this answer

Option B is correct because adding a controlled account to Domain Admins or Enterprise Admins grants it persistent, high-privilege domain-wide access that survives reboots and is a classic AD persistence technique (e.g., via net group "Domain Admins" user /add /domain or Add-ADGroupMember). Option E is correct because injecting a privileged SID (such as the Domain Admins or Enterprise Admins SID) into the sIDHistory attribute of a controlled account lets that account inherit the privileges of the injected SID during token creation, providing stealthy persistence that is not visible through normal group membership. Option A is not an AD persistence mechanism; disabling Defender real-time monitoring is a host-level defense evasion action that does not survive as a directory-based persistence foothold.

Option C is a local scheduled task, which is host persistence rather than an Active Directory mechanism. Option D is merely a local ARP cache flush, a network troubleshooting action with no persistence value.

148
MCQeasy

An auditor identifies that an organization's Azure storage account allows anonymous public read access to containers and blobs. What configuration change must be applied to remediate this finding?

A.Rotate the primary storage account access key every 24 hours.
B.Enable Azure Defender for Storage and configure automatic threat remediation.
C.Set the 'Allow Blob public access' property to Disabled on the storage account.
D.Apply an Azure Firewall rule blocking port 443 inbound to the storage account.
AnswerC

Disabling the 'Allow Blob public access' property at the storage account level blocks all anonymous read requests, overriding any container-level public access settings. This directly satisfies the auditor's finding by removing anonymous access to containers and blobs, ensuring authentication is required for every request.

Why this answer

Disabling public blob access on the storage account blocks anonymous requests globally.

149
MCQmedium

During a lateral movement phase, a penetration tester needs to move from a compromised Windows workstation to a domain controller. Traditional SMB-based lateral movement using PsExec is blocked by host-based firewalls, but WinRM (Windows Remote Management) port 5985 is open. Which built-in command-line utility should the tester use to establish an interactive remote session?

A.rpcclient -U Administrator TargetServer
B.nbtstat -A TargetServer -winrm
C.mstv -target:TargetServer -port:5985
D.winrs -r:TargetServer -u:Administrator -p:Password cmd.exe
AnswerD

Winrs uses the WS-Management protocol over HTTP on port 5985, which the stem confirms is open, so it bypasses the blocked SMB ports that PsExec requires. It establishes an interactive remote shell on the domain controller without needing to upload a service binary, satisfying the firewall constraint directly.

Why this answer

The winrs utility is the built-in Windows Remote Shell client that uses WinRM (Windows Remote Management) over HTTP (port 5985) or HTTPS (port 5986). It allows an attacker with valid credentials to execute commands interactively on a remote system when SMB is blocked but WinRM is open. The syntax '-r:TargetServer' specifies the remote host, and the command to run (e.g., cmd.exe) is provided at the end.

Exam trap

The trap is selecting a Linux-based tool (rpcclient) or a non-existent utility (mstv) when the question specifies a built-in Windows command-line utility for WinRM. Candidates must know that winrs is the native client for WinRM.

How to eliminate wrong answers

Option A is wrong because rpcclient is a Linux tool for enumerating RPC endpoints and does not provide an interactive remote shell via WinRM. Option B is wrong because nbtstat is a NetBIOS diagnostic tool and has no '-winrm' option; it cannot establish remote sessions. Option C is wrong because 'mstv' is not a real Windows utility; it appears to be a fabricated command.

150
Multi-Selectmedium

Which TWO Active Directory mechanisms or configurations are commonly targeted during lateral movement to bypass traditional perimeter security and leverage built-in domain trust relationships?

Select 2 answers
A.Local Administrator Password Solution (LAPS)
B.Kerberos Constrained and Unconstrained Delegation
C.NTLMv2 hash signing enforcement
D.Account lockout threshold policies
E.External and Forest Trust relationships (with or without SID filtering)
AnswersB, E

Delegation lets a service impersonate users to downstream resources. Unconstrained delegation caches TGTs in memory, harvestable via credential theft, while constrained delegation can be abused through protocol transition to reach services the attacker otherwise could not, enabling lateral movement across the domain.

Why this answer

Option B is correct because Kerberos delegation — both unconstrained (where a service can impersonate users to any service) and constrained (where it is limited to specified services) — is a classic lateral-movement and privilege-escalation target: an attacker who compromises a delegation-enabled service account can obtain forwardable TGTs or service tickets and impersonate high-privileged users across the domain without touching perimeter defenses. Option E is correct because external and forest trust relationships extend authentication across domain/forest boundaries, and when SID filtering is disabled or trusts are misconfigured, attackers can abuse SIDHistory injection or cross-trust Kerberos referrals to move laterally into trusted domains while appearing as legitimate internal authentication traffic. Option A (LAPS) is not a lateral-movement bypass mechanism; it is a defensive control that randomizes local administrator passwords to prevent pass-the-hash reuse.

Option C (NTLMv2 hash signing enforcement) is a hardening measure that restricts NTLM relay/credential reuse rather than a trust-abuse vector. Option D (account lockout threshold policies) is a defensive policy that limits brute-force attempts and does not itself enable lateral movement or trust abuse.

Exam trap

CPENT often tests whether candidates can separate offensive lateral-movement mechanisms (delegation, trusts) from defensive hardening controls (LAPS, lockout policies, signing), so always ask 'does this help the attacker move, or stop them?'

Page 1

Page 2 of 4

Page 3

All pages