2 packs: 15% off with code BUY2. 3 or more: 20% off with code BUY3.

Free GIAC Penetration Tester GPEN Practice Questions

96 free GIAC Penetration Tester GPEN practice questions from the CertStash pack of 385, each with the correct answer and a full explanation. The rule is the same for every exam: ten free on the product page, 96 free here, all 385 in the pack, and each step includes the one before it.

Question 1

A software vendor registers a multitenant application in its own Microsoft Entra tenant. An administrator at a customer organization then consents to the app. Which object is created in the customer's tenant to represent the app there?

  1. A service principal that references the vendor's application object
  2. A copy of the application object, including its client secrets
  3. A guest user account linked to the vendor's app registration
  4. A system-assigned managed identity tied to the application
Show answer and explanation

Correct answer: A. A service principal that references the vendor's application object

In Microsoft Entra ID an application is defined by one application object in its home tenant, which acts as a global template. A service principal is the local representation of that app in each tenant where it is used, and it is created when the app is registered or when consent is granted. The customer's service principal defines what the app can do in that tenant, which is why a cloud review enumerates enterprise applications (service principals) and not only app registrations when assessing third-party access.

Why the other options are wrong

  • B. The application object exists only once, in the vendor's home tenant, and its credentials are not copied into consuming tenants.
  • C. Consent creates an application instance, not a user account; guest accounts represent invited people.
  • D. Managed identities belong to Azure resources and are never created by consenting to a third-party application.

Question 2

Which Metasploit vncinject stager will allow VNC communications from the attacker to a listening port of the attacker's choosing on the victim machine?

  1. vncinject/find_tag
  2. vncinject/reverse_tcp
  3. vncinject/reverse_http
  4. vncinject/bind_tcp
Show answer and explanation

Correct answer: D. vncinject/bind_tcp

The vncinject/bind_tcp stager creates a listening port on the victim machine that the attacker connects to, allowing VNC communication from attacker to victim on a port of the attacker's choosing. This matches the requirement of 'VNC communications from the attacker to a listening port of the attacker's choosing on the victim machine.'

Why the other options are wrong

  • A. The find_tag stager reuses a connection the attacker has already established with the target instead of opening a new listening port of the attacker's choosing.
  • B. The reverse_tcp stager creates a connection from victim back to attacker, opposite of the requirement.
  • C. The reverse_http stager uses HTTP for communication and reverses the connection direction.

Question 3

What is the MOST important document to obtain before beginning any penetration testing?

  1. Project plan
  2. Exceptions document
  3. Project contact list
  4. A written statement of permission
Show answer and explanation

Correct answer: D. A written statement of permission

A written statement of permission is the most critical document before beginning any penetration testing. This legal authorization protects both the tester and the organization, clearly defines scope, and ensures that all testing activities are legitimate and authorized. Without this, any testing could be considered unauthorized access and illegal.

Why the other options are wrong

  • A. A project plan is important but secondary to obtaining explicit written permission first.
  • B. An exceptions document is useful but not obtained before testing begins.
  • C. A project contact list is administrative but not as critical as written authorization.

Question 4

While reviewing traffic from a tcpdump capture, you notice the following commands being sent from a remote system to one of your web servers:

C:\>sc \\internet.host.com create ncservice binpath= "c:\tools\nc.exe -l -p 2222 -e cmd.exe"
C:\>sc \\internet.host.com query ncservice

What is the intent of the commands?

  1. The first command creates a backdoor shell as a service. It is being started on TCP 2222 using cmd.exe. The second command verifies the service is created and its status.
  2. The first command creates a backdoor shell as a service. It is being started on UDP 2222 using cmd.exe. The second command verifies the service is created and its status.
  3. This creates a service called ncservice which is linked to the cmd.exe command and is designed to stop any instance of nc.exe being run. The second command verifies the service is created and its status.
  4. The first command verifies the service is created and its status. The second command creates a backdoor shell as a service. It is being started on TCP 2222 using cmd.exe.
Show answer and explanation

Correct answer: A. The first command creates a backdoor shell as a service. It is being started on TCP 2222 using cmd.exe. The second command verifies the service is created and its status.

The first command uses 'sc create' to create a Windows service called 'ncservice' that executes netcat (nc.exe) with parameters '-l -p 2222 -e cmd.exe', which creates a listening backdoor on TCP port 2222 that spawns cmd.exe for remote command execution. The second command 'sc query' verifies the service was created successfully and checks its status. This is a classic persistence mechanism.

Why the other options are wrong

  • B. The port specified is TCP 2222, not UDP 2222, as netcat defaults to TCP unless specified otherwise.
  • C. The service does not stop instances of nc.exe; it executes nc.exe to create a backdoor listener.
  • D. The command sequence order is incorrect; the first command creates the backdoor, and the second verifies it.

Question 5

Which of the following best describes a client side exploit?

  1. Attack of a client application that retrieves content from the network
  2. Attack that escalates user privilege to root or administrator
  3. Attack of a service listening on a client system
  4. Attack on the physical machine
Show answer and explanation

Correct answer: A. Attack of a client application that retrieves content from the network

A client-side exploit targets client applications that retrieve content from the network, such as web browsers, email clients, or document readers. The attack works by delivering malicious content that the client application processes, rather than attacking a service listening on the client system. This is the most accurate definition of client-side exploitation.

Why the other options are wrong

  • B. Privilege escalation is a post-exploitation technique, not the defining characteristic of a client-side exploit.
  • C. Attacking services listening on a client is typically server-side or local privilege escalation, not client-side exploitation.
  • D. Physical machine attacks are hardware-level attacks, unrelated to application-level client-side exploits.

Question 6

Which of the following TCP packet sequences are common during a SYN (or half-open) scan?

  1. SYN sent, SYN-ACK returned, ACK sent to complete the handshake; and SYN sent, RST-ACK returned.
  2. SYN sent, SYN-ACK returned, RST sent by the scanner; and SYN sent, RST-ACK returned.
  3. SYN-ACK sent, RST returned; and ACK sent, RST returned.
  4. SYN sent, ACK returned, FIN sent to close the session; and FIN sent, RST returned.
Show answer and explanation

Correct answer: B. SYN sent, SYN-ACK returned, RST sent by the scanner; and SYN sent, RST-ACK returned.

A SYN or half-open scan never completes the three-way handshake. The scanner sends a SYN to each target port. If the port is open, the target replies with SYN-ACK and the scanner immediately sends an RST to tear the connection down before it is established, which is why the scan is called half-open. If the port is closed, the target replies with RST-ACK and no further packets are needed. Option B lists exactly those two exchanges. Option A completes the handshake with an ACK, which is a full connect scan rather than a SYN scan. Option C starts with SYN-ACK and ACK probes, which belong to other scan types rather than a half-open scan, and option D describes FIN and ACK behaviour that belongs to other scan types, not to a half-open scan.

Why the other options are wrong

  • A. Option A completes the handshake with a final ACK, which is the behavior of a full TCP connect scan rather than a half-open SYN scan.
  • C. Option C opens with SYN-ACK and ACK probes, which belong to other scan types such as ACK scanning, not the SYN probe that starts a half-open scan.
  • D. Option D shows a SYN answered by a bare ACK followed by FIN exchanges, which does not match the SYN, SYN-ACK, RST pattern a half-open scan produces.

Question 7

During an authorized Azure assessment, a tester finds that a compromised account holds the Reader role assigned at a management group. Which resources can the account read?

  1. Only the management group object itself, because role assignments do not flow to child scopes
  2. Every subscription, resource group, and resource that sits beneath that management group
  3. Only the resource groups that were created after the role assignment was made
  4. Every resource in any other Microsoft Entra tenant where the account exists as a guest
Show answer and explanation

Correct answer: B. Every subscription, resource group, and resource that sits beneath that management group

Azure role assignments can be made at four scopes: management group, subscription, resource group, and resource. These scopes form a parent-child hierarchy, and lower levels inherit role permissions from higher levels. A management group is the broadest scope below the tenant root, so a single assignment there applies to every subscription it contains and to everything inside those subscriptions. During an assessment, a role found at management group scope therefore has a much wider blast radius than the same role on a single resource group.

Why the other options are wrong

  • A. Role assignments are inherited by child scopes, so a management group assignment reaches the subscriptions and resources below it.
  • C. Inheritance applies to all child resource groups regardless of when they were created.
  • D. Azure RBAC assignments apply within one hierarchy that trusts one tenant and do not reach resources in other tenants.

Question 8

You have gained shell on a Windows host and want to find other machines to pivot to, but the rules of engagement state that you can only use tools that are already available.

How could you find other machines on the target network?

  1. Use the "ping" utility to automatically discover other hosts
  2. Use the "ping" utility in a for loop to sweep the network.
  3. Use the "edit" utility to read the target's HOSTS file.
  4. Use the "net share" utility to see who is connected to local shared drives.
Show answer and explanation

Correct answer: B. Use the "ping" utility in a for loop to sweep the network.

Using the 'ping' utility in a for loop to perform a network sweep is a standard technique to discover active hosts on a network using only built-in Windows tools. This method sends ICMP echo requests to a range of IP addresses and identifies which hosts respond, revealing other machines on the target network without requiring external tools.

Why the other options are wrong

  • A. The ping utility by itself does not automatically discover other hosts; it requires manual iteration or a loop.
  • C. The 'edit' utility reads static host files but only reveals previously known mappings, not active network discovery.
  • D. The 'net share' utility shows shared resources but does not discover other machines on the network as effectively as network sweeping.

Question 9

A penetration tester obtains telnet access to a target machine using a captured credential. While trying to transfer her exploit to the target machine, the network intrusion detection system keeps detecting her exploit and terminating her connection.

Which of the following actions will help the penetration tester transfer an exploit and compile it in the target system?

  1. Use the http service's PUT command to push the file onto the target machine.
  2. Use the scp service, protocol SSHv2 to pull the file onto the target machine.
  3. Use the telnet service's ECHO option to pull the file onto the target machine
  4. Use the ftp service in passive mode to push the file onto the target machine.
Show answer and explanation

Correct answer: B. Use the scp service, protocol SSHv2 to pull the file onto the target machine.

SCP with SSHv2 provides encrypted file transfer that bypasses network-based IDS detection better than unencrypted protocols. SSH encrypts the entire session including the file transfer, making payload inspection by IDS difficult. FTP passive mode (option D) still uses unencrypted data channels that IDS can inspect. HTTP PUT (A) and telnet ECHO (C) are also unencrypted and easily detected.

Why the other options are wrong

  • A. HTTP PUT sends unencrypted data that IDS can easily inspect and detect malicious payloads.
  • C. Telnet ECHO is unencrypted and the slowest method; IDS would still detect the payload.
  • D. FTP passive mode, while less obvious than active mode, still transmits unencrypted data that IDS can inspect.

Question 10

What section of the penetration test or ethical hacking engagement final report is used to detail and prioritize the results of your testing?

  1. Methodology
  2. Conclusions
  3. Executive Summary
  4. Findings
Show answer and explanation

Correct answer: D. Findings

The Findings section is where detailed vulnerability and risk results are documented and prioritized by severity level. This is the core technical section that lists all discovered issues with their risk ratings and remediation guidance. The Executive Summary provides high-level overview for management, Methodology describes how testing was performed, and Conclusions summarizes recommendations.

Why the other options are wrong

  • A. Methodology describes the testing approach and scope, not the detailed results.
  • B. Conclusions provide summary recommendations, not the detailed prioritized listing of findings.
  • C. Executive Summary is a high-level overview for non-technical stakeholders, not detailed technical prioritization.

What people say about the full Penetration Tester GPEN pack 4.4 from 8

If the exam is coming but you are still anxious I advise you to purchase practice questions of Cert Stash. It is valid and helpful for my GPEN exam
BerthaPenetration Tester GPEN

Question 11

During an authorized internal test, a tester exploits a flaw that grants administrator rights on a critical payment server. The final report is due in three weeks. What should the tester do with this finding?

  1. Notify the contact named in the assessment plan or rules of engagement immediately
  2. Hold the finding until the final report so all results are delivered together
  3. Patch the server directly to remove the exposure before anyone else finds it
  4. Raise it at the next weekly status meeting, since no incident has occurred
Show answer and explanation

Correct answer: A. Notify the contact named in the assessment plan or rules of engagement immediately

Analysis during testing includes spotting critical vulnerabilities that the organization must address at once. When exploitation yields administrator rights on a critical system, the tester notifies the person identified in the assessment plan or rules of engagement immediately, rather than waiting for the report or the next scheduled meeting. Early notice lets the client contain the exposure while testing continues, and the finding is still documented in full in the final report with its evidence and remediation guidance.

Why the other options are wrong

  • B. Delaying a critical finding for weeks leaves a known path to a critical system open with no reason to wait.
  • C. Changing client systems is the owner's decision, and a tester who applies fixes alters the environment outside the agreed authority.
  • D. A weekly meeting can be days away, and a confirmed path to administrator rights on a critical system calls for notification as soon as it is found.

Question 12

Which of the following attacks can be overcome by applying cryptography?

  1. Buffer overflow
  2. Web ripping
  3. DoS
  4. Sniffing
Show answer and explanation

Correct answer: D. Sniffing

Sniffing is a passive attack in which an attacker captures traffic traversing the network and reads its contents. Encrypting the data in transit (SSL/TLS, IPSec, SSH, encrypted mail) means the captured packets are unintelligible to the attacker, so cryptography directly defeats the goal of the sniffing attack even though the packets can still be captured.

Why the other options are wrong

  • A. A buffer overflow exploits missing bounds checking in program code, which encrypting data does not correct; it is countered by input validation and secure coding.
  • B. Web ripping copies publicly available site content; encryption of transport does not stop an authorized client from downloading and mirroring pages.
  • C. A DoS attack exhausts bandwidth or resources regardless of whether payloads are encrypted, and encryption can even increase the processing burden.

Question 13

You want to run the nmap command that includes the host specification of 202.176.56-57.*.

How many hosts will you scan?

  1. 512
  2. 64
  3. 1024
  4. 256
Show answer and explanation

Correct answer: A. 512

Nmap host specifications support octet ranges and wildcards. In 202.176.56-57.*, the third octet is the range 56 to 57, which is two values, and the asterisk in the fourth octet expands to the full range 0 through 255, which is 256 values. Multiplying 2 by 256 gives 512 addresses, so the scan covers 512 hosts.

Why the other options are wrong

  • B. 64 corresponds to a much narrower range, such as a /26 worth of addresses.
  • C. 1024 would require four values in the third octet, such as 56-59.
  • D. 256 is the count for a single class C block, which would be a specification like 202.176.56.*.

Question 14

You suspect that system administrators in one part of the target organization are turning off their systems during the times when penetration tests are scheduled, what feature could you add to the 'Rules of Engagement' that could help your team test that part of the target organization?

  1. Unannounced test
  2. Tell response personnel the exact time the test will occur
  3. Test systems after normal business hours
  4. Limit tests to business hours
Show answer and explanation

Correct answer: A. Unannounced test

Unannounced tests prevent administrators from deliberately circumventing the assessment by shutting down systems. If tests are unannounced, admins cannot time their shutdown activities to avoid detection. Telling response personnel the exact time (B) defeats the purpose, testing after hours (C) may miss the issue during business operations, and limiting to business hours (D) allows the problematic behavior to continue undetected.

Why the other options are wrong

  • B. Announcing the exact test time enables the suspicious admins to shut down systems precisely during the announced window.
  • C. Testing after business hours won't catch administrators turning off systems during business hours when tests are scheduled.
  • D. Limiting tests to business hours guarantees the suspicious behavior can continue undetected if admins shut down during those hours.

Question 15

When a DNS server transfers its zone file to a remote system, what port does it typically use?

  1. 53/TCP
  2. 153/UDP
  3. 35/TCP
  4. 53/UDP
Show answer and explanation

Correct answer: A. 53/TCP

DNS zone transfers use TCP port 53, not UDP. While DNS queries typically use UDP port 53 for speed, zone file transfers between DNS servers require the reliability guarantee of TCP. This is a fundamental DNS protocol requirement where zone transfers (AXFR requests) must use TCP/53 to ensure complete and accurate transfer of the zone database.

Why the other options are wrong

  • B. Port 153/UDP is not a valid DNS port and does not exist in standard DNS specifications.
  • C. Port 35/TCP is not associated with DNS services; this port is not used for DNS zone transfers.
  • D. DNS zone transfers use TCP, not UDP; while UDP/53 is used for standard DNS queries, zone transfers require TCP/53 for reliability.

Question 16

Which of the following tasks can be performed by using netcat utility?

Each correct answer represents a complete solution.

Choose all that apply.

  1. Firewall testing
  2. Creating a Backdoor
  3. Port scanning and service identification
  4. Checking file integrity
Show answer and explanation

Correct answer: A, B, C. Firewall testing; Creating a Backdoor; Port scanning and service identification

Netcat is a versatile network utility that can be used for multiple security-related tasks. It can test firewalls by attempting connections to various ports (A), establish backdoor connections for unauthorized remote access (B), and perform port scanning to identify open ports and running services (C). File integrity checking (D) requires specialized tools like MD5sum or SHA utilities, not netcat.

Why the other options are wrong

  • D. Netcat cannot check file integrity; this requires hash verification tools like MD5sum or SHA checksums.

Question 17

Where are Netcat's own network activity messages, such as when a connection occurs, sent?

  1. Standard Error
  2. Standard input
  3. Standard Logfile
  4. Standard Output
Show answer and explanation

Correct answer: A. Standard Error

Netcat sends its informational messages about connection status to standard error (stderr). This includes messages about when connections are established, accepted, or fail. By convention, diagnostic and status messages are directed to stderr while data flows through stdout, allowing users to separate informational output from actual data transfer.

Why the other options are wrong

  • B. Standard input is for receiving data, not outputting status messages.
  • C. Netcat does not write to a standard logfile by default; messages go to stderr.
  • D. Standard output carries the actual data stream, while status messages go to stderr.

Question 18

You work as a Network Penetration tester in the Secure Inc. Your company takes the projects to test the security of various companies. Recently, Secure Inc. has assigned you a project to test the security of the Bluehill Inc. For this, you start monitoring the network traffic of the Bluehill Inc.

In this process, you find that there are many FTP packets traveling in the Bluehill Inc. network.

Now, you want to sniff the traffic and extract usernames and passwords of the FTP server.

Which of the following tools will you use to accomplish the task?

  1. Ettercap
  2. L0phtcrack
  3. NetStumbler
  4. SARA
Show answer and explanation

Correct answer: A. Ettercap

Ettercap is a comprehensive network sniffer and man-in-the-middle attack tool specifically designed to capture and analyze network traffic, including FTP credentials. It can intercept unencrypted FTP packets and extract usernames and passwords from the captured traffic. L0phtcrack is a password cracking tool, NetStumbler is for wireless network discovery, and SARA is a vulnerability scanner, none are designed for traffic sniffing and credential extraction.

Why the other options are wrong

  • B. L0phtcrack is a password cracking tool, not a network sniffer for capturing FTP traffic.
  • C. NetStumbler is used for wireless network discovery and site surveying, not traffic sniffing.
  • D. SARA is a vulnerability assessment and scanning tool, not designed for packet sniffing.

Question 19

Which of the following statements are true about firewalking?

Each correct answer represents a complete solution.

Choose all that apply.

  1. To use firewalking, the attacker needs the IP address of the last known gateway before the firewall and the IP address of a host located behind the firewall.
  2. Firewalking works on the UDP packets.
  3. In this technique, an attacker sends a crafted packet with a TTL value that is set to expire one hop past the firewall.
  4. A malicious attacker can use firewalking to determine the types of ports/protocols that can bypass the firewall.
Show answer and explanation

Correct answer: A, C, D. To use firewalking, the attacker needs the IP address of the last known gateway before the firewall and the IP address of a host located behind the firewall; In this technique, an attacker sends a crafted packet with a TTL value that is set to expire one hop past the firewall; A malicious attacker can use firewalking to determine the types of ports/protocols that can bypass the firewall.

Firewalking is an advanced network reconnaissance technique used to map firewall rules by sending crafted packets with specific TTL values designed to expire one hop past the firewall, allowing attackers to determine which ports and protocols are permitted through the firewall. The attacker needs both the gateway IP before the firewall and a target IP behind it to perform the technique effectively. Firewalking works by manipulating TTL values on both TCP and UDP packets, not just UDP alone.

Why the other options are wrong

  • B. Firewalking works on both TCP and UDP packets, not exclusively UDP packets.

Question 20

You are pen testing a Linux target from your windows-based attack platform. You just moved a script file from the windows system to the Linux target, but it will not execute properly.

What is the most likely problem?

  1. The byte length is different on the two machines
  2. End-of-line characters are different on the two machines
  3. The file must have become corrupt during transfer
  4. ASCII character sets are different on the two machines
Show answer and explanation

Correct answer: B. End-of-line characters are different on the two machines

Windows uses CRLF (carriage return + line feed) for line endings while Linux uses LF (line feed) only. When a script transfers from Windows to Linux without conversion, the CR characters cause parsing issues and execution failures. This is the most common incompatibility when moving text-based scripts between platforms.

Why the other options are wrong

  • A. Byte length is the same between Windows and Linux systems for the same character.
  • C. File corruption during transfer is unlikely with modern transfer protocols which include error checking.
  • D. Both Windows and Linux systems primarily use ASCII character sets; encoding differences would present differently.

Question 21

You run the following bash script in Linux:

for i in `cat hostlist.txt`; do nc -q 2 -v $i 80 < request.txt; done where the hostlist.txt file contains the list of IP addresses and request.txt is the input file holding the HTTP request sent to each host.

Which of the following tasks do you want to perform by running this script?

  1. You want to perform port scanning to the hosts given in the IP address list.
  2. You want to transfer file hostlist.txt to the hosts given in the IP address list.
  3. You want to perform banner grabbing to the hosts given in the IP address list.
  4. You want to put nmap in the listen mode to the hosts given in the IP address list.
Show answer and explanation

Correct answer: C. You want to perform banner grabbing to the hosts given in the IP address list.

The bash script iterates through IP addresses in hostlist.txt, connects to port 80 on each host using netcat (-v for verbose), and sends the contents of request.txt (an HTTP request). This retrieves responses from web servers, which is the definition of banner grabbing, extracting service information and responses from remote servers.

Why the other options are wrong

  • A. Port scanning checks for open ports; this script connects to a specific known port (80) and sends data rather than scanning multiple ports.
  • B. The script reads from hostlist.txt and request.txt locally; it does not transfer these files to remote hosts.
  • D. The script uses netcat to connect to remote hosts, not to listen; nmap is also not involved in this operation.

Question 22

Which of the following tools connects to and executes files on remote systems?

  1. Spector
  2. Hk.exe
  3. PsExec
  4. GetAdmin.exe
Show answer and explanation

Correct answer: C. PsExec

PsExec is a Windows utility that allows remote command execution on systems over a network connection. It enables administrators and attackers to run programs on remote machines. Spector is monitoring software, Hk.exe is a local privilege escalation exploit, and GetAdmin.exe is a privilege escalation utility, none of which primarily execute remote files.

Why the other options are wrong

  • A. Spector is a monitoring and surveillance tool, not designed for remote file execution.
  • B. Hk.exe is a local privilege escalation exploit, not a tool for executing files on remote systems.
  • D. GetAdmin.exe is a privilege escalation tool, not designed for executing files on remote systems.

Question 23

A tester observes that a protected group retains its hardened permissions even after it was moved into a delegated organizational unit. Which property of protected objects explains this?

  1. Permission inheritance is disabled on protected accounts and groups, so they do not pick up permissions from a new parent
  2. Moving a protected object automatically promotes it to the forest root domain
  3. Protected objects are stored only on read-only domain controllers
  4. Protected objects cannot be moved between organizational units at all
Show answer and explanation

Correct answer: A. Permission inheritance is disabled on protected accounts and groups, so they do not pick up permissions from a new parent

Inheritance is disabled on protected accounts and groups, so they do not acquire permissions from whatever organizational unit they are placed in, and the templating process keeps their permissions consistent regardless of location. A tester who hoped to weaken a protected group by moving it under a loosely delegated organizational unit will find the delegated rights do not apply. This design limits a common escalation idea and keeps the effective permissions on crown-jewel groups predictable for defenders.

Why the other options are wrong

  • B. Moving a protected object does not relocate it to the forest root domain.
  • C. Protected objects are not confined to read-only domain controllers.
  • D. Protected objects can be moved; the point is that they do not inherit permissions after the move.

Question 24

Joseph works as a Network Administrator for WebTech Inc. He has to set up a centralized area on the network so that each employee can share resources and documents with one another.

Which of the following will he configure to accomplish the task?

  1. WEP
  2. VPN
  3. Intranet
  4. Extranet
Show answer and explanation

Correct answer: C. Intranet

An intranet is a private network that allows employees within an organization to share resources, documents, and information with one another. It is specifically designed for internal organizational communication and collaboration. WEP (A) is a wireless encryption standard, VPN (B) is for secure remote access over public networks, and extranet (D) is for sharing resources with external partners, not for internal employee collaboration.

Why the other options are wrong

  • A. WEP is a wireless security encryption protocol, not a centralized resource sharing platform.
  • B. VPN provides secure remote access over public networks, not internal resource sharing infrastructure.
  • D. Extranet is for sharing resources with external partners and organizations, not internal employees.

Question 25

A defender sees a burst of successful event 4768 entries on a domain controller showing Pre-Authentication Type 0 for several different user accounts, all requested from one workstation within a minute. Which MITRE ATT&CK technique does this evidence most likely indicate?

  1. AS-REP Roasting
  2. Kerberoasting
  3. Silver Ticket
  4. Password Spraying
Show answer and explanation

Correct answer: A. AS-REP Roasting

Pre-Authentication Type 0 in event 4768 means a TGT was issued without pre-authentication, which happens only for accounts set with Do not require Kerberos preauthentication. Without the encrypted timestamp, anyone can request an AS-REP for such an account and receive data encrypted with a key derived from that user's password, then guess the password offline. A burst of these requests for several accounts from one host fits AS-REP Roasting, and the remediation is to require pre-authentication on every account.

Why the other options are wrong

  • B. Kerberoasting targets service tickets and appears as 4769 events, not as TGT requests made without pre-authentication.
  • C. A Silver Ticket is forged with a service key and never involves the KDC, so it produces no 4768 entries.
  • D. Password Spraying produces failed pre-authentication attempts across many accounts, not successfully issued TGTs with no pre-authentication.

25 questions in. Want the rest? The first half of the pack, free by email · The full pack

Question 26

You work as a Web developer in the IBM Inc. Your area of proficiency is PHP. Since you have proper knowledge of security, you are aware of rainbow table attacks. For mitigating this attack, you design the PHP code based on the following algorithm:

key = hash(password + salt)
for 1 to 65000 do
    key = hash(key + salt)

Which of the following techniques are you implementing in the above algorithm?

  1. Key strengthening
  2. Hashing
  3. Sniffing
  4. Salting
Show answer and explanation

Correct answer: A. Key strengthening

The algorithm implements key strengthening (also called key stretching), which iteratively applies the hash function 65,000 times with salt to increase computational cost and resist rainbow table attacks. This technique deliberately slows down the hashing process, making brute-force and rainbow table attacks computationally expensive while still using salt and hashing as component methods.

Why the other options are wrong

  • B. While hashing is a component of the algorithm, the primary technique being implemented is key strengthening, not just hashing.
  • C. Sniffing is a network attack technique unrelated to password protection algorithms.
  • D. While salting is a component technique used in the algorithm, the overarching methodology is key strengthening through iteration.

Question 27

An assessment explains how Active Directory automatically undoes unauthorized permission changes on protected groups. Which process performs this, and where does it run by default?

  1. The Knowledge Consistency Checker, running on every domain controller
  2. The garbage collection process, running on the schema master
  3. Directory replication, running between all domain controllers
  4. SDProp, running every 60 minutes on the PDC Emulator
Show answer and explanation

Correct answer: D. SDProp, running every 60 minutes on the PDC Emulator

SDProp runs by default every 60 minutes on the domain controller that holds the PDC Emulator role. It compares the permissions on each protected account and group against the AdminSDHolder template and resets any that differ. This is why attacker-added rights on groups like Domain Admins tend to disappear within an hour unless the template itself is altered. A defender uses this behavior to detect tampering, and a tester notes that short-lived ACL edits on protected objects are an unreliable persistence method.

Why the other options are wrong

  • A. The Knowledge Consistency Checker builds replication topology and does not reset protected group permissions.
  • B. Garbage collection removes tombstoned objects and is unrelated to permission templating.
  • C. Replication copies directory changes between controllers but does not compare against the AdminSDHolder template.

Question 28

Raw netcat shells and telnet terminals share which characteristic?

  1. Ability to send commands to a target machine.
  2. Ability to adapt output to the size of display window
  3. Shells and terminals are exactly the same.
  4. Ability to process standard output control sequences.
Show answer and explanation

Correct answer: A. Ability to send commands to a target machine.

Both raw netcat shells and telnet terminals share the fundamental ability to send commands to a target machine and receive responses. This is their primary shared characteristic as basic command-execution interfaces.

Why the other options are wrong

  • B. Neither raw netcat nor telnet adapts output to display window size; they lack terminal control features.
  • C. Shells and terminals are not the same, terminals provide enhanced features like line editing and signal handling that shells lack.
  • D. Raw shells do not process control sequences like cursor positioning or formatting that full terminals handle.

Question 29

Your company has decided that the risk of performing a penetration test is too great. You would like to figure out other ways to find vulnerabilities on their systems, which of the following is MOST likely to be a valid alternative?

  1. Network scope Analysis
  2. Baseline Data Reviews
  3. Patch Policy Review
  4. Configuration Reviews
Show answer and explanation

Correct answer: D. Configuration Reviews

When penetration testing is deemed too risky, configuration reviews provide a direct way to identify vulnerabilities by examining system settings, security controls, and deviations from secure baselines without the active testing that creates operational risk. This is a legitimate vulnerability identification method that avoids the dangers of live penetration testing.

Why the other options are wrong

  • A. Network scope analysis identifies what systems exist but does not inherently reveal vulnerabilities in those systems.
  • B. Baseline data reviews compare current state to historical state but require a baseline to already exist and may not identify new vulnerability classes.
  • C. Patch policy review only addresses known vulnerabilities that patches cover, missing configuration-based weaknesses and zero-days.

Question 30

An authenticated Greenbone scan completes, but the scan details for one host show that none of the local security check VTs were executed, even though credentials were configured for it. What is the most likely explanation?

  1. Local security checks run only when safe checks are disabled
  2. The scanner could not log in to that host, so the local security checks did not run
  3. Local security checks are reserved for hosts that have no open ports
  4. Local security checks run only from the second scan of a host onward
Show answer and explanation

Correct answer: B. The scanner could not log in to that host, so the local security checks did not run

In an authenticated scan, Greenbone examines the target from outside over the network and from inside using a valid user login, logging in to run local security checks. The vulnerability tests in the local security check families are executed only if the scanner was able to log in to the target. When they did not run for a host that had credentials configured, a failed login is the first thing to investigate, because the host's results otherwise look cleaner than they really are.

Why the other options are wrong

  • A. Safe checks govern whether potentially damaging remote checks run; they do not decide whether local checks execute.
  • C. Local checks depend on a successful login over a network service, so a host with nothing reachable is the least likely to receive them.
  • D. Local checks run in any scan where the login succeeds; there is no rule that delays them to a later scan.

Question 31

Which of the following best describes a server side exploit?

  1. Attack on the physical machine
  2. Attack of a service listening on a network port
  3. Attack that escalates user privilege to root or administrator
  4. Attack of a client application that retrieves content from the network
Show answer and explanation

Correct answer: B. Attack of a service listening on a network port

A server-side exploit targets a service listening on a network port, such as a web server, database server, or other networked service. The attack is directed at the server application itself rather than the underlying hardware or client software. This contrasts with client-side exploits which target applications on end-user machines.

Why the other options are wrong

  • A. Physical machine attacks are hardware-level attacks, not server-side exploits.
  • C. Privilege escalation is a post-exploitation technique, not a definition of server-side exploits.
  • D. Attacks on client applications that retrieve content are client-side exploits, not server-side exploits.

Question 32

An assessment finds an unexpected account in the Schema Admins group. In terms of standing privilege, how should the tester characterize what this membership grants by default?

  1. Full local administrator rights on all domain controllers in the forest
  2. The ability to reset the password of any user in the domain
  3. The ability to modify the Active Directory schema, with few other default rights
  4. Replication rights that allow pulling password hashes from a domain controller
Show answer and explanation

Correct answer: C. The ability to modify the Active Directory schema, with few other default rights

Schema Admins is a universal group in the forest root domain whose members are the only accounts able to change the Active Directory schema, and then only when the schema is write-enabled. Although a malicious schema change can damage the forest, the group has few default rights beyond the schema and no administrative authority elsewhere, so its scope is narrow compared with Domain Admins or Enterprise Admins. Membership should still be empty outside planned schema work, and any standing member is worth reporting.

Why the other options are wrong

  • A. Schema Admins has no default administrative rights on domain controllers beyond schema modification.
  • B. Resetting arbitrary user passwords is not a right conferred by Schema Admins membership.
  • D. Directory replication rights that expose password data are separate permissions, not granted by Schema Admins.

Question 33

A client wants both an external and an internal penetration test, and the same team will perform both. According to NIST SP 800-115, which order is usually recommended, and why?

  1. Internal first, so the team can map the network before testing the perimeter
  2. Both at once, so perimeter and internal logs line up exactly
  3. Internal first, because internal scans are blocked more often and take longer
  4. External first, so the testers do not gain insider knowledge an outside attacker would lack
Show answer and explanation

Correct answer: D. External first, so the testers do not gain insider knowledge an outside attacker would lack

When both viewpoints are tested, NIST SP 800-115 says the external test usually takes place first. This matters most when the same assessors do both, because working inside first would give them knowledge of the network architecture or system configuration that a real outside adversary would not have, reducing the validity of the external results. For blind testing, scanning externally first also lets logs be reviewed and compared before and during the internal work.

Why the other options are wrong

  • A. Mapping the internal network first hands the team the insider knowledge that undermines the realism of the external test.
  • B. NIST recommends a sequence, external then internal, so logs can be compared before and during internal testing rather than overlapping the two.
  • C. NIST notes that internal scans are blocked less often than external scans, so this reasoning is reversed.

Question 34

After a consent phishing exercise, a client wants to reduce the risk of users granting malicious apps access without blocking user consent entirely. Which Microsoft Entra user consent setting matches Microsoft's recommendation?

  1. Allow user consent for apps from verified publishers, for selected permissions
  2. Allow user consent for apps, for any permission that does not require admin consent
  3. Allow users to consent to application permissions for apps registered in the tenant
  4. Allow user consent only after the user completes multifactor authentication
Show answer and explanation

Correct answer: A. Allow user consent for apps from verified publishers, for selected permissions

By default, users can consent to any permission that does not require administrator consent, which is what consent phishing abuses. Microsoft recommends allowing user consent only for apps from verified publishers. The built-in policy Allow user consent for apps from verified publishers, for selected permissions limits consent to verified publishers and apps registered in the tenant, and only to permissions that administrators classify as low impact. Changing the setting affects only future consent operations, so existing grants still need a separate review.

Why the other options are wrong

  • B. This is the legacy behavior that lets users consent to any app for any permission that does not need admin consent, which is the exposure being reduced.
  • C. Application permissions always require administrator consent, so no user consent setting allows users to grant them.
  • D. Multifactor authentication proves who the user is but does nothing to stop a genuine user from consenting to a malicious app.

Question 35

What is the purpose of the following command:

nc.exe -l -p 2222 -e cmd.exe

  1. It is used to start a persistent listener linked to cmd.exe on port 2222 TCP
  2. It is used to start a listener linked to cmd.exe on port 2222 TCP
  3. It is used to start a listener linked to cmd.exe on port 2222 UDP
  4. It is used to start a persistent listener linked to cmd.exe on port 2222 UDP
Show answer and explanation

Correct answer: B. It is used to start a listener linked to cmd.exe on port 2222 TCP

The nc.exe command with -l (listen) and -p 2222 parameters creates a listener on TCP port 2222. The -e cmd.exe parameter binds the command shell to that listening port. Without a persistence flag or loop mechanism in the command itself, this creates a standard listener that accepts a single connection, not a persistent listener that survives after disconnection. TCP is the default protocol for netcat unless -u is specified.

Why the other options are wrong

  • A. This command creates a standard listener, not a persistent one that would survive client disconnections.
  • C. Netcat uses TCP by default; UDP would require the -u flag which is not present.
  • D. The command lacks persistence mechanisms and uses TCP, not UDP.

Question 36

When attempting to crack a password using Rainbow Tables, what is the output of the reduction function?

  1. A new potential chain
  2. A new potential table
  3. A new potential password
  4. A new potential hash
Show answer and explanation

Correct answer: C. A new potential password

In rainbow table attacks, the reduction function takes a hash as input and produces a new potential password (plaintext), which is then hashed again to continue the chain. The output of the reduction function is therefore a new potential password, which is then hashed again to produce the next link in the chain.

Why the other options are wrong

  • A. A chain is the entire sequence of hash-password pairs, not the output of a single reduction function.
  • B. A table is the complete rainbow table structure, not what a single reduction function outputs.
  • D. Producing a hash is the job of the hash function; the reduction function does the reverse mapping, turning a hash into a candidate plaintext.

Question 37

A defender finds that one standard user account generated event 4769 on a domain controller for dozens of different SPNs within two minutes, each with Ticket Encryption Type 0x17. Which MITRE ATT&CK technique does this evidence most likely indicate?

  1. Golden Ticket
  2. Kerberoasting
  3. AS-REP Roasting
  4. Pass the Ticket
Show answer and explanation

Correct answer: B. Kerberoasting

Event 4769 is logged on domain controllers whenever the KDC receives a service ticket request. A burst of requests for many SPNs from one account, all with type 0x17 (RC4-HMAC), matches Kerberoasting: the requester collects service tickets whose RC4-encrypted portions can be attacked offline to recover service account passwords. Current Windows domains normally issue AES tickets (0x11 or 0x12), so RC4 requests stand out, and ATT&CK detection guidance points to this pattern of RC4 service ticket requests at unusual volume.

Why the other options are wrong

  • A. A Golden Ticket is a forged TGT made with the krbtgt key, which does not explain one account requesting many RC4 service tickets.
  • C. AS-REP Roasting shows up in event 4768 with pre-authentication type 0, not as a burst of 4769 service ticket requests.
  • D. Pass the Ticket reuses stolen tickets for lateral movement and does not involve requesting fresh RC4 tickets for dozens of SPNs.

Question 38

During an engagement, a system owner verbally asks the testers to try a technique that the rules of engagement do not authorize. According to NIST SP 800-115, what is required before the testers deviate from the ROE?

  1. Agreement from whichever employee owns the affected system
  2. Nothing, provided the technique is noted in the final report
  3. Specific permission, normally in writing, from the original signatory or individual in command
  4. Approval from the testing firm's own project manager
Show answer and explanation

Correct answer: C. Specific permission, normally in writing, from the original signatory or individual in command

NIST SP 800-115 states that the assessment plan or ROE should be followed unless specific permission to deviate has been obtained, normally in writing, from the original signatory or individual in command. All assessors should read and understand the plan and review it periodically during the assessment. If questions about scope or level of authorization arise mid-test, the assessors meet with the organization's identified point of contact instead of acting on an informal request from a system owner.

Why the other options are wrong

  • A. A system owner who did not sign the ROE cannot expand the authorization it grants, and a verbal request leaves no record.
  • B. Recording an unauthorized action in the report does not make it authorized; permission must come before the deviation.
  • D. The testing firm cannot authorize itself; permission to deviate comes from the client side that signed the ROE.

Question 39

What difference would you expect to result from running the following commands?

(1) $ dig @ns.domain.com target.com -t AXFR
(2) $ dig @ns.domain.com target.com -t IXFR=1002200301
  1. Command (1) will display incremental information about a domain and command (2) will provide only 1002200301 bytes of information
  2. Command (1) will display all information about a domain and command (2) will provide only incremental updates from SOA 1002200301
  3. Command (1) will display all information about a domain and command (2) will provide only incremental updates up to SOA 1002200301
  4. Command (1) will display all information about a domain and command (2) will provide only 1002200301 bytes of information
Show answer and explanation

Correct answer: B. Command (1) will display all information about a domain and command (2) will provide only incremental updates from SOA 1002200301

Command (1) with AXFR requests a full zone transfer, so it returns every record in the zone. Command (2) with IXFR=1002200301 requests an incremental zone transfer: the transfer contains all changes made to the zone since the SOA serial number was 1002200301. The updates therefore run from that serial onward, which is what option B states.

Why the other options are wrong

  • A. AXFR is a full zone transfer, not incremental, and the number after IXFR= is an SOA serial number, not a byte count.
  • C. IXFR=1002200301 returns the changes made since that serial, so the updates run from it onward, not up to it.
  • D. The number after IXFR= is the SOA serial the incremental transfer starts from, not a limit on the number of bytes.

Question 40

A client with 7200 employees in 14 cities (all connected via high speed WAN connections) has suffered a major external security breach via a desktop which cost them more than $172,000 and the loss of a high profile client. They ask you to perform a desktop vulnerability assessment to identify everything that needs to be patched. Using Nessus you find tens of thousands of vulnerabilities that need to be patched. In the report you find workstations running several Windows OS versions and service pack levels, anti-virus software from multiple vendors, several major browser versions and different versions of Acrobat Reader.

Which of the following recommendations should you provide with the report?

  1. The client should standardize their desktop software
  2. The client should eliminate workstations to reduce workload
  3. The client should hire more people to catch up on patches
  4. The client should perform monthly vulnerability assessments
Show answer and explanation

Correct answer: A. The client should standardize their desktop software

The presence of tens of thousands of vulnerabilities stems from heterogeneous systems running multiple OS versions, service pack levels, antivirus vendors, browser versions, and Acrobat versions. Standardizing on approved desktop configurations reduces the attack surface and management overhead significantly. This is a long-term strategic recommendation that addresses the root cause of the vulnerability proliferation.

Why the other options are wrong

  • B. Eliminating workstations is impractical and doesn't address the actual security issue.
  • C. Hiring more staff to patch doesn't solve the fundamental problem of managing heterogeneous systems.
  • D. Monthly assessments identify vulnerabilities but don't address the underlying cause of proliferation.

Question 41

An engagement places an intermediary host on the internet between compromised systems and the actual C2 server, so victim traffic terminates at the intermediary and is forwarded onward. What is the primary operational benefit of this design?

  1. It encrypts C2 content that would otherwise be plaintext
  2. It masks the true destination of C2 traffic and shields the back-end infrastructure
  3. It removes the need for the implant to check in on a schedule
  4. It converts an interactive session into an asynchronous beacon
Show answer and explanation

Correct answer: B. It masks the true destination of C2 traffic and shields the back-end infrastructure

An external proxy, commonly a redirector, sits in front of the real server so victims communicate only with the intermediary, which then forwards traffic to the back end. This masks the true destination and keeps the core infrastructure from being exposed or easily taken down when a redirector is burned. It performs forwarding, not encryption, so it does not add confidentiality on its own, and it has nothing to do with check-in scheduling or switching between beacon and session modes.

Why the other options are wrong

  • A. A redirector forwards traffic and does not itself add encryption to the channel.
  • C. Interposing a redirector does not change whether or how often an implant checks in.
  • D. Redirection concerns the network path, not conversion between session and beacon modes.

Question 42

You have been contracted to penetration test an e-mail server for a client that wants to know for sure if the sendmail service is vulnerable to any known attacks.

You have permission to run any type of test, but the mail service must stay available. How will you proceed to give the client the most valid answer?

  1. Run all known sendmail exploits against the server and see if you can compromise the service, even if it crashed the machine or service
  2. Run a banner grabbing vulnerability checker to determine the sendmail version and patch level, then look up and report all the vulnerabilities that exist for that version and patch level
  3. Run all sendmail exploits that will not crash the server and see if you can compromise the service
  4. Log into the e-mail server and determine the sendmail version and patch level, then look up and report all the vulnerabilities that exist for that version and patch level
Show answer and explanation

Correct answer: C. Run all sendmail exploits that will not crash the server and see if you can compromise the service

In a legitimate penetration test, the goal is to identify vulnerabilities while maintaining system stability and availability. Running exploits that could crash the server (option A) would take the client's mail service down, which the client cannot accept. Option B uses banner grabbing which may miss zero-days or misconfigurations. Option D only lists the vulnerabilities published for a version and does not confirm that any of them can be exploited on this server. Option C balances thorough testing with responsible practice by running non-destructive exploits, providing actionable vulnerability data without causing damage to the client's infrastructure.

Why the other options are wrong

  • A. Exploits that may crash the machine or service would take the client's mail service down, so they cannot be run here.
  • B. Banner grabbing alone may miss vulnerabilities from misconfigurations or zero-day exploits.
  • D. Looking up the vulnerabilities published for the version and patch level does not confirm that any of them can actually be exploited on this server.

Question 43

During a penetration test you discover a valid set of SSH credentials to a remote system.

How can this be used to your advantage in a Nessus scan?

  1. This information can be entered under the 'Hydra' tab to launch a brute-force password attack.
  2. There isn't an advantage as Nessus will ultimately discover this information.
  3. The 'SSH' box can be checked to let Nessus know the remote system is running
  4. This information can be entered under the 'credentials' tab to allow Nessus to log into the system
Show answer and explanation

Correct answer: D. This information can be entered under the 'credentials' tab to allow Nessus to log into the system

Valid SSH credentials can be entered in Nessus's Credentials tab to enable authenticated scanning. This allows Nessus to log into the remote system and perform deeper, more comprehensive vulnerability assessments from within the system rather than just from external perspective. Authenticated scans detect vulnerabilities that unauthenticated scans cannot. There is no 'Hydra' tab in Nessus, checking an SSH box alone does not authenticate the scan, and Nessus cannot independently discover existing credentials.

Why the other options are wrong

  • A. Nessus does not have a 'Hydra' tab; Hydra is a separate password-cracking tool.
  • B. Credentials provide significant scanning advantage; authenticated scans detect far more vulnerabilities than unauthenticated ones.
  • C. Simply checking an SSH box does not provide authentication; credentials must be explicitly provided in the credentials configuration.

Question 44

John works as an Ethical Hacker for Example Inc. He wants to find out the ports that are open in Example's server using a port scanner. However, he does not want to establish a full TCP connection.

Which of the following scanning techniques will he use to accomplish this task?

  1. TCP FIN
  2. Xmas tree
  3. TCP SYN/ACK
  4. TCP SYN
Show answer and explanation

Correct answer: D. TCP SYN

TCP SYN scanning (half-open scanning) establishes only the initial SYN handshake without completing a full TCP three-way connection, making it stealthier and faster than a full connection. It sends a SYN packet and waits for a SYN-ACK response to determine if a port is open, without sending the final ACK to complete the connection.

Why the other options are wrong

  • A. TCP FIN sends FIN packets and relies on RST responses, which is less reliable for determining open ports.
  • B. Xmas tree scanning sends packets with multiple flags set and is easily detected by firewalls and IDS systems.
  • C. A TCP SYN/ACK (full-open) scan completes the whole three-way handshake, which is exactly the full TCP connection John wants to avoid.

Question 45

A hybrid client has ruled out federation. They want Microsoft Entra ID to deny a cloud sign-in at once when the on-premises account is disabled, locked out, or outside its permitted logon hours. Which sign-in method meets this requirement?

  1. Password hash synchronization
  2. Pass-through authentication
  3. Cloud-only accounts with no synchronization
  4. Password hash synchronization with smart lockout enabled
Show answer and explanation

Correct answer: B. Pass-through authentication

With pass-through authentication, Entra ID places the sign-in request in a queue, and an on-premises authentication agent validates the username and password against Active Directory. The domain controller returns success, failure, password expired, or locked out, so the on-premises account policy is enforced at the moment of sign-in. This includes disabled accounts and logon hour restrictions. Password hash synchronization validates in the cloud and only learns of account state changes after the next synchronization.

Why the other options are wrong

  • A. Password hash synchronization does not immediately enforce changes in on-premises account state, so a disabled user keeps cloud access until the next sync.
  • C. Cloud-only accounts have no on-premises account whose state or logon hours could be checked.
  • D. Smart lockout limits failed attempts in Entra ID but does not make Entra ID evaluate on-premises account state or logon hours.

Question 46

You are using the Nmap Scripting Engine and want detailed output of the script as it runs.

Which option do you include in the command string?

  1. nmap --script-output --script=ssh-hostkey.nse 155.65.3.221 -p 22
  2. nmap --script-trace --script=ssh-hostkey.nse 155.65.3.221 -p 22
  3. nmap --script-verbose --script=ssh-hostkey.nse 155.65.3.221 -p 22
  4. nmap -v --script=ssh-hostkey.nse 155.65.3.221 -p 22
Show answer and explanation

Correct answer: B. nmap --script-trace --script=ssh-hostkey.nse 155.65.3.221 -p 22

The --script-trace option in Nmap provides detailed output showing script execution details as the script runs. This flag displays debugging information and verbose output specific to NSE script execution. Option A uses invalid syntax (--script-output). Option C uses --script-verbose, which is not an Nmap option. Option D uses -v for general verbosity which is less detailed than script-specific tracing.

Why the other options are wrong

  • A. The --script-output flag is not the correct Nmap option for detailed script execution output.
  • C. --script-verbose is not an Nmap option, so it cannot request detailed script output.
  • D. The -v flag provides general verbosity but is not as detailed as --script-trace for NSE script-specific output.

Question 47

A defender who is hunting for DNS-based command and control builds analytics around which set of observable indicators?

  1. TLS certificates signed by a public authority
  2. Beacons that use the default HTTPS port
  3. Short host names resolved by the system resolver
  4. High query volume, unusually long subdomains, and high-entropy or encoded labels
Show answer and explanation

Correct answer: D. High query volume, unusually long subdomains, and high-entropy or encoded labels

DNS tunneling tends to produce far more queries than normal, with long subdomains that carry encoded data and therefore show high entropy, so defenders alert on that combination of volume, label length, and encoded patterns. Publicly signed TLS certificates and traffic on the default HTTPS port are ordinary and not DNS indicators, and short names resolved by the built-in resolver describe benign activity rather than the signature of a covert DNS channel.

Why the other options are wrong

  • A. Publicly signed certificates are a normal TLS property and are not an indicator of DNS tunneling.
  • B. Use of the default HTTPS port is expected behavior and is unrelated to DNS channel detection.
  • C. Short names resolved by the system resolver reflect ordinary activity, not covert DNS tunneling.

Question 48

Before an engagement, the client's security operations team asks how analysts will tell test traffic apart from a real attack. According to NIST SP 800-115, what should the assessment plan include for this purpose?

  1. The IP addresses of the machines from which assessment activity will be conducted
  2. The passwords the testers plan to try against in-scope accounts
  3. The full exploit code for each technique the testers might attempt
  4. A guarantee that testing will trigger no intrusion detection alerts
Show answer and explanation

Correct answer: A. The IP addresses of the machines from which assessment activity will be conducted

NIST SP 800-115 says the assessment plan should identify the IP addresses of the machines from which assessment activities will be conducted, so administrators can tell penetration testing attacks apart from real malicious ones. If it suits the goals of the assessment, security staff can configure intrusion detection and other monitoring to ignore those addresses during testing; when detection itself is being evaluated, they keep alerting in place and use the addresses to confirm whether an alert came from the test.

Why the other options are wrong

  • B. Planned passwords are not shared in advance and do nothing to help analysts recognize where test traffic originates.
  • C. Exploit code is not handed to the monitoring team, and it would not tell analysts which traffic belongs to the test.
  • D. Testers cannot guarantee that no alerts will fire; the plan lists source addresses precisely so alerts can be traced to the test.

Question 49

You are conducting a penetration test for a private contractor located in Singapore. The scope extends to all internal hosts controlled by the company, you have gathered necessary hold-harmless and nondisclosure agreements.

Which action by your group can incur criminal liability under Chapter 50A, Computer Misuse Act?

  1. Exploiting vulnerable web services on internal hosts
  2. Attempts at social engineering employees via telephone calls
  3. Testing denial-of-service tolerance of the communications provider
  4. Cracking password hashes on the corporate domain server
Show answer and explanation

Correct answer: C. Testing denial-of-service tolerance of the communications provider

Under Singapore's Computer Misuse Act (Chapter 50A), conducting denial-of-service attacks against third-party systems (the communications provider) without their explicit authorization incurs criminal liability. While the hold-harmless agreements cover the contractor's internal systems, they do not extend to testing the communications provider's infrastructure. Options A, B, and D are authorized activities against the in-scope internal systems covered by the agreements.

Why the other options are wrong

  • A. Exploiting vulnerable web services on authorized internal hosts is within the scope of the authorized penetration test.
  • B. Social engineering employees via telephone is a standard authorized penetration testing technique within the agreed scope.
  • D. Cracking password hashes on the corporate domain server is an authorized activity covered by the rules of engagement.

Question 50

What command will correctly reformat the Unix passwdcopy and shadowcopy files for input to John the Ripper?

  1. ./unshadow passwd copy shadowcopy > johnfile
  2. ./unshadow passwdcopy shadowcopy > johnfile
  3. ./unshadow shadowcopy passwdcopy > johnfile
  4. ./unshadow shadowcopy > johnfile passwdcopy
Show answer and explanation

Correct answer: B. ./unshadow passwdcopy shadowcopy > johnfile

The unshadow utility that ships with John the Ripper combines a Unix passwd file and its shadow file into one file John can crack. The syntax is unshadow passwd_file shadow_file > output_file: the passwd copy comes first, the shadow copy second, and the combined output is redirected to a new file. Option B uses exactly that order and redirection.

Why the other options are wrong

  • A. It splits the passwd file name into two arguments, so unshadow is not given the passwdcopy and shadowcopy files as its two inputs.
  • C. It reverses the file order; unshadow expects the passwd file first and the shadow file second.
  • D. The shell still passes shadowcopy and passwdcopy as the two arguments, so the shadow file comes first and the order is wrong.

50 questions in. Want the rest? The first half of the pack, free by email · The full pack

Question 51

A technique puts one domain name in the TLS SNI field and a different domain name in the HTTP Host header, so the traffic appears to go to a trusted site while a shared content delivery network routes it elsewhere. What is this technique called?

  1. Protocol tunneling
  2. A domain generation algorithm
  3. Domain fronting
  4. Port knocking
Show answer and explanation

Correct answer: C. Domain fronting

Domain fronting relies on a content delivery network that serves many customers: the TLS SNI names an allowed front domain while the inner HTTP Host header names the real destination, and the network may route to the Host value after unwrapping TLS. To observers the connection looks like it is headed to the trusted front. Tunneling encapsulates one protocol in another, a generation algorithm invents destination domains, and port knocking is an access trigger, so none matches the SNI-versus-Host mismatch.

Why the other options are wrong

  • A. Protocol tunneling encapsulates one protocol inside another; it does not exploit mismatched SNI and Host fields.
  • B. A domain generation algorithm dynamically invents destination domains rather than fronting through a shared network.
  • D. Port knocking is a sequence used to open access, unrelated to TLS and HTTP header fields.

Question 52

A tester evaluating delegation finds the help-desk team placed in the Account Operators group. Which statement correctly bounds what that group can do by default?

  1. It can modify user rights assignments on domain controllers
  2. It can change the membership of the Domain Admins group
  3. It can take ownership of any object in the directory
  4. It can create and modify ordinary accounts but cannot manage protected administrative groups
Show answer and explanation

Correct answer: D. It can create and modify ordinary accounts but cannot manage protected administrative groups

Account Operators can create and modify most ordinary user and group accounts and can sign in locally to domain controllers, which already makes it a sensitive delegation. It cannot modify user rights, and it cannot manage the Administrators, Server Operators, Account Operators, Backup Operators, or Print Operators groups or administrator accounts. A tester notes that membership still provides a meaningful foothold near the directory, but the group is not a direct path to controlling the highest-privileged administrative groups.

Why the other options are wrong

  • A. Members of Account Operators cannot modify user rights.
  • B. Account Operators cannot manage protected administrative groups such as Domain Admins.
  • C. Taking ownership of any directory object is an Administrators capability, not an Account Operators one.

Question 53

A client enables the Microsoft Entra admin consent workflow and adds a help desk group as reviewers. The client believes this lets the group approve any app request. What does designating a reviewer actually do?

  1. It grants the reviewers the Cloud Application Administrator role for the duration of each request
  2. It lets reviewers approve any request, including Microsoft Graph application permissions
  3. It routes requests to the reviewers, who can approve only if they already hold rights to grant that consent
  4. It disables user consent so that every app request must pass through the reviewers
Show answer and explanation

Correct answer: C. It routes requests to the reviewers, who can approve only if they already hold rights to grant that consent

The admin consent workflow lets a user who cannot consent to an app send a request that is emailed to designated reviewers. Being a reviewer does not elevate privileges: to approve, the reviewer must already have the permissions needed to grant admin consent for that app. Reviewers can view, block, or deny requests, but only Global Administrators can approve requests for Microsoft Graph app roles. An assessor should therefore check reviewer role assignments rather than assume the reviewer list confers approval rights.

Why the other options are wrong

  • A. The workflow assigns no directory role to reviewers; their existing role assignments decide what they can approve.
  • B. Requests for Microsoft Graph application permissions can be approved only by Global Administrators.
  • D. Enabling the workflow only adds a request path for apps a user cannot consent to; it does not change the user consent settings.

Question 54

During an authorized engagement a tester has an active session on a compromised Windows host and wants to run framework code that enumerates logged-on users and collects local configuration data from that session. Which Metasploit module type is designed for this work after access is gained?

  1. An exploit module, which is required for any action taken on a host
  2. A post module, built to run against an existing session
  3. An encoder module, which reshapes an existing session
  4. A nop module, which pads data gathered from a session
Show answer and explanation

Correct answer: B. A post module, built to run against an existing session

Metasploit groups its code into module types by role. Post modules are the ones intended to run after a machine has been compromised, performing tasks such as gathering, collecting, or enumerating data from an active session. Exploits leverage a vulnerability to gain code execution in the first place, so they are not the right tool once a session already exists. Choosing the post category matches the goal of enumerating users and local data through the session the tester already holds.

Why the other options are wrong

  • A. Exploit modules exist to gain code execution through a vulnerability, not to collect data from a session that is already open.
  • C. Encoders transform the bytes of a payload to meet format or character constraints and do nothing with a live session.
  • D. Nop modules generate no-operation instructions used in payload construction and have no data-gathering function.

Question 55

While reviewing Active Directory with authorization, a tester lists the user accounts that have a service principal name (SPN) registered. What role does an SPN play in Kerberos authentication?

  1. It stores the service account's password hash so the KDC can verify sign-ins
  2. It lists the users who are permitted to request tickets for the service
  3. It marks the account as trusted for delegation to any other service
  4. It ties a service instance to the sign-in account whose key protects its tickets
Show answer and explanation

Correct answer: D. It ties a service instance to the sign-in account whose key protects its tickets

An SPN uniquely identifies a service instance, and Kerberos uses it to associate that instance with the account the service signs in as. A client composes the SPN and asks the KDC for a ticket, and the KDC encrypts that service ticket with the key of the account holding the SPN. A given SPN can be registered on only one account. When that account is an ordinary user account with a human-set password, its service tickets become a target for offline guessing, which is why SPN-bearing user accounts are a standard review item.

Why the other options are wrong

  • A. The SPN is only a name that maps a service to an account; the account's keys are separate secrets held by the directory.
  • B. An SPN does not restrict who may ask for tickets, since any client holding a TGT can request a service ticket for any SPN.
  • C. Delegation trust is controlled by separate account settings such as the trusted-for-delegation flag, not by registering an SPN.

Question 56

The scope of your engagement is to include a target organization located in California with a /24 block of addresses that they claim to completely own.

Which site could you utilize to confirm that you have been given accurate information before starting reconnaissance activities?

  1. www.whois.net
  2. www.arin.net
  3. www.apnic.net
  4. www.ripe.net
Show answer and explanation

Correct answer: B. www.arin.net

ARIN (American Registry for Internet Numbers) is the authoritative Regional Internet Registry for North America, including California. ARIN maintains the definitive records of IP address allocations and ownership for the region. Option A (whois.net) is a generic WHOIS lookup but less authoritative than the RIR directly. Option C (APNIC) covers Asia-Pacific regions. Option D (RIPE) covers Europe, the Middle East, and Central Asia. For a California-based organization, ARIN is the correct authoritative source.

Why the other options are wrong

  • A. While whois.net provides lookups, it is not the authoritative registry for North American IP addresses.
  • C. APNIC is the Regional Internet Registry for Asia-Pacific, not North America.
  • D. RIPE is the Regional Internet Registry for Europe and other regions, not North America.

Question 57

Which of the following Nmap commands is used to perform a UDP port scan?

  1. nmap -sS
  2. nmap -sY
  3. nmap -sN
  4. nmap -sU
Show answer and explanation

Correct answer: D. nmap -sU

The nmap -sU command performs a UDP port scan. The -sU flag specifically instructs Nmap to scan UDP ports rather than the default TCP ports. This scan type sends UDP packets to target ports and analyzes responses to determine port status, making it essential for discovering UDP-based services like DNS, DHCP, and SNMP.

Why the other options are wrong

  • A. nmap -sS performs a TCP SYN scan, not a UDP scan.
  • B. nmap -sY performs an SCTP INIT scan for SCTP protocol detection, not UDP scanning.
  • C. nmap -sN performs a TCP Null scan, not a UDP scan.

Question 58

You are conducting a penetration test for a private company located in the UK. The scope extends to all internal and external hosts controlled by the company.

You have gathered necessary hold-harmless and non-disclosure agreements.

Which action by your group can incur criminal liability under the Computer Misuse Act 1990?

  1. Sending crafted packets to internal hosts in an attempt to fingerprint the operating systems
  2. Recovering the SAM database of the domain server and attempting to crack passwords
  3. Installing a password sniffing program on an employee's personal computer without consent
  4. Scanning open ports on internal user workstations and exploiting vulnerable applications
Show answer and explanation

Correct answer: C. Installing a password sniffing program on an employee's personal computer without consent

Under the UK Computer Misuse Act 1990, installing a password sniffing program on an employee's personal computer without consent constitutes unauthorized access and modification of computer material, which is a criminal offense regardless of authorization scope. The authorization letter covers systems 'controlled by the company,' but an employee's personal computer is not company-controlled property. The act requires authorization to operate on systems, and the other options fall within authorized penetration testing activities explicitly mentioned in the scope.

Why the other options are wrong

  • A. OS fingerprinting via crafted packets on internal hosts is within authorized penetration testing scope.
  • B. Recovering and cracking the SAM database is explicitly authorized penetration testing activity within the engagement scope.
  • D. Port scanning and exploiting vulnerable applications on internal workstations are authorized under the stated engagement scope.

Question 59

You are running a vulnerability scan on a remote network and the traffic is not making it to the target system. You investigate the connection issue and determine that the traffic is making it to the internal interface of your network firewall, but not making it to the external interface or to any systems outside your firewall.

What is the most likely problem?

  1. Your network firewall is blocking the traffic
  2. The NAT or PAT tables on your network based firewall are filling up and dropping the traffic
  3. A host based firewall is blocking the traffic
  4. Your ISP is blocking the traffic
Show answer and explanation

Correct answer: A. Your network firewall is blocking the traffic

The traffic successfully reaches the internal interface of your firewall but does not pass through the external interface. This indicates the firewall itself is the blocking point, it is filtering the outbound traffic to the remote network. The firewall's rules are preventing the vulnerability scan traffic from exiting to reach the target systems.

Why the other options are wrong

  • B. NAT/PAT table exhaustion would cause drops, but the scenario states traffic reaches the internal interface, so table fill-up would manifest differently.
  • C. A host-based firewall on your own scanning machine would block traffic before it reaches your network firewall's internal interface.
  • D. ISP blocking would not prevent traffic from reaching your firewall's external interface; the ISP issue would manifest beyond that point.

Question 60

You have compromised a Windows XP system and injected the Meterpreter payload into the lsass process. While looking over the system you notice that there is a popular password management program on the system.

When you attempt to access the file that contains the password you find it is locked. Further investigation reveals that it is locked by the passmgr process.

How can you use the Meterpreter to get access to this file?

  1. Use the getuid command to determine the user context the process is running under, then use the imp command to impersonate that user.
  2. Use the getpid command to determine the user context the process is running under, then use the imp command to impersonate that user.
  3. Use the execute command to run the passmgr executable. That will give you access to the file.
  4. Use the migrate command to jump to the passmgr process. That will give you access to the file.
Show answer and explanation

Correct answer: D. Use the migrate command to jump to the passmgr process. That will give you access to the file.

The migrate command in Meterpreter transfers the payload from the current process (lsass) into the target process (passmgr). By migrating to the passmgr process, the Meterpreter payload runs in the same process context as the password manager, gaining access to files and resources that process owns or has locked. This allows you to bypass file locks and access data restricted to that process. The getuid and getpid commands only identify process information; migrate actually moves the payload to gain the access you need.

Why the other options are wrong

  • A. getuid only reports the user context and imp impersonates that user, but impersonation does not release a file locked by the passmgr process; migrating into that process is the correct approach.
  • B. getpid returns process IDs, not user context, and impersonation doesn't gain access to process-locked files.
  • C. Executing the passmgr executable again doesn't give Meterpreter access to files already locked by the running process.

Question 61

An operator examines an implant that connects to the C2 server asynchronously at intervals, retrieves whatever tasks are queued, executes them, and returns the output on a later connection. Which mode of operation does this describe?

  1. Interactive session mode
  2. A multi-hop proxy chain
  3. Beacon mode
  4. A staged payload download
Show answer and explanation

Correct answer: C. Beacon mode

Beacon mode is an asynchronous style in which the implant periodically checks in with the server, pulls any queued tasks, runs them, and sends results back on a subsequent check-in. That interval-driven behavior contrasts with an interactive session, which keeps a real-time connection so commands and output flow immediately. A proxy chain concerns how traffic is routed, and a staged download concerns how the implant is delivered, so neither describes the check-in pattern.

Why the other options are wrong

  • A. An interactive session uses a real-time persistent connection, not periodic interval check-ins.
  • B. A multi-hop proxy chain describes traffic routing, not how an implant retrieves and returns tasks.
  • D. A staged download describes delivery of the implant, not its ongoing communication rhythm.

Question 62

The rules of engagement state that no information about target addresses may be sent to any third-party service during the test. Which NSE script category should the tester review and exclude to honor that rule?

  1. broadcast
  2. external
  3. version
  4. default
Show answer and explanation

Correct answer: B. external

Nmap places scripts in the external category when they may send data to a third-party database or other network resource; whois-ip, which contacts whois servers to learn about the target address, is the documented example. Nmap warns that operators of such services may record what is sent, often including the scanner's IP address and the target's address. Most scripts talk only between the scanning computer and the target, so excluding the external category keeps target data inside the engagement as the rules require.

Why the other options are wrong

  • A. Broadcast scripts discover hosts by broadcasting on the local network rather than sending target data to outside services.
  • C. Version scripts extend service version detection and cannot be selected explicitly, so they are not how third-party lookups are controlled.
  • D. Default is the set of scripts run with the -sC or -A options, and that membership does not identify which scripts contact third parties.

Question 63

You are pen testing a network and have shell access to a machine via Netcat. You try to use ssh to access another machine from the first machine.

What is the expected result?

  1. The ssh connection will succeed if you have root access on the intermediate machine
  2. The ssh connection will fail
  3. The ssh connection will succeed
  4. The ssh connection will succeed if no password required
Show answer and explanation

Correct answer: D. The ssh connection will succeed if no password required

A raw Netcat shell has no terminal attached. The ssh client reads passwords and host-key confirmations from the terminal (/dev/tty), or from an askpass program when a graphical display is available, so inside a Netcat shell it cannot prompt for a password. The connection therefore only succeeds when no password has to be typed, for example with key-based authentication to a host that is already trusted. This is the same reason sudo cannot read its password from a Netcat shell.

Why the other options are wrong

  • A. Root access on the intermediate machine does not give ssh a terminal to prompt for a password.
  • B. The connection can still succeed when no password is needed, for example with key-based authentication.
  • C. Without a terminal, ssh cannot prompt for a password, so it does not succeed in every case.

Question 64

A defender sees a burst of failed event 4768 entries on a domain controller, all from one internal host, each with Result Code 0x6 and a different account name. What does this evidence most likely indicate?

  1. Service ticket requests that were issued with RC4 encryption
  2. A client whose clock differs too much from the domain controller
  3. Attempts against user names that do not exist, suggesting account enumeration
  4. Successful TGT requests for accounts that skip pre-authentication
Show answer and explanation

Correct answer: C. Attempts against user names that do not exist, suggesting account enumeration

Event 4768 records TGT requests at the KDC, and Result Code 0x6 is KDC_ERR_C_PRINCIPAL_UNKNOWN, meaning the requested user name does not exist in the directory. Because the KDC answers unknown names differently from valid ones, many 0x6 failures with a different name each time from one source suggest someone is testing a list of candidate names to learn which accounts exist. Microsoft's monitoring guidance flags repeated 0x6 results as a possible indicator of an account enumeration attack.

Why the other options are wrong

  • A. RC4 service ticket requests appear as 4769 events with ticket encryption type 0x17, not as 4768 failures with code 0x6.
  • B. An excessive clock difference produces KRB_AP_ERR_SKEW, code 0x25, rather than code 0x6.
  • D. Requests for accounts without pre-authentication succeed with result code 0x0 and pre-authentication type 0, so they are not failures.

Question 65

You are sending a file to an FTP server. The file will be broken into several pieces of information packets (segments) and will be sent to the server.

The file will again be reassembled and reconstructed once the packets reach the FTP server.

Which of the following information should be used to maintain the correct order of information packets during the reconstruction of the file?

  1. Acknowledge number
  2. TTL
  3. Checksum
  4. Sequence number
Show answer and explanation

Correct answer: D. Sequence number

The sequence number field in TCP headers maintains the correct order of segments during transmission and reassembly. Each segment is assigned a unique sequence number, allowing the receiving system to reconstruct the original file in the correct order regardless of the order in which packets arrive.

Why the other options are wrong

  • A. The acknowledge number confirms receipt of data but does not maintain the order of outgoing segments.
  • B. TTL (Time To Live) controls packet lifespan and has no role in packet ordering.
  • C. Checksum verifies data integrity but does not establish the sequence order of packets.

Question 66

By default Active Directory Controllers store password representations in which file?

  1. %systemroot%\system32\ntds.dit
  2. %systemroot%\ntds\ntds.dit
  3. %systemroot%\ntds\sam.dat
  4. %systemroot%\ntds\sam.dit
Show answer and explanation

Correct answer: B. %systemroot%\ntds\ntds.dit

A domain controller keeps the Active Directory database, including the password representations of domain accounts, in ntds.dit, which is stored in %systemroot%\NTDS by default. That makes %systemroot%\ntds\ntds.dit the correct answer.

Why the other options are wrong

  • A. The ntds.dit in System32 is only the installation copy used when a server is promoted; the live database is in %systemroot%\NTDS.
  • C. sam.dat is not the Active Directory database; domain controllers store account data in ntds.dit.
  • D. There is no sam.dit file; the Active Directory database file is ntds.dit.

Question 67

While reviewing group scoping, a tester notes that one built-in group exists only on domain controllers and its members can administer them. Which group is being described?

  1. Group Policy Creator Owners
  2. Server Operators
  3. Cloneable Domain Controllers
  4. Performance Monitor Users
Show answer and explanation

Correct answer: B. Server Operators

Server Operators exists only on domain controllers and has no default members. Its members can administer domain controllers, performing maintenance such as backup and restore and changing binaries installed on the controllers, which is why Microsoft classifies it as a service administrator account. Because control over domain controller files can translate into control of the directory, a tester treats any standing membership as a high-impact finding and expects the group to remain empty in a properly delegated environment.

Why the other options are wrong

  • A. Group Policy Creator Owners manages Group Policy Objects, not domain controller administration, and is not limited to controllers.
  • C. Cloneable Domain Controllers marks controllers eligible for cloning rather than granting administration of them.
  • D. Performance Monitor Users can read performance counters only and does not administer domain controllers.

Question 68

To keep the initial artifact small, a team arranges for the first program to run on the target to be a tiny component whose only job is to pull a larger implant from a staging server and load it into memory. What is this small initial component called?

  1. A redirector
  2. A listener
  3. A fallback channel
  4. A stager
Show answer and explanation

Correct answer: D. A stager

A stager is a minimal first component used precisely because full implants can be large: it reads the size of the second stage, downloads it, and writes it into allocated memory, after which the fuller implant takes over. This staged approach keeps the initial footprint small. A redirector forwards traffic, a listener receives callbacks on the server, and a fallback channel is a backup communication path, so none of those describes the small download-and-load component.

Why the other options are wrong

  • A. A redirector forwards network traffic toward infrastructure; it does not download and load a second stage.
  • B. A listener runs on the server to receive callbacks; it is not the small program executed on the target.
  • C. A fallback channel is a backup communication path, not the initial loader for a larger implant.

Question 69

Midway through an authorized internal test, the team finds clear signs that a real intruder is active on two in-scope servers. According to NIST SP 800-115, what should the assessors do?

  1. Keep testing those servers so the report captures the intruder's methods
  2. Remove the intruder's tools themselves and then resume the planned tests
  3. Contact outside incident response teams directly before telling the client
  4. Report it immediately to the designated contact and stop assessing the affected systems
Show answer and explanation

Correct answer: D. Report it immediately to the designated contact and stop assessing the affected systems

NIST SP 800-115 says that if an adversary's presence is found during an assessment, it should be reported immediately to the appropriate individual, and assessors should follow the protocol in the assessment plan or rules of engagement. It recommends that assessors stop assessing the systems involved while the organization carries out its response. Testing resumes only after the incident is addressed and the assessors receive approval, and often only the systems directly involved are suspended.

Why the other options are wrong

  • A. NIST recommends stopping assessment of the systems involved while the organization responds, rather than continuing to test them.
  • B. Responding to the intrusion is the organization's job under its own escalation procedures; assessors follow the plan and do not act as responders.
  • C. The plan names who is informed and the client's escalation procedures apply, so testers never bypass the client to reach outside teams.

Question 70

A tester mapping an organization's Azure estate finds three subscriptions. Which statement correctly describes how those subscriptions relate to Microsoft Entra ID?

  1. Each subscription can trust several Entra tenants at once and picks one for each sign-in
  2. Subscriptions authenticate users with their own local accounts, independent of any Entra tenant
  3. Each subscription must have its own dedicated Entra tenant that no other subscription can trust
  4. Each subscription trusts exactly one Entra tenant, while one tenant can be trusted by many subscriptions
Show answer and explanation

Correct answer: D. Each subscription trusts exactly one Entra tenant, while one tenant can be trusted by many subscriptions

Every Azure subscription has a trust relationship with a Microsoft Entra tenant and relies on that directory to authenticate and authorize security principals. A subscription can trust only a single directory, but one tenant can be trusted by many subscriptions. For a tester this means the identities that matter for every subscription in scope live in the trusted tenant, so compromising an identity in that tenant can open access across several subscriptions if role assignments allow it.

Why the other options are wrong

  • A. A subscription trusts only a single directory at a time, not several.
  • B. Subscriptions rely on their trusted Entra tenant to authenticate principals and have no separate local account store.
  • C. One tenant can be trusted by multiple subscriptions, so a dedicated tenant per subscription is not required.

Question 71

Which of the following attacks allows an attacker to sniff data frames on a local area network (LAN) or stop the traffic altogether?

  1. Man-in-the-middle
  2. ARP spoofing
  3. Port scanning
  4. Session hijacking
Show answer and explanation

Correct answer: B. ARP spoofing

ARP spoofing allows an attacker to intercept and manipulate Address Resolution Protocol traffic on a LAN, enabling them to sniff data frames by redirecting traffic through their machine or completely stop traffic by poisoning ARP tables. This gives the attacker man-in-the-middle capabilities on the local network. Man-in-the-middle is a consequence of ARP spoofing but not the attack itself. Port scanning is reconnaissance. Session hijacking targets established sessions, not LAN-wide frame sniffing.

Why the other options are wrong

  • A. Man-in-the-middle is a consequence of ARP spoofing, not the attack mechanism for sniffing LAN frames.
  • C. Port scanning is network reconnaissance, not a method to sniff LAN frames.
  • D. Session hijacking targets specific sessions, not LAN frame sniffing on the local network.

Question 72

What is the purpose of the following command?

C:\>wmic /node:[target IP] /user:[admin-user] /password:[password] process call create [command]

  1. Running a command on a remote Windows machine
  2. Creating a service on a remote Windows machine
  3. Creating an admin account on a remote Windows machine
  4. Listing the running processes on a remote windows machine
Show answer and explanation

Correct answer: A. Running a command on a remote Windows machine

The wmic command with process call create executes a command on a remote Windows machine by creating a new process remotely. The /node parameter specifies the target system, /user and /password provide credentials, and 'process call create' instantiates the specified command. This is a remote code execution technique. Creating a service (B) would use different syntax. Creating an admin account (C) would require different parameters. Listing processes (D) would use 'process list' rather than 'process call create'.

Why the other options are wrong

  • B. Creating a service requires different WMIC syntax, not the 'process call create' method.
  • C. Creating an admin account would use different WMIC commands targeting user account creation, not process execution.
  • D. Listing running processes uses 'process list' syntax, not 'process call create', which actually executes a new process.

Question 73

A report explains why compromising a single Domain Admins account effectively grants local administrator rights on every workstation and server in the domain. What membership relationship makes this true by default?

  1. Domain Admins is nested inside the Schema Admins group in the forest root domain
  2. Domain Admins is a member of the local Administrators group on every computer joined to the domain
  3. Domain Admins inherits its rights from the Account Operators group
  4. Domain Admins is added to the Backup Operators group on each member server
Show answer and explanation

Correct answer: B. Domain Admins is a member of the local Administrators group on every computer joined to the domain

Each domain has its own Domain Admins group that is placed by default into the domain's built-in Administrators group and into the local Administrators group of every computer that joins the domain. Through that nesting a Domain Admins member inherits full local control of all domain-joined workstations and servers, which is why the group is treated as a crown-jewel identity and reserved for break-glass use. A tester reports the compromise as domain-wide rather than limited to the single host where the credential was found.

Why the other options are wrong

  • A. Schema Admins has narrow schema-only rights and does not provide local administrator access to member computers.
  • C. Account Operators cannot manage administrative groups, and Domain Admins does not derive its reach from it.
  • D. Backup Operators is a separate limited group and is not the source of Domain Admins reach on member servers.

Question 74

You are pen testing a Windows system remotely via a raw netcat shell. You want to get a listing of all the local users in the administrators group, what command would you use?

  1. Net account administrators
  2. Net user administrators
  3. Net localgroup administrators
  4. Net localuser administrators
Show answer and explanation

Correct answer: C. Net localgroup administrators

The 'net localgroup administrators' command lists all members of the local administrators group on a Windows system. The 'localgroup' parameter is specifically designed to enumerate group membership.

Why the other options are wrong

  • A. net accounts shows user account policies, not group membership.
  • B. net user displays individual user properties, not group membership listings.
  • D. net localuser does not exist as a standard Windows command.

Question 75

A tester wants Nmap Scripting Engine checks limited to scripts that look for specific known vulnerabilities and generally report something only when the vulnerability is found. Which script category fits?

  1. vuln
  2. discovery
  3. auth
  4. malware
Show answer and explanation

Correct answer: A. vuln

Nmap's vuln category holds scripts that check for specific known vulnerabilities and generally report results only if they find them, so clean hosts produce little output. Scripts declare a list of categories, and apart from the special version category each one is also classed as safe or intrusive. Choosing the vuln category alone therefore says nothing about how risky a check is, so in a scoped test the tester confirms each script's safety category against the rules of engagement before running it against production.

Why the other options are wrong

  • B. Discovery scripts learn more about the network by querying public registries, SNMP-enabled devices, directory services and similar sources.
  • C. Auth scripts deal with authentication credentials, or bypassing them, on the target system.
  • D. Malware scripts test whether the target is infected by malware or backdoors, not for known software vulnerabilities in general.

75 questions in. Want the rest? The first half of the pack, free by email · The full pack

Question 76

A defender asks what the AdminSDHolder object is for when hardening Active Directory. Which description is accurate?

  1. It is a replica of the KRBTGT account used to sign Kerberos tickets
  2. It stores the recovery password for each domain controller
  3. It provides template permissions that are enforced onto protected accounts and groups
  4. It caches the membership of every security group for faster logon
Show answer and explanation

Correct answer: C. It provides template permissions that are enforced onto protected accounts and groups

AdminSDHolder is an object in the System container of every domain that holds a template set of permissions for the domain's protected accounts and groups. A background process compares the permissions on those protected objects against the template and resets them if they drift, which keeps highly privileged groups from quietly retaining attacker-added rights. A tester who understands this knows that a persistence attempt made by editing a protected group ACL will usually be reverted, so adversaries may instead target the template object itself.

Why the other options are wrong

  • A. The KRBTGT account signs Kerberos tickets and is unrelated to the AdminSDHolder template function.
  • B. Domain controller recovery passwords are not stored in AdminSDHolder.
  • D. AdminSDHolder does not cache group membership for logon performance.

Question 77

A team selects a C2 channel that encodes operator commands and their responses inside query names and record fields of a name-resolution protocol, which is often permitted outbound even before a host has authenticated to the network. Which channel is described?

  1. An SMB named-pipe peer-to-peer link
  2. ICMP tunneling
  3. DNS tunneling
  4. A WebSocket channel
Show answer and explanation

Correct answer: C. DNS tunneling

DNS tunneling hides tasking and output inside resolution traffic, often placing data in record types such as TXT or A, and it is attractive because DNS serves an administrative function that is usually allowed outbound, sometimes even before a client has authenticated. SMB is an internal peer link rather than name resolution, ICMP is a non-application-layer transport, and WebSocket is ordinary web traffic, so none of those matches a channel built on query and record fields.

Why the other options are wrong

  • A. An SMB named-pipe link is an internal peer-to-peer channel, not a name-resolution protocol.
  • B. ICMP is a non-application-layer transport and does not use query names or resource records.
  • D. A WebSocket channel carries web traffic, not name-resolution queries and records.

Question 78

A defender reviewing Microsoft Entra sign-in logs notices that a user typed the same wrong password twelve times, yet the account was never locked by smart lockout. The tenant uses password hash synchronization. What explains this?

  1. Smart lockout tracks recent bad password hashes and does not increment the counter for a repeated identical password
  2. Smart lockout is disabled by default and must be licensed before it counts any failures
  3. The default Azure Public lockout threshold is 50 failed attempts
  4. Smart lockout applies only to accounts that hold an administrative role
Show answer and explanation

Correct answer: A. Smart lockout tracks recent bad password hashes and does not increment the counter for a repeated identical password

Smart lockout keeps the last three bad password hashes and does not increment the lockout counter when the same bad password is entered again, so a user mistyping one wrong password repeatedly is not locked out. Different wrong passwords do count toward the default threshold of 10 in Azure Public tenants. This is relevant to password guessing: a spray that tries many distinct passwords against one account accumulates failures, while repeats do not. Hash tracking is not available when pass-through authentication is enabled.

Why the other options are wrong

  • B. Smart lockout is always on with default settings, and a license is needed only to customize its values.
  • C. The default threshold for Azure Public tenants is 10 failed attempts, not 50.
  • D. Smart lockout is always on for all Microsoft Entra customers and is not limited to administrator accounts.

Question 79

A domain user already holds a valid ticket-granting ticket and now opens a file share on a member server. Which statement correctly describes how the client obtains access to the share?

  1. It repeats the AS exchange, protecting a new request with the user's password-derived key
  2. It sends the TGT directly to the file server, which forwards it to a domain controller
  3. It presents the TGT to the KDC in a TGS exchange and receives a service ticket for the server
  4. It answers a challenge from the file server with a response computed from the user's NT hash
Show answer and explanation

Correct answer: C. It presents the TGT to the KDC in a TGS exchange and receives a service ticket for the server

Once a client holds a TGT, it uses the ticket-granting service (TGS) exchange. It presents the TGT to the KDC and asks for a service ticket for the specific service it wants. The TGS reply is protected with the session key from the TGT rather than the user's long-term key. The client then presents the service ticket directly to the file server, which can authenticate the user from the ticket without contacting a domain controller for each connection.

Why the other options are wrong

  • A. The AS exchange obtains the TGT at logon; a client that already holds a valid TGT does not need its long-term key to get service tickets.
  • B. The TGT is presented only to the KDC, while the file server receives a service ticket that it can verify without passing anything to a domain controller.
  • D. A challenge answered with a value computed from the NT hash describes NTLM, not Kerberos ticket-based access.

Question 80

The resulting business impact of the penetration test or ethical hacking engagement is explained in what section of the final report?

  1. Problems
  2. Findings
  3. Impact Assessment
  4. Executive Summary
Show answer and explanation

Correct answer: D. Executive Summary

The Executive Summary section of a penetration test report is designed for executive and management-level stakeholders who need to understand the overall business impact, risk level, and strategic implications of the findings. This section provides high-level context about how vulnerabilities affect the organization's operations, compliance, and security posture, without technical details.

Why the other options are wrong

  • A. Problems section typically lists technical issues but doesn't contextualize business impact.
  • B. Findings list individual vulnerabilities with technical details, not their aggregated business consequences.
  • C. Impact Assessment may exist in some report formats but Executive Summary is the standard section for business impact in professional penetration test reports.

Question 81

During an authorized test, an exploit gives the tester elevated privileges on one server and exposes in-scope network segments that were not reachable before. In the NIST SP 800-115 methodology, what happens next?

  1. The tester loops back to discovery to gather information from the new position
  2. The tester moves straight to reporting, because one successful exploit ends the attack phase
  3. The tester returns to planning to rewrite the testing goals before any further action
  4. The tester stops, because privilege escalation is outside a standard penetration test
Show answer and explanation

Correct answer: A. The tester loops back to discovery to gather information from the new position

NIST SP 800-115 draws a feedback loop between the attack and discovery phases. Exploits often do not grant maximum access at once; they may teach the tester more about the network or let them escalate privileges to reach additional resources. When that happens, further discovery and analysis are needed to determine the true level of risk, and testing across multiple systems shows how far an adversary could go. Penetration testing is therefore iterative, using minimal access to gain greater access, always within the agreed scope.

Why the other options are wrong

  • B. A single exploit rarely shows the full exposure, and further analysis is required to determine the true level of risk before testing ends.
  • C. Planning sets rules and goals before testing begins; new access gained within the agreed scope does not reopen the planning phase.
  • D. Privilege escalation is a normal outcome of the attack phase that calls for further analysis, not a reason to halt an in-scope test.

Question 82

During an authorized internal test, a tester observes the first Kerberos exchange a domain workstation performs when a user signs in, which returns a ticket-granting ticket (TGT). Which Kerberos service handles this exchange?

  1. The ticket-granting service, which accepts an existing service ticket
  2. The authentication service, which returns the TGT in reply to an AS request
  3. The application server, which checks the user's password locally
  4. The Global Catalog, which issues tickets for resources across the forest
Show answer and explanation

Correct answer: B. The authentication service, which returns the TGT in reply to an AS request

Kerberos defines two basic exchanges with the Key Distribution Center (KDC). In the authentication service (AS) exchange, the client sends a KRB_AS_REQ and receives a KRB_AS_REP carrying a ticket-granting ticket, with the reply protected by the client's own secret key. This normally happens at the start of a logon session. The client later presents the TGT in the ticket-granting service (TGS) exchange to obtain service tickets without using its long-term key again. In Windows, the KDC that provides both services runs on every domain controller.

Why the other options are wrong

  • A. The ticket-granting service issues tickets to clients that already hold a TGT, so it cannot be the exchange that first produces the TGT.
  • C. An application server only receives tickets in the client/server exchange and never checks the user's password itself.
  • D. A Global Catalog answers directory queries across the forest but does not issue Kerberos tickets, which is the KDC's job.

Question 83

What happens when you scan a broadcast IP address of a network?

Each correct answer represents a complete solution.

Choose all that apply.

  1. It may show smurf DoS attack in the network IDS of the victim.
  2. It leads to scanning of all the IP addresses on that subnet at the same time.
  3. It will show an error in the scanning process.
  4. Scanning of the broadcast IP address cannot be performed.
Show answer and explanation

Correct answer: A, B. It may show smurf DoS attack in the network IDS of the victim; It leads to scanning of all the IP addresses on that subnet at the same time.

Sending probe packets to a network's broadcast IP address causes every live host on that subnet to receive and potentially respond to the traffic, so a single scan effectively enumerates all IP addresses on that subnet simultaneously. Because this pattern of one packet directed to a broadcast address generating a flood of replies is exactly the signature of a smurf (broadcast amplification) denial-of-service attack, the victim's network IDS will frequently raise a smurf DoS alert against the scanning host.

Why the other options are wrong

  • C. Scanning a broadcast address does not produce an error in the scanning process; the probes are sent normally and hosts on the subnet can answer them.
  • D. Broadcast addresses can be scanned; many tools deliberately probe them to discover live hosts through directed broadcast responses.

Question 84

You work as a Penetration Tester for the Infosec Inc. Your company takes the projects of security auditing. Recently, your company has assigned you a project to test the security of the we-are-secure.com Web site. For this, you want to perform the idle scan so that you can get the ports open in the we-are-secure.com server. You are using Hping tool to perform the idle scan by using a zombie computer. While scanning, you notice that every IPID is being incremented on every query, regardless of whether the ports are open or closed. Sometimes, IPID is being incremented by more than one value.

What may be the reason?

  1. The zombie computer is not connected to the we-are-secure.com Web server.
  2. The zombie computer is the system interacting with some other system besides your computer.
  3. Hping does not perform idle scanning.
  4. The firewall is blocking the scanning process.
Show answer and explanation

Correct answer: B. The zombie computer is the system interacting with some other system besides your computer.

An idle (IPID) scan depends on a truly idle zombie whose IP identification field only increments when your probes force it to respond. Open ports produce an increment of two, closed/filtered ports an increment of one. When the IPID rises on every single probe and sometimes jumps by more than one, the zombie is generating traffic of its own to other hosts, so its IPID counter is advancing independently of your probes. That noise makes the results meaningless, and the fix is to choose a genuinely idle, predictable-IPID host as the zombie.

Why the other options are wrong

  • A. The zombie never needs a connection to the target beforehand; the scan works precisely because the spoofed probes originate from your machine and the target replies to the zombie.
  • C. Hping is a standard tool for crafting the spoofed SYN packets and probing IPID values used in idle scanning.
  • D. A firewall blocking the scan would stop the target's replies from reaching the zombie or make ports look filtered, not make the zombie's IPID climb by varying amounts on every query.

Question 85

You are conducting a penetration test for a private company located in Canada. The scope extends to all internal-facing hosts controlled by the company. You have gathered necessary hold-harmless and non-disclosure agreements.

Which action by your group can incur criminal liability under Criminal Code of Canada Sections 184 and 342.1?

  1. Analyzing internal firewall router software for vulnerabilities
  2. Exploiting application vulnerabilities on end-user workstations
  3. Attempting to crack passwords on a development server
  4. Capturing a VoIP call to a third party without prior notice
Show answer and explanation

Correct answer: D. Capturing a VoIP call to a third party without prior notice

Section 184 of the Canadian Criminal Code makes the interception of private communications an offence, and section 342.1 covers unauthorized use of a computer. Capturing a VoIP call to a third party without prior consent violates wiretapping laws and constitutes criminal liability. Even with authorization for internal testing, intercepting communications to external parties (third parties) crosses a legal boundary. The other actions, while potentially involving unauthorized access, fall within the authorized scope of the penetration test.

Why the other options are wrong

  • A. Analyzing firewall software for vulnerabilities is within authorized scope.
  • B. Exploiting application vulnerabilities on authorized internal workstations is within scope.
  • C. Attempting to crack passwords on authorized development servers is within the authorized scope of the penetration test.

Question 86

A tester learns that a client's verified domain is configured for federated authentication with an on-premises AD FS farm. Where is a user's password validated when the user signs in to a Microsoft 365 application?

  1. By Microsoft Entra ID against a synchronized password hash
  2. By a pass-through authentication agent that retrieves requests from a cloud queue
  3. By the Microsoft 365 application itself, using its own user store
  4. By the on-premises federation service that Entra ID trusts to authenticate users
Show answer and explanation

Correct answer: D. By the on-premises federation service that Entra ID trusts to authenticate users

In federated authentication, Microsoft Entra ID hands off the authentication process to a separate trusted authentication system, such as on-premises AD FS, which validates the user's password. Entra ID then relies on the token that system issues. For an assessment this places the federation farm, which Microsoft notes is outside Entra ID's control and is the organization's responsibility to secure, squarely in scope as a critical identity component.

Why the other options are wrong

  • A. Validating against a synchronized hash is password hash synchronization, a cloud authentication method.
  • B. Agents pulling requests from a queue describe pass-through authentication, not federation.
  • C. Microsoft 365 applications rely on Entra ID for identity rather than keeping a separate password store.

Question 87

A defender searches the Microsoft Purview audit log for signs of an illicit consent grant and finds a Consent to application activity with IsAdminConsent set to True. How should this entry be interpreted?

  1. An account with administrative rights may have granted the app broad access to organization data
  2. A user consented for their own data only, so the impact is limited to one mailbox
  3. The consent attempt was blocked by the tenant's user consent settings
  4. The app's request is still waiting for a reviewer in the admin consent workflow
Show answer and explanation

Correct answer: A. An account with administrative rights may have granted the app broad access to organization data

Questionable Consent to application activities in the audit log are the main indicators of an illicit consent grant. When IsAdminConsent is True, someone with Global Administrator access may have granted the app broad access to data, and if that is unexpected the defender should confirm whether an attack occurred by inventorying the app's permissions. Audit entries can take from 30 minutes to 24 hours to appear in search results, so a recent grant may not show up immediately.

Why the other options are wrong

  • B. A value of True points to consent given with administrative rights, which is broader than a single user's own data.
  • C. The Consent to application activity records a consent that took place, not one that was blocked.
  • D. A pending admin consent request has not granted anything yet, whereas this activity records a completed consent.

Question 88

Which of the following statements are true about NTLMv1?

Each correct answer represents a complete solution.

Choose all that apply.

  1. It uses the LANMAN hash of the user's password.
  2. It is mostly used when no Active Directory domain exists.
  3. It is a challenge-response authentication protocol.
  4. It uses the MD5 hash of the user's password.
Show answer and explanation

Correct answer: A, B, C. It uses the LANMAN hash of the user's password; It is mostly used when no Active Directory domain exists; It is a challenge-response authentication protocol.

NTLMv1 uses the LANMAN hash of the user's password (A) and is a challenge-response authentication protocol (C). It is primarily used in environments without Active Directory domains (B). Option D is incorrect because NTLMv1 does not use MD5; it uses LANMAN and MD4 hashing instead.

Why the other options are wrong

  • D. NTLMv1 uses LANMAN and MD4 hashes, not MD5.

Question 89

Even when C2 traffic is wrapped in TLS and the payload cannot be read, a defender can still flag a suspicious client. Which approach lets them do so without decrypting the session?

  1. Reading the Base64 body of each request
  2. Fingerprinting the TLS handshake and the certificate characteristics the client presents
  3. Inspecting the cleartext of DNS TXT records
  4. Counting how many operators are connected to the server
Show answer and explanation

Correct answer: B. Fingerprinting the TLS handshake and the certificate characteristics the client presents

The opening TLS handshake messages, such as the ClientHello, are sent before encryption takes over, so defenders can fingerprint those characteristics and spot handshakes or non-standard certificate chains typical of a C2 client regardless of the destination, all without decrypting the body. The encrypted body cannot be read, DNS TXT records belong to a different channel entirely, and the number of operators is a server-side detail invisible to a network defender.

Why the other options are wrong

  • A. Once TLS is established the body is encrypted, so its contents cannot simply be read off the wire.
  • C. DNS TXT records concern a separate channel and say nothing about a TLS session's client.
  • D. The count of connected operators is internal to the server and is not visible to a network defender.

Question 90

Over ten minutes, a domain controller logs event 4771 with failure code 0x18 for 300 different user accounts, with one or two attempts each, all from the same client address. Which MITRE ATT&CK technique does this pattern most likely indicate?

  1. Kerberoasting
  2. AS-REP Roasting
  3. Golden Ticket
  4. Password Spraying
Show answer and explanation

Correct answer: D. Password Spraying

Event 4771 records a failed Kerberos pre-authentication, and failure code 0x18 means the pre-authentication data was invalid, typically a wrong password. A few failures for each of hundreds of accounts from one source is the signature of Password Spraying: trying one or a few common passwords across many accounts so that no single account reaches its lockout threshold. Spraying over Kerberos also avoids the logon failure event 4625 that SMB attempts generate, which makes 4771 an important detection source.

Why the other options are wrong

  • A. Kerberoasting requests service tickets with a valid TGT and appears as successful 4769 events, not as failed pre-authentication.
  • B. AS-REP Roasting targets accounts that skip pre-authentication, so it produces successful 4768 events rather than pre-authentication failures.
  • C. A Golden Ticket is a TGT forged with the stolen krbtgt key and does not involve guessing user passwords against the KDC.

Question 91

RFC 4120 strongly encourages randomly generated keys, rather than password-derived keys, for any principal that can be the target of a ticket request. Which property of Kerberos makes this recommendation necessary?

  1. Any client can request a ticket for any server principal and attack that principal's key offline
  2. Service tickets travel in cleartext, so a password-derived key would be exposed on the network
  3. The KDC rejects password-derived keys for service principals unless they are random
  4. Random keys let service tickets be renewed indefinitely without contacting the KDC
Show answer and explanation

Correct answer: A. Any client can request a ticket for any server principal and attack that principal's key offline

A service ticket carries the client's identity and a session key encrypted in the target server's key. Because the KDC issues tickets for any requested server principal, anyone holding a TGT can collect ciphertext protected by that server's key and guess at it offline without ever touching the service. When the key derives from a human-chosen password, as with a user account that runs a service, weak passwords fall quickly. Long random keys, such as the 240-byte passwords of group Managed Service Accounts, make that offline attack impractical.

Why the other options are wrong

  • B. The sensitive parts of a ticket are encrypted in the server's key, so the risk is offline guessing of that key rather than cleartext exposure.
  • C. Windows KDCs routinely issue tickets for accounts with password-derived keys, which is exactly why the guidance exists.
  • D. Key origin has nothing to do with renewal, which is limited by policy and still requires an exchange with the KDC.

Question 92

You send SYN packets with the exact TTL of the target system starting at port 1 and going up to port 1024 using hping2 utility. This attack is known as __________.

  1. Port scanning
  2. Spoofing
  3. Cloaking
  4. Firewalking
Show answer and explanation

Correct answer: D. Firewalking

Firewalking is a network reconnaissance technique using TTL (Time To Live) values to map out firewall rules and identify open ports on gateway systems. By sending packets with TTL values matching the target system and observing responses, attackers can determine which ports are filtered. Port scanning differs as it directly probes ports, spoofing involves faking source addresses, and cloaking involves hiding malicious activity.

Why the other options are wrong

  • A. Port scanning directly probes target ports rather than using TTL analysis to bypass firewalls.
  • B. Spoofing involves falsifying source addresses, not using TTL values for reconnaissance.
  • C. Cloaking refers to hiding malicious activity or presence, not a TTL-based attack technique.

Question 93

Which of the following file transfer programs will automatically convert end-of-line characters between different platforms when placed in ASCII Mode?

  1. ftp
  2. nc
  3. tftp
  4. scp
Show answer and explanation

Correct answer: A. ftp

FTP (File Transfer Protocol) includes ASCII Mode functionality that automatically converts end-of-line characters between different platforms. When ASCII Mode is enabled in FTP, it converts between CRLF (Windows/DOS) and LF (Unix/Linux) line endings during transfer, making it transparent to the user. This is a core feature of the FTP protocol.

Why the other options are wrong

  • B. nc (netcat) is a raw network tool that does not perform any automatic line ending conversion; it transfers data verbatim.
  • C. tftp does define a netascii mode, but it is a minimal protocol used mainly in octet mode to move boot images and firmware; the tool whose ASCII mode is used to convert end-of-line characters between platforms is ftp.
  • D. scp (Secure Copy) transfers files without modifying content; it does not automatically convert line endings between platforms.

Question 94

All of the following are advantages of using the Metasploit priv module for dumping hashes from a local Windows machine EXCEPT:

  1. Doesn't require SMB or NetBIOS access to the target machine
  2. Can run inside of a process owned by any user
  3. Provides less evidence for forensic investigators to recover
  4. LSASS related reboot problems aren't an issue
Show answer and explanation

Correct answer: B. Can run inside of a process owned by any user

The stem asks for the EXCEPTION (the one that is not an advantage) of using Metasploit's priv module for hash dumping. Option B states the module 'can run inside of a process owned by any user,' which is not true: the priv module's hashdump must run inside a process with SYSTEM privileges, so it cannot run inside a process owned by any user. The other options are genuine advantages: no SMB/NetBIOS required, less forensic evidence, and no LSASS restart issues.

Why the other options are wrong

  • A. This is an actual advantage; the priv module does not require SMB or NetBIOS access.
  • C. This is an actual advantage; in-memory operations leave less forensic evidence than disk-based methods.
  • D. This is an actual advantage; the priv module avoids LSASS-related reboot problems associated with older hash dumping methods.

Question 95

You have been contracted to map the network and try to compromise the servers for a client.

Which of the following would be an example of 'scope creep' with respect to this penetration testing project?

  1. Disclosing information forbidden in the NDA
  2. Compromising a server then escalating privileges
  3. Being asked to compromise workstations
  4. Scanning network systems slowly so you are not detected
Show answer and explanation

Correct answer: C. Being asked to compromise workstations

Scope creep occurs when work expands beyond the original contract terms. The engagement was contracted to 'map the network and try to compromise the servers.' Being asked to compromise workstations is a task outside the original scope, it represents an expansion of deliverables without corresponding contract modification or authorization. This violates project boundaries.

Why the other options are wrong

  • A. Disclosing information violates the NDA but is a compliance/ethics violation, not scope creep.
  • B. Compromising a server then escalating privileges is a natural progression within server compromise activities already authorized.
  • D. Scanning slowly for stealth is a methodological choice within the authorized scope of network mapping.

Question 96

What is the impact on pre-calculated Rainbow Tables of adding multiple salts to a set of passwords?

  1. Salts increase the time to crack the original password by increasing the number of tables that must be calculated.
  2. Salts double the total size of a rainbow table database.
  3. Salts can be reversed or removed from encoding quickly to produce unsalted hashes.
  4. Salts have little effect because they can be calculated on the fly with applications such as Ophcrack.
Show answer and explanation

Correct answer: A. Salts increase the time to crack the original password by increasing the number of tables that must be calculated.

Adding salts to passwords dramatically increases the computational burden for rainbow table attacks. Each unique salt requires a separate set of pre-calculated tables, and with multiple salts per password set, the attacker must either calculate tables for each salt value (exponentially increasing time and storage) or generate hashes on-the-fly, defeating the speed advantage of pre-calculation.

Why the other options are wrong

  • B. Salts increase computational requirements and table proliferation, but doubling is an oversimplification; the impact grows exponentially with salt variety.
  • C. Salts cannot be reliably reversed or removed from proper cryptographic implementations; they are integral to the hashing process.
  • D. While tools like Ophcrack can calculate on-the-fly, this negates the primary advantage of rainbow tables (speed), making salts highly effective as a defense.

That was 96 of 385.

The full GIAC Penetration Tester GPEN pack has all 385 questions, each with the answer, the explanation and why the other options are wrong, plus a questions-only copy for timed runs. US$39, paid once, with free monthly updates and a pass-or-your-money-back guarantee.

Get the full pack

Not ready yet? Get the first 192 free as one PDF by email. Get the Half Pack →