Courseiva

EC-Council Certified Penetration Testing Professional (CPENT) (CPENT) (CPENT) — Questions 175

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

Page 1 of 4

Page 2
1
Multi-Selectmedium

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

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

SPI flash chips store bootloaders, kernels, and file systems, and can be read using clip-on programmers.

Why this answer

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

2
MCQeasy

An AWS administrator wants to ensure that all data stored in newly created Amazon S3 buckets is automatically encrypted at rest using server-side encryption with customer-managed keys (SSE-KMS). What is the most scalable way to enforce this?

A.Manually run an AWS CLI script daily to apply KMS encryption to every individual object.
B.Enable AWS Shield Standard on each individual S3 object.
C.Attach an Amazon CloudWatch alarm to detect unencrypted PUT requests.
D.Configure S3 bucket default encryption with SSE-KMS on all buckets or enforce it via AWS Organizations Service Control Policies (SCPs).
AnswerD

Default encryption and SCPs ensure automatic encryption enforcement.

Why this answer

Enforcing SSE-KMS via S3 bucket default encryption or AWS Organizations SCPs ensures compliance across accounts and new buckets.

3
MCQmedium

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

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

The LocalAdmin collection method queries SAM/RPC/WMI on domain computers to find local group memberships.

Why this answer

SharpHound uses the Session and LocalAdmin collection methods by default or explicitly specified via the -CollectionMethod flag to enumerate local administrators via API calls.

4
MCQmedium

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

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

The Mosquitto configuration file is located at '/etc/mosquitto/mosquitto.conf', where parameters like 'allow_anonymous' are defined.

Why this answer

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

5
MCQeasy

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

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

cmdkey /list enumerates cached credentials stored in the Credential Manager.

Why this answer

cmdkey /list displays a list of stored user names and credentials saved in the Windows Credential Manager.

6
MCQeasy

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

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

klist lists all active Kerberos tickets for the current user.

Why this answer

klist is the built-in Windows utility used to query, display, and purge Kerberos tickets and ticket-granting tickets in the current logon session.

7
Multi-Selectmedium

When pivoting through a compromised Windows system during an internal engagement, you need to enumerate active TCP and UDP network connections, listening ports, and associated routing tables using native operating system binaries. Which THREE of the following commands or tools native to Windows can be used to gather this network enumeration data?

Select 3 answers
A.arp -a
B.systeminfo
C.ipconfig /release
D.netstat -ano
E.route print
AnswersA, D, E

The arp -a command displays the Address Resolution Protocol cache, revealing IP-to-MAC address mappings for recently contacted local hosts.

Why this answer

Windows provides several native commands for network enumeration, including 'netstat' for connections and ports, 'route print' for routing tables, and 'arp -a' for the ARP cache.

8
MCQmedium

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

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

The 'iec104' filter isolates IEC 60870-5-104 application layer traffic in Wireshark.

Why this answer

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

9
MCQmedium

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

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

Responder is an LLMNR, NBT-NS, and MDNS poisoner designed to capture credential hashes.

Why this answer

Responder is the standard tool used to poison LLMNR, NBT-NS, and mDNS requests, capturing authentication hashes or relaying them to other targets.

10
Multi-Selecthard

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

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

Correct because cron jobs are widely used on Linux to execute recurring tasks and persistence payloads.

Why this answer

Linux persistence can be achieved via Cron jobs (scheduled tasks), modifying initialization scripts like /etc/rc.local or systemd service units, and adding SSH authorized keys to user profiles.

11
MCQhard

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

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

Hping3 allows crafting custom TCP/UDP/ICMP and raw IP packets with specific header options.

Why this answer

Hping3 or Scapy can craft custom IP packets with IP options such as loose or strict source routing (LSR/SSR).

12
Multi-Selectmedium

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

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

WMI is frequently used for remote execution and lateral movement.

Why this answer

PsExec and WMI are standard tools for executing remote commands across an AD domain.

13
Multi-Selecthard

During an assessment of network perimeter services, you discover a misconfigured Simple Network Management Protocol (SNMP) daemon running on a core router. Which THREE of the following tools or Metasploit auxiliary modules can be leveraged to enumerate sensitive information such as running processes, network interfaces, and routing tables via SNMP?

Select 3 answers
A.auxiliary/scanner/snmp/snmp_login
B.auxiliary/scanner/snmp/snmp_enum
C.exploit/windows/smb/ms17_010_eternalblue
D.auxiliary/scanner/http/dir_scanner
E.snmpwalk
AnswersA, B, E

This Metasploit module performs dictionary attacks against SNMP services to discover valid community strings (such as public or private).

Why this answer

SNMP enumeration can be performed using dedicated command-line utilities like snmpwalk, as well as Metasploit auxiliary modules such as auxiliary/scanner/snmp/snmp_enum and auxiliary/scanner/snmp/snmp_login.

14
MCQeasy

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

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

The -L flag binds port 8080 locally and forwards any connections to 10.0.0.5:80 through the SSH session on the jump box.

Why this answer

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

15
MCQhard

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

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

IEC 61850 GOOSE protocol frames use EtherType 0x88B8 for high-speed Layer 2 multicast communications.

Why this answer

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

16
MCQeasy

An AWS administrator wants to prevent users from accidentally creating public Amazon S3 buckets across the entire AWS account. Which specific AWS feature should be enabled?

A.AWS Web Application Firewall rules attached to the S3 global endpoint.
B.AWS Organizations Service Control Policies blocking the s3:PutBucketAcl action.
C.Amazon Macie to automatically encrypt all public buckets.
D.S3 Block Public Access at the AWS account level.
AnswerD

Account-level S3 Block Public Access prevents public exposure globally.

Why this answer

S3 Block Public Access at the account level blocks the creation of public buckets and modification of public policies organization-wide.

17
MCQeasy

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

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

The '-sS' option triggers a TCP SYN scan, sending SYN packets and analyzing responses without establishing full TCP connections.

Why this answer

The '-sS' flag instructs Nmap to perform a TCP SYN scan, which is the default and most popular stealth scan because it never completes the full 3-way handshake.

18
Multi-Selecthard

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

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

Mapping a certificate via altSecurityIdentities allows persistent smartcard/PKINIT authentication.

Why this answer

Advanced AD persistence mechanisms include SID History injection, Skeleton Key (patching LSASS on DCs), DCShadow (registering a rogue DC), and AD CS certificate mapping.

19
Multi-Selecthard

A penetration tester is assessing a Kubernetes cluster deployment. Which THREE of the following container or cluster configurations represent severe container escape or privilege escalation risks? (Choose THREE)

Select 3 answers
A.Using NetworkPolicies to restrict ingress and egress traffic between namespaces.
B.Enabling automountServiceAccountToken: false on non-privileged application pods.
C.Mounting the host filesystem root directory via a hostPath volume (hostPath: path: /).
D.Mounting the host's Docker daemon socket (/var/run/docker.sock) inside a container volume.
E.Running container processes with the root user ID (runAsUser: 0) without a security context constraints baseline.
AnswersC, D, E

Mounting the host root directory allows direct reading and writing of host files.

Why this answer

Running containers as root, mounting the Docker socket, and mounting sensitive host paths like / or /etc allow direct host compromise.

20
Multi-Selecthard

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

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

Wireshark captures network packets and allows deep protocol dissection to locate cleartext credentials.

Why this answer

Wireshark, Bettercap, and Tcpdump (or Ettercap) are standard tools used for sniffing network traffic and capturing cleartext credentials.

21
MCQhard

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

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

Dnscat2 is designed to create an encrypted command-and-control channel over the DNS protocol.

Why this answer

Dnscat2 or Iodine are prominent DNS tunneling tools used to route TCP traffic over DNS queries and responses, bypassing strict outbound port filters.

22
Multi-Selecthard

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

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

Firmadyne relies heavily on a PostgreSQL database backend to track image configurations, network interfaces, and extraction results.

Why this answer

Firmadyne emulation requires extracting the file system, initializing a PostgreSQL database to store image metadata, and running specialized QEMU system emulators with a modified kernel.

23
MCQeasy

During an internal penetration test, an operator compromises a low-privileged domain user account and wishes to perform a Kerberoasting attack to harvest service principal name (SPN) tickets. Which standard utility included with Windows PowerShell or Sysinternals can be used to request these tickets without administrative privileges?

A.Mimikatz lsadump::dcsync
B.Get-ADDefaultDomainPasswordPolicy
C.Invoke-Kerberoast via PowerView
D.ntdsutil.vbs snapshot
AnswerC

Invoke-Kerberoast is a widely used PowerShell function that requests TGS tickets for all domain user accounts with SPNs and formats them for offline cracking.

Why this answer

Kerberoasting targets service accounts with registered SPNs. Any authenticated domain user can request a TGS-SPN ticket for these services from the Domain Controller. The built-in .NET class System.IdentityModel.Tokens.KerberosRequestorSecurityToken or PowerShell scripts like PowerView use standard Windows APIs to request these tickets.

24
MCQmedium

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

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

Function keys grant invocation rights to the specific function endpoint.

Why this answer

A leaked function key allows any external actor to invoke the specific Azure Function endpoint associated with that key, potentially triggering unauthorized backend logic or data access.

25
Multi-Selecteasy

Which TWO methods are commonly used for data exfiltration during a penetration test to bypass basic network monitoring?

Select 2 answers
A.Using HTTPS to tunnel the data
B.Storing data in the system event logs
C.Sending data via plaintext telnet
D.Base64 encoding the data before transit
E.Using a standard FTP connection
AnswersA, D

Traffic is encrypted, preventing content inspection.

Why this answer

Encoding data and using encrypted channels like HTTPS are standard ways to evade detection.

26
MCQmedium

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

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

Without RBAC, API authentication and authorization controls are absent, granting full access.

Why this answer

Disabling Kubernetes RBAC means all requests to the Kubernetes API server are treated as cluster-admin with anonymous or unauthenticated/wildcard permissions, allowing full cluster compromise.

27
MCQmedium

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

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

The 'enip-info' script queries port 44818 and extracts Common Industrial Protocol (CIP) identity object attributes.

Why this answer

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

28
MCQeasy

An AWS penetration tester discovers that an Amazon DynamoDB table contains sensitive PII stored in plaintext, and the table is encrypted using the default AWS owned key rather than a customer managed KMS key. What is the security recommendation?

A.Disable TLS for all connections to the DynamoDB table.
B.Convert the DynamoDB table into an unencrypted Amazon S3 bucket.
C.Enable AWS WAF web ACLs directly on the DynamoDB table endpoint.
D.Migrate the table encryption to use AWS Customer Managed Keys (CMKs) in AWS KMS to gain granular auditing, rotation, and access control.
AnswerD

CMKs offer advanced control, rotation, and auditing over AWS owned keys.

Why this answer

While AWS owned keys provide encryption at rest, migrating to customer-managed KMS keys provides finer access control, auditing, and key rotation capabilities.

29
MCQmedium

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

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

Ghidra is a software reverse engineering framework developed by the NSA that performs static analysis to find vulnerable functions in binaries.

Why this answer

Checksec or a tool like IDA Pro / Ghidra can analyze binaries, but Ghidra or Radare2 are specifically suited for deep reverse engineering and identifying insecure function imports within extracted firmware binaries. Binwalk extracts files, aircrack-ng is for Wi-Fi, and John the Ripper is for password cracking.

30
Multi-Selectmedium

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

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

Unsigned LDAP allows NTLM relay attacks against domain controllers.

Why this answer

Auditing NTLM relay involves checking whether LDAP/SMB signing is required and whether Extended Protection for Authentication (EPA) is configured on IIS/AD CS web services.

31
MCQeasy

A penetration tester is analyzing an IoT mobile companion app that communicates with a smart thermostat via BLE (Bluetooth Low Energy). Which tool can the tester use on a rooted Android device to intercept and inspect BLE GATT characteristics and descriptors?

A.Hydra
B.Sqlmap
C.Aircrack-ng
D.nRF Connect for Mobile
AnswerD

nRF Connect allows testers to scan, read, write, and subscribe to BLE GATT characteristics and descriptors on Android and iOS.

Why this answer

GATT Explorer or specialized dynamic instrumentation frameworks like Frida or BLE sniffing tools on Android are used, but specifically for intercepting and manipulating BLE traffic locally on the device, 'GATTacker' or apps like 'nRF Connect' / 'Frida scripts' are deployed. Among standard choices, nRF Connect is the industry-standard diagnostic and testing tool for BLE.

32
MCQeasy

An AWS penetration tester identifies an EC2 instance configured with an IAM instance profile that grants broad s3:* permissions across all S3 buckets in the account. What AWS service feature should be recommended to restrict these permissions based on least privilege?

A.AWS Shield Advanced to inspect and block unauthorized S3 API requests at the network layer.
B.AWS Trusted Advisor to enforce mandatory multi-factor authentication on all S3 API calls.
C.Amazon GuardDuty to automatically quarantine the EC2 instance upon detecting broad S3 access.
D.AWS IAM Access Analyzer and CloudTrail analysis to generate least-privilege IAM policies based on actual usage.
AnswerD

Access Analyzer helps refine permissions based on activity.

Why this answer

AWS IAM Access Analyzer helps identify unused permissions and allows policy generation based on actual access history.

33
MCQmedium

During an Azure assessment, an auditor finds that a Logic App has an HTTP trigger with no authentication mechanism configured (Anonymous access). The Logic App has permissions to read sensitive Azure Blob Storage containers. What type of vulnerability does this represent?

A.Insecure Direct Object Reference and unauthenticated workflow execution leading to data exfiltration.
B.An OAuth token replay attack against the Azure Resource Manager control plane.
C.A Server-Side Request Forgery vulnerability within the Azure App Service sandbox.
D.A privilege escalation path from Contributor to Owner role.
AnswerA

Anonymous HTTP triggers allow unauthorized invocation and potential data disclosure.

Why this answer

Unauthenticated HTTP triggers in Azure Logic Apps allow external unauthenticated actors to invoke workflows, leading to unauthorized data access.

34
Multi-Selecthard

You are assessing a Linux privilege escalation path. Which THREE techniques would allow you to escalate to root if you have write access to the /etc/passwd or /etc/shadow file?

Select 3 answers
A.Creating a new user entry with UID 0
B.Adding a user to the /etc/sudoers file
C.Changing the root password hash in /etc/shadow
D.Modifying /etc/hosts
E.Running a kernel exploit using gcc
AnswersA, B, C

UID 0 is reserved for the root account.

Why this answer

If you can write to these files, you can create a new user with UID 0, change the root password, or add a backdoor account.

35
Multi-Selectmedium

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

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

SMB and NetBIOS often allow anonymous or null-session enumeration of shares, users, and server details.

Why this answer

LDAP (without signing/anonymous binds) and SNMP (with default community strings) or SMB/RPC often expose information. Specifically, SNMP and LDAP or SMB NetBIOS services. Let's choose SNMP and SMB.

36
MCQeasy

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

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

Silver tickets encrypt the service ticket using the target service account's NTLM hash.

Why this answer

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

37
MCQeasy

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

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

Pass-the-Hash utilizes the NTLM hash directly for SMB/WinRM authentication without plaintext conversion.

Why this answer

Pass-the-Hash (PtH) involves using a captured NTLM hash directly for authentication without needing the plaintext password, leveraging the challenge-response mechanism of the NTLM protocol.

38
MCQhard

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

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

mitmproxy is an interactive TLS-capable man-in-the-middle proxy that supports TCP stream interception, allowing decryption and inspection of MQTT-over-TLS.

Why this answer

Burp Suite or mitmproxy can act as transparent or explicit proxies, terminating the TLS connection using a rogue CA certificate, allowing inspection and modification of MQTT-over-TLS traffic.

39
MCQmedium

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

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

Iodine tunnels IPv4 data through DNS server queries and responses, effectively bypassing firewalls that only permit outbound DNS traffic.

Why this answer

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

40
Multi-Selectmedium

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

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

/etc/passwd lists local user accounts and system shells.

Why this answer

/etc/passwd, /etc/crontab, and ~/.ssh/ are key locations for user accounts, scheduled tasks, and SSH keys respectively.

41
MCQeasy

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

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

Nikto scans web servers against a comprehensive database of over 6,700 potentially dangerous files, outdated server versions, and vulnerable CGI scripts.

Why this answer

Nikto is a comprehensive web server scanner that checks for dangerous files, outdated software, and CGI scripts, while Metasploit contains specific modules for exploitation.

42
Multi-Selecthard

During a hybrid cloud assessment, a penetration tester discovers that an organization uses Azure Arc to manage on-premises Windows servers. Which THREE security risks or attack vectors are associated with a compromised Azure Arc Connected Machine Agent (azcmagent) on an on-premises server? (Choose three)

Select 3 answers
A.The attacker can utilize the established communication channel (outbound HTTPS port 443) to maintain persistent command and control (C2) mimicking legitimate Azure management traffic.
B.The attacker can query the local Azure Instance Metadata Service (IMDS) available to Arc-enabled servers to obtain OAuth access tokens for Azure resources.
C.The attacker can directly perform a DCSync attack against Azure AD Connect to extract thekrbtgt hash of the cloud tenant.
D.The attacker can leverage the Azure Arc extension framework (HybridCompute agent) to push and execute arbitrary scripts or malicious extensions on the host.
E.The attacker can bypass on-premises Group Policy Objects (GPOs) entirely by converting the local Active Directory domain into an Azure AD Domain Services instance.
AnswersA, B, D

Correct. Outbound HTTPS traffic to Azure endpoints can be abused as a covert C2 channel.

Why this answer

Azure Arc allows management of on-premises servers via Azure. Compromising the agent or its managed identity can allow attackers to execute extensions, query local metadata, or leverage Azure-managed policies to pivot into the cloud.

43
Multi-Selecthard

Which THREE conditions must be met for a successful Resource-Based Constrained Delegation (RBCD) attack against a target computer object?

Select 3 answers
A.Domain controllers must have SMB signing disabled globally.
B.The Active Directory domain functional level must be Windows Server 2012 or higher.
C.The KRBTGT account password must be reset twice to invalidate existing tickets.
D.The attacker must control an object (such as a newly created computer object via machine account quota) to act as the trusting principal.
E.The attacker must have permissions (such as GenericAll or WriteProperty) to modify msDS-AllowedToActOnBehalfOfOtherIdentity on the target computer object.
AnswersB, D, E

RBCD was introduced in Windows Server 2012.

Why this answer

RBCD requires permission to modify msDS-AllowedToActOnBehalfOfOtherIdentity on the target object, control over a computer or user object to act as the delegating entity, and Active Directory running at Windows Server 2012 or higher functional level.

44
Multi-Selectmedium

Which TWO of the following Impacket tools can be utilized to perform credential dumping or secret extraction from Active Directory or target systems when valid administrator credentials are known?

Select 2 answers
A.goldenPac.py
B.ntlmrelayx.py
C.secretsdump.py
D.GetUserSPNs.py
E.lookupsid.py
AnswersA, C

goldenPac.py exploits MS14-068 to perform ticket forgery and extract credentials/spawn an interactive shell.

Why this answer

secretsdump.py extracts password hashes, Kerberos keys, and NTDS.dit data. smbexec.py and psexec.py execute remote commands, but secretsdump.py and mspacify/mimikatz-equivalents in Impacket focus on dumping secrets. Specifically, secretsdump.py is the primary secret extraction tool.

45
Multi-Selectmedium

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

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

Permissive consent settings allow malicious OAuth apps to harvest data.

Why this answer

Unrestricted user consent settings allowing apps to access tenant data and legacy authentication protocols lacking MFA enforcement are major Azure AD security risks.

46
MCQeasy

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

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

Without LDAP signing enforced, intercepted NTLM authentication can be relayed to the LDAP service to modify Active Directory objects.

Why this answer

Lack of LDAP signing allows attackers to perform NTLM relay attacks against LDAP endpoints (port 389), potentially granting privileges like object creation or group modifications.

47
Multi-Selectmedium

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

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

DNP3 utilizes function codes (e.g., Read=1, Write=2, Select=3, Operate=4) to manage station data and control relays.

Why this answer

DNP3 features application layer functions, object headers, and Secure Authentication extensions (IEC 62351-5) to prevent spoofing of control commands.

48
MCQeasy

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

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

smtp-user-enum is designed to enumerate system users on SMTP servers using built-in mail commands.

Why this answer

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

49
MCQhard

A penetration tester is performing a container escape on a Kubernetes cluster. The tester gains remote code execution inside a pod and discovers that the container is running with privileged mode disabled, but the service account token mounted at /var/run/secrets/kubernetes.io/serviceaccount/token has permissions to create new Pods using the cluster-admin cluster role. Which kubectl command or API call pattern should the tester use to achieve a container escape to the underlying host?

A.Execute 'kubectl exec -it' using the token to attach to the kube-apiserver directly and modify the container runtime socket.
B.Create a pod specification with 'hostNetwork: true' and a 'hostPath' volume mounting '/' from the node to the container, then execute 'chroot /host' inside the new pod.
C.Modify the local /etc/shadow file inside the container to grant root access to the node kernel.
D.Send a malicious payload to the container runtime socket at /var/run/docker.sock to trigger a runC vulnerability.
AnswerB

Correct. Creating a privileged or hostPath-mounted pod via the API server using high-privilege service account tokens allows full node compromise (container escape).

Why this answer

Since the container can create pods, it can use the Kubernetes API to create a new pod with hostPath volumes (e.g., mounting / on the host to /host inside the container) and hostNetwork: true, then chrooting into /host to execute commands on the underlying node.

50
MCQhard

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

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

John the Ripper supports a wide variety of Unix crypt hash formats found in '/etc/shadow' for offline password recovery.

Why this answer

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

51
Multi-Selecthard

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

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

Publishing to control topics validates whether the broker enforces authorization controls for critical OT commands.

Why this answer

An unauthenticated MQTT broker allows anyone to subscribe to all topics (# wildcard) to intercept sensitive telemetry, or publish malicious commands to actuator topics. Therefore, subscribing to all topics and testing command injection via unauthorized publishing are the correct validation steps. Port scanning and password cracking are unnecessary when authentication is already known to be absent.

52
MCQhard

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

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

Mounted tokens allow API interactions according to assigned RBAC permissions.

Why this answer

The mounted service account token can be used to authenticate to the Kubernetes API server, allowing the tester to query resources or create malicious pods (e.g., privileged pods) based on the service account's RBAC permissions.

53
MCQmedium

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

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

getST.py handles S4U2Self and S4U2Proxy requests to forge service tickets for arbitrary users.

Why this answer

Impacket's getST.py (GetServiceName / Get-ServiceTicket) implements Service for User (S4U) extensions to impersonate arbitrary users to targeted services using constrained delegation.

54
Multi-Selecthard

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

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

Files in /etc/sudoers.d contain additional sudo configurations that must be inspected.

Why this answer

sudo -l, checking /etc/sudoers, and inspecting files within /etc/sudoers.d/ are essential checks for sudo misconfigurations.

55
MCQeasy

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

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

Mimikatz is highly signature-detected by standard security products.

Why this answer

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

56
MCQmedium

You have identified an unquoted service path vulnerability on a Windows server. What is the correct remediation path to escalate privileges?

A.Replace the existing service binary.
B.Restart the service with elevated arguments.
C.Create a malicious executable matching a component of the unquoted path.
D.Modify the service registry key to add quotes.
AnswerC

Windows will interpret the unquoted path and execute the first matching executable it finds in the path hierarchy.

Why this answer

By placing a malicious executable in the folder corresponding to the unquoted path (e.g., C:\Program.exe), the service manager will execute it instead of the intended binary.

57
MCQhard

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

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

Bettercap is a modern, modular penetration testing framework that handles ARP spoofing and network reconnaissance efficiently.

Why this answer

Bettercap or Ettercap support ARP spoofing, but Bettercap is modern and allows fine-grained module control for network attacks. Alternatively, customized arpspoof can be tuned.

58
MCQhard

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

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

DRSUAPI is the native protocol used for AD replication, which secretsdump abuses using valid admin credentials.

Why this answer

secretsdump.py uses the DRSUAPI (Directory Replication Service Remote Protocol) via RPC, specifically calling methods like DsGetNCChanges, simulating a domain controller replication request.

59
MCQeasy

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

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

PrintSpoofer and similar tools abuse SeImpersonatePrivilege by forcing an authentication to a named pipe and impersonating the resulting token.

Why this answer

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

60
Multi-Selecthard

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

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

U-Boot supports network commands like tftpboot to load and run arbitrary kernel images over the network.

Why this answer

Via the U-Boot serial prompt, an attacker can interrupt the boot sequence, override kernel command line arguments (e.g., init=/bin/sh), or boot a custom kernel image via TFTP.

61
Multi-Selectmedium

Which TWO tools are commonly used for analyzing BloodHound database outputs or querying attack paths during an Active Directory penetration test?

Select 2 answers
A.Mimikatz sekurlsa::logonpasswords
B.The BloodHound graphical user interface application
C.Impacket's GetUserSPNs.py
D.Certipy find
E.bloodhound-python ingester
AnswersB, E

The BloodHound GUI visualizes paths and executes Cypher queries.

Why this answer

BloodHound supports both the official BloodHound GUI (Electron app / web interface) and automated analysis tools like BloodHound Python (bloodhound-python) for collection, as well as Cypher queries within the GUI.

62
MCQmedium

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

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

PetitPotam forces EFS RPC calls, resulting in NTLM authentication that can be captured and relayed.

Why this answer

PetitPotam coerces an authenticating machine (like a DC) to connect to an attacker-controlled listener via SMB or HTTP, which can then be relayed to Active Directory Certificate Services (AD CS) HTTP enrollment endpoints (ESC8) for NTLM relay attacks.

63
MCQhard

During an internal engagement, a penetration tester attempts to perform pass-the-hash using Mimikatz, but receives an error indicating that Credential Guard is enabled. Which exploitation technique bypasses this limitation by forcing LSASS to interact with a compromised RPC endpoint?

A.Running mimikatz with the 'privilege::debug' command escalated via a service account.
B.Patching the lsass.exe executable on disk to disable security checks.
C.Over-Pass-the-Hash, which generates a full Kerberos ticket using extracted user AES keys instead of NTLM hashes.
D.Injecting shellcode directly into the winlogon.exe process memory space.
AnswerC

Over-Pass-the-Hash converts an NTLM hash or AES key into a full Kerberos TGT, which works even when Credential Guard blocks standard NTLM pass-the-hash.

Why this answer

When Credential Guard is enabled, direct reading of LSASS memory is blocked. However, techniques like throwing tokens or using restricted administrator access tokens, or abusing specific COM/RPC objects, are alternative vectors, though Pass-the-Ticket via Kerberos delegation or abusing DPAPI are standard workarounds. Specifically, forcing NTLM authentication or abusing constrained delegation are preferred.

Wait, the question asks for bypassing Credential Guard or interacting with LSASS - actually, direct LSASS dumping fails, but token impersonation or abusing DCShadow/DCSync if domain admin is available works. For local Credential Guard bypass, Over-Pass-the-Hash (generating Kerberos tickets via AES keys) works if AES keys are extracted from NTDS.dit or kerberos traffic.

64
MCQhard

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

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

-L binds a local port and forwards traffic to the specified target IP and port through the SSH session.

Why this answer

ssh -L local_port:target_ip:target_port user@pivot_host establishes local port forwarding. Thus, ssh -L 3306:10.0.0.50:3306 user@pivot_ip is correct.

65
MCQeasy

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

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

Port 502 is the official registered TCP port for Modbus communications.

Why this answer

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

66
MCQmedium

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

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

Removing authorizers exposes individual API methods to unauthenticated callers.

Why this answer

Setting an API Gateway method to Authorization: None bypasses IAM authentication for that specific endpoint, allowing unauthenticated execution of the backend Lambda or HTTP integration.

67
MCQmedium

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

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

Passing init=/bin/sh to the kernel command line overrides the default init process and drops the user directly into an unauthenticated root shell.

Why this answer

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

68
Multi-Selectmedium

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

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

Industrial IDS solutions monitor for anomalous command sequences and unauthorized protocol operations on the control network.

Why this answer

Securing OT networks involves strict Purdue model network segmentation, deploying unidirectional security gateways (data diodes), and implementing industrial IDS solutions.

69
MCQmedium

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

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

Function Code 0x10 allows writing blocks of holding registers, which often control setpoints, operational parameters, and logic variables.

Why this answer

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

70
MCQeasy

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

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

Netdiscover is an ARP reconnaissance tool used to find live hosts on a local network.

Why this answer

netdiscover is an active/passive ARP reconnaissance tool designed specifically to scan live hosts on a local network segment using ARP requests.

71
MCQhard

An operator has successfully established a Meterpreter session on a Windows Server 2019 domain member. To maintain access across system reboots without creating a new local user account, the operator decides to implement a WMI persistence mechanism. Which command sequence correctly establishes a WMI event subscription that executes a payload whenever the system boots?

A.Inject a DLL into winlogon.exe and configure a Group Policy Object to execute the payload upon user logon
B.Create a __EventFilter monitoring Win32_OperatingSystem startup, a CommandLineEventConsumer executing the payload, and a __FilterToConsumerBinding object
C.Configure a new registry run key using reg add pointing to a VBScript payload in the Startup folder
D.Use PowerShell to create an EventFilter looking for Win32_NTLogEvent and a ScriptFileEventConsumer pointing to a scheduled task
AnswerB

Correct because this is the exact trio of WMI classes required to establish permanent event-driven persistence.

Why this answer

WMI persistence involves creating an __EventFilter to trigger on system startup, an __EventConsumer (specifically CommandLineEventConsumer) to execute the payload, and a __FilterToConsumerBinding to link the two objects together.

72
MCQmedium

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

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

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

Why this answer

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

73
MCQmedium

During an assessment of an Azure tenant, an attacker successfully exploits a user credential and enumerates enterprise applications. They identify a service principal with a high-privilege app role assignment (e.g., PrivilegedRoleAdministrator.ReadWrite.All). What is the primary attack path enabled by this misconfiguration?

A.The attacker can leverage the service principal credentials to assign high-privilege Azure AD roles to unauthorized user accounts.
B.The attacker can perform a Kerberoasting attack against the Azure Active Directory cloud database.
C.The attacker can extract the plaintext passwords of all cloud administrators from the Azure Key Vault logs.
D.The attacker can directly modify the underlying hypervisor configuration of Azure virtual machines.
AnswerA

Service principals with role management permissions can elevate privileges inside Azure AD.

Why this answer

A compromised service principal holding directory or role administration permissions can create new global administrators or modify role assignments.

74
MCQeasy

An attacker has gained access to a Linux machine and wants to enumerate all SUID binaries to find potential privilege escalation vectors. Which find command should the tester execute to locate all files with the SUID permission set while suppressing permission denied error messages?

A.find / -type f -perm -4000 2>/dev/null
B.grep -r 'SUID' /etc/permissions.conf
C.getcap -r / 2>/dev/null
D.find / -name suid -exec ls -la {} \;
AnswerA

Correct because -perm -4000 specifically matches SUID files, and 2>/dev/null suppresses error messages from unreadable directories.

Why this answer

The command find / -perm -4000 2>/dev/null searches the entire filesystem for files with the SUID bit set (-4000) and redirects standard error to /dev/null to keep the output clean.

75
MCQhard

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

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

Mimikatz parses the LSASS process memory to retrieve credentials.

Why this answer

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

Page 1 of 4

Page 2

All pages