Curated

Post-exploitation and Lateral Movement 2 (5.2)

0 votes

Questions108

  1. Question 1

    Post-exploitation and Lateral Movement

    A tester holds only a standard-user shell on an internal segment where LLMNR is enabled and users often mistype share names. Which action BEST yields additional credentials?

    Show the answer

    Correct answerC. Run Responder to answer name queries and capture NetNTLMv2 responses

    AWhy not this: Reading LSASS needs administrative or debug privileges, which this shell lacks.

    BWhy not this: Saving the SAM hive requires administrative rights and yields only local accounts.

    CWhy this is right: Poisoning LLMNR lets a standard user capture other users' NetNTLMv2 responses from the network.

    DWhy not this: String searches may find stored passwords but do not capture credentials in transit.

    Responder answers LLMNR queries and captures NetNTLMv2 challenge responses from other users, which needs no local admin rights. Mimikatz reading LSASS requires elevated privileges and only reaches credentials already on this host.

    Open this question
  2. Question 2

    Post-exploitation and Lateral Movement

    A tester has a shell on a Linux host in a segmented network. No scanning or capture tools are installed, and no binaries may be uploaded. Which approach BEST finds the 10.10.20.0/24 hosts exposing SMB?

    Show the answer

    Correct answerB. Loop over the subnet with Bash /dev/tcp connection attempts to port 445

    AWhy not this: The ARP cache lists only neighbors already contacted, with no service information.

    BWhy this is right: Built-in shell TCP connects to port 445 reveal which hosts listen for SMB, with no tools or uploads.

    CWhy not this: Echo replies show a host is up, not that it runs SMB, and ICMP may be filtered.

    DWhy not this: Config strings may hint at file servers but do not confirm which hosts expose SMB now.

    Bash /dev/tcp connection attempts to port 445 test which hosts accept SMB connections, using only built-in shell features. A ping sweep only shows which hosts are alive and says nothing about which services they run.

    Open this question
  3. Question 3

    Post-exploitation and Lateral Movement

    A tester with administrative access to a compromised internal server wants to learn passively which hosts talk to it and over which protocols, without sending any packets. What should the tester do?

    Show the answer

    Correct answerC. Capture packets on the server's network interface with tcpdump

    AWhy not this: File string searches find static addresses but do not show live communication.

    BWhy not this: Version scanning is active service discovery and generates probe traffic.

    CWhy this is right: Passive capture on the interface reveals communicating hosts and protocols without sending traffic.

    DWhy not this: LSASS dumping extracts credentials and shows nothing about traffic flows.

    Capturing packets on the server's interface passively shows the peers and protocols in use, which is network traffic discovery. An Nmap version scan sends probes, so it is active and breaks the no-packets constraint.

    Open this question
  4. Question 4

    Post-exploitation and Lateral Movement

    A tester finds TCP 389 open on a domain controller. Which service is this, used to query Active Directory objects?

    Show the answer

    Correct answerB. LDAP

    AWhy not this: VNC on TCP 5900 offers remote graphical desktop access, not directory lookups.

    BWhy this is right: LDAP on TCP 389 is used to query directory objects such as Active Directory users and groups.

    CWhy not this: LPD on TCP 515 accepts print jobs and manages print queues.

    DWhy not this: Telnet on TCP 23 provides a remote text shell, not directory queries.

    LDAP on TCP 389 is the protocol used to query directory services such as Active Directory for users, groups and computers. Telnet also uses a well-known port but gives a remote text shell, not directory queries.

    Open this question
  5. Question 5

    Post-exploitation and Lateral Movement

    Service discovery shows vsftpd listening on TCP 21 of an internal server. Which check is MOST likely to give access without any known credentials?

    Show the answer

    Correct answerB. Log in with the username anonymous and any password

    AWhy not this: RDP clients cannot talk to an FTP service, so a blank password is irrelevant.

    BWhy this is right: Anonymous FTP accepts the username anonymous with any password if the server allows it.

    CWhy not this: LDAP binds are rejected by an FTP daemon, which does not parse directory requests.

    DWhy not this: SSH key authentication needs an SSH service, and port 21 is running FTP.

    FTP servers are sometimes configured to allow the anonymous account, which accepts any password and may expose files useful for lateral movement. The other options use protocols that the FTP service on port 21 does not speak.

    Open this question
  6. Question 6

    Post-exploitation and Lateral Movement

    An internal scan finds TCP 443 open on a network appliance. Which action is the BEST next step in service discovery?

    Show the answer

    Correct answerA. Browse to it, identify the product, and try default credentials

    AWhy this is right: Browsing to the web interface identifies the product, and default credentials can then be tested.

    BWhy not this: An FTP client cannot negotiate HTTPS, so an anonymous login attempt would fail.

    CWhy not this: LPD print submissions use a different protocol and port than HTTPS.

    DWhy not this: rpcdump queries the RPC endpoint mapper, not an HTTPS service.

    A web management interface on HTTPS is reached with a browser; the page, certificate and headers identify the product, and default credentials may grant administrative access. RPC, LPD and FTP clients do not speak HTTPS, so they reveal nothing on this port.

    Open this question
  7. Question 7

    Post-exploitation and Lateral Movement

    A tester finds TCP 23 open on an internal switch. Which three statements apply to this service? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersB. Captured traffic can expose login credentials in cleartext.C. The login prompt can be tested with default or weak credentials.E. A Telnet client connection can show a banner identifying the device.

    AWhy not this: Host-key encryption belongs to SSH; Telnet sessions are not encrypted.

    BWhy this is right: Telnet has no encryption, so credentials and commands are visible in a packet capture.

    CWhy this is right: Network devices often keep default or weak accounts, which can be tried at the prompt.

    DWhy not this: Telnet runs over TCP port 23, as the open TCP port shows, so a capture includes the TCP handshake.

    EWhy this is right: Connecting with a client often returns a banner or prompt that reveals the device type.

    Telnet sends everything in cleartext, so a capture exposes credentials, its banner and prompt identify the device, and its login can be tried with default or weak credentials. Host-key encrypted sessions describe SSH, not Telnet. Telnet also runs over TCP, not UDP.

    Open this question
  8. Question 8

    Post-exploitation and Lateral Movement

    A Windows file server exposes only TCP 135 and 445 through a firewall. A tester needs the list of RPC services registered on it and their bindings. What is the BEST approach?

    Show the answer

    Correct answerD. Query the endpoint mapper on TCP 135 to list registered interfaces

    AWhy not this: LDAP queries return directory data, and TCP 389 is not exposed through the firewall.

    BWhy not this: rpcinfo -p reads the Unix portmapper on port 111, which is filtered and not the Windows mechanism.

    CWhy not this: A Telnet connection to TCP 135 returns no readable banner and cannot list RPC interfaces.

    DWhy this is right: The endpoint mapper on TCP 135 answers queries listing registered RPC interfaces and their bindings.

    The Windows RPC endpoint mapper listens on TCP 135 and returns registered interfaces and their bindings, which rpcdump-style queries read. rpcinfo -p targets the Unix portmapper on port 111, which is not exposed and does not describe Windows services.

    Open this question
  9. Question 9

    Post-exploitation and Lateral Movement

    A tester has administrator access to a Windows host and wants to extract credentials held in memory. Which tool is designed for this?

    Show the answer

    Correct answerD. Mimikatz

    AWhy not this: Nmap discovers hosts and services; it does not extract stored credentials from a system.

    BWhy not this: Responder poisons name resolution to capture credentials in transit; it does not read host memory.

    CWhy not this: Wireshark decodes captured packets and shows only credentials that cross the network unprotected.

    DWhy this is right: Mimikatz pulls hashes, tickets and cached credentials out of LSASS memory on a compromised Windows host.

    Mimikatz reads credential material such as password hashes and tickets from the memory of the LSASS process, which is credential dumping. Responder only captures credentials sent over the network by poisoning name resolution.

    Open this question
  10. Question 10

    Post-exploitation and Lateral Movement

    A tester has a shell on a Linux web server and suspects that application config files under /var/www contain hardcoded database passwords. Which command BEST finds them?

    Show the answer

    Correct answerD. grep -rin "password" /var/www/

    AWhy not this: find with -iname matches only file names, so it misses passwords written inside config files.

    BWhy not this: strings on the bash binary searches the wrong file; it does not search the web application's config files.

    CWhy not this: A listing piped to grep matches only names in the directory listing, never the file contents.

    DWhy this is right: Recursive, case-insensitive grep searches file contents and prints matching lines with line numbers.

    grep -r searches the contents of every file under the directory for the string, so it shows config lines holding passwords. find and ls piped to grep match only file and directory names, which would miss credentials inside files.

    Open this question
  11. Question 11

    Post-exploitation and Lateral Movement

    A tester has root on a Linux host in the database segment. The tester must record only traffic to or from TCP port 1433 for later review in Wireshark. Which command BEST does this?

    Show the answer

    Correct answerD. tcpdump -i eth0 port 1433 -w db.pcap

    AWhy not this: Nmap sends probes and saves scan results; it does not record existing traffic between other hosts.

    BWhy not this: ss lists sockets on this host only at one moment; it captures no packets for later analysis.

    CWhy not this: Netcat only listens on the port and would save data sent to it, not traffic between other hosts.

    DWhy this is right: A capture filter on port 1433 and -w save just that traffic to a pcap file Wireshark can read.

    tcpdump with a port capture filter and -w writes only the matching packets to a pcap file that Wireshark can open. Nmap actively probes services and records scan results, not the traffic that hosts exchange.

    Open this question
  12. Question 12

    Post-exploitation and Lateral Movement

    A tester with administrator credentials runs wmic /node:10.0.0.5 process call create to start a program remotely. Which Windows technology is being used?

    Show the answer

    Correct answerD. WMI

    AWhy not this: WinRM is a different service, reached with PowerShell remoting and not by wmic's process call create.

    BWhy not this: An NTLM relay forwards captured authentication; it is not a management interface for starting processes.

    CWhy not this: SSH tunneling forwards traffic through a host and does not run wmic commands on Windows.

    DWhy this is right: wmic calls Windows Management Instrumentation, which lets a credentialed user create processes on a remote host.

    wmic is the command-line interface to Windows Management Instrumentation, which can query hosts and create processes remotely. WinRM is a separate management service that uses WS-Management over HTTP rather than the wmic utility.

    Open this question
  13. Question 13

    Post-exploitation and Lateral Movement

    A tester holding valid administrator credentials needs an interactive remote PowerShell session on a Windows server. Its only reachable management port is TCP 5985. What should the tester use?

    Show the answer

    Correct answerD. A WinRM session using Enter-PSSession

    AWhy not this: A dynamic forward needs an SSH foothold and provides routing, not a remote PowerShell session on the server.

    BWhy not this: wmic relies on DCOM over RPC, not TCP 5985, and does not give an interactive PowerShell session.

    CWhy not this: A relay needs captured authentication and weak signing settings, and does not use valid credentials on 5985.

    DWhy this is right: WinRM listens on TCP 5985 over HTTP, and Enter-PSSession gives an interactive remote PowerShell shell.

    TCP 5985 is the WinRM HTTP listener, and Enter-PSSession opens an interactive PowerShell session over it with valid credentials. wmic uses DCOM over RPC and cannot provide that session through this port.

    Open this question
  14. Question 14

    Post-exploitation and Lateral Movement

    A tester has a shell on a dual-homed Linux web server with SSH access. Nmap and other tools must reach many hosts and ports on its internal subnet, which the tester's machine cannot route to. What is the best approach?

    Show the answer

    Correct answerB. An SSH dynamic port forward with proxychains

    AWhy not this: A local forward reaches only one fixed host and port, so it cannot serve a scan of many internal targets.

    BWhy this is right: A dynamic forward opens a SOCKS proxy on the host, so proxychains can route any tool to any internal host and port.

    CWhy not this: Relaying captures and forwards authentication; it does not give general network reachability for scanning tools.

    DWhy not this: WinRM is a Windows management service and does not provide a route into the internal subnet from a Linux server.

    An SSH dynamic forward (-D) creates a SOCKS proxy through the compromised host, and proxychains sends any tool's traffic to many internal hosts and ports. A local forward maps only one destination, so it does not fit a broad scan.

    Open this question
  15. Question 15

    Post-exploitation and Lateral Movement

    Responder captures NTLMv2 authentication from workstations, but the hashes will not crack. A file server does not require SMB signing. What is the best way to use the captured authentication?

    Show the answer

    Correct answerA. Relay it to the file server with ntlmrelayx

    AWhy this is right: Without required SMB signing, ntlmrelayx can pass the live authentication to the server and act as that user.

    BWhy not this: WMI queries need valid credentials the tester does not yet have, and they do not reuse captured authentication.

    CWhy not this: More cracking relies on guessing the password, which has already failed and ignores the relay opportunity.

    DWhy not this: A tunnel provides network reach, not a way to reuse captured NTLM authentication against the server.

    Because SMB signing is not required, the captured authentication can be relayed to the file server with ntlmrelayx, gaining access without knowing the password. Offline cracking has already failed and does not use the live authentication.

    Open this question
  16. Question 16

    Post-exploitation and Lateral Movement

    Service discovery on a print server shows TCP 515 open, while TCP 9100 and TCP 631 are closed. Which conclusion is BEST supported?

    Show the answer

    Correct answerD. The host accepts queued print jobs through LPD

    AWhy not this: Telnet listens on TCP 23; TCP 515 is not a remote shell port.

    BWhy not this: Raw JetDirect printing listens on TCP 9100, which is closed on this host.

    CWhy not this: The RPC endpoint mapper listens on TCP 135, not on a printing port.

    DWhy this is right: TCP 515 is the standard LPD port, and LPD takes spooled jobs into a named print queue.

    TCP 515 is the well-known port of the Line Printer Daemon, which accepts jobs into a print queue. JetDirect raw printing uses TCP 9100, which is closed here, so it cannot explain the open port.

    Open this question
  17. Question 17

    Post-exploitation and Lateral Movement

    Service discovery finds TCP 9100 open on a network printer. What does this service accept?

    Show the answer

    Correct answerB. Raw print data sent straight to the printer

    AWhy not this: Named queue submission is LPD behavior on TCP 515, not JetDirect.

    BWhy this is right: JetDirect on TCP 9100 passes raw print data directly to the printer device.

    CWhy not this: Directory queries are LDAP on TCP 389, not a printing service.

    DWhy not this: Interactive shell access is Telnet or SSH, not a printing service.

    TCP 9100 is the HP JetDirect port, which takes raw print data directly, usually with no authentication or spooler. LPD on TCP 515 is the queue-based alternative, so it is the tempting wrong answer.

    Open this question
  18. Question 18

    Post-exploitation and Lateral Movement

    On a compromised Windows host, netstat -ano shows an unknown service listening on TCP 8443 with PID 4212. The tester needs the process name and its account before pivoting, without disrupting the service. Which command is BEST?

    Show the answer

    Correct answerB. tasklist /v /fi "PID eq 4212"

    AWhy not this: Without the -o switch, netstat shows no PIDs, so it cannot map the port to a process.

    BWhy this is right: Filtering tasklist by PID returns the process name, and verbose mode adds the user account.

    CWhy not this: taskkill ends the process, which disrupts the service and returns no account details.

    DWhy not this: arp -a lists IP-to-MAC mappings and says nothing about processes.

    The PID from netstat -ano links the listening port to a process. tasklist /v filtered on that PID returns the image name and the user it runs as without altering it. netstat -an omits PIDs, so it cannot tie the port to a process.

    Open this question
  19. Question 19

    Post-exploitation and Lateral Movement

    A tester with local admin credentials sees TCP 135 open on a Windows host. The tester wants to run a command by remotely instantiating the MMC20.Application COM object. Which service does this rely on?

    Show the answer

    Correct answerC. DCOM

    AWhy not this: WinRM is WS-Management over TCP 5985/5986 and does not activate remote COM objects.

    BWhy not this: RDP gives an interactive graphical session on TCP 3389, not COM object activation.

    CWhy this is right: DCOM lets a remote client create COM objects, and it runs over RPC via TCP 135.

    DWhy not this: SSH is not used for COM activation and is not a default Windows service.

    Remote activation of COM objects such as MMC20.Application is done through DCOM, which uses RPC starting at the TCP 135 endpoint mapper. WinRM also gives remote execution but uses HTTP-based WS-Management on TCP 5985/5986 and does not instantiate COM objects.

    Open this question
  20. Question 20

    Post-exploitation and Lateral Movement

    A tester on a compromised dual-homed Windows host must reach 10.10.20.0/24, which is only reachable through the internal gateway 10.10.5.1. The entry must survive a reboot. Which command does this?

    Show the answer

    Correct answerD. route -p add 10.10.20.0 mask 255.255.255.0 10.10.5.1

    AWhy not this: net use maps a network share and does not create a route to a subnet.

    BWhy not this: The route is added, but without -p it is held in memory only and is lost at reboot.

    CWhy not this: netstat -rn only displays the routing table; it cannot add or change a route.

    DWhy this is right: route with -p adds a static route to the internal subnet through the gateway and keeps it after a reboot.

    The route command modifies the routing table, and the -p switch stores the static route so it persists across reboots. Without -p the same route add works only until the next restart, so it fails the persistence requirement.

    Open this question
  21. Question 21

    Post-exploitation and Lateral Movement

    A tester holds one local administrator NTLM hash but no password and must find which hosts on a /24 subnet accept it over SMB, using a single command. Which tool does this?

    Show the answer

    Correct answerD. CrackMapExec

    AWhy not this: Sysinternals PsExec needs a plaintext password and runs commands on named hosts, not a hash sweep.

    BWhy not this: Mimikatz can use a hash locally to start a process, but it does not test a subnet over SMB.

    CWhy not this: Netcat reads and writes raw network connections and has no SMB authentication.

    DWhy this is right: CrackMapExec passes a hash to every host in a range over SMB and reports where the account is admin.

    CrackMapExec can authenticate with an NTLM hash (pass-the-hash) against a whole subnet over SMB and flag hosts where it gives admin access. Sysinternals PsExec needs a password and targets hosts individually.

    Open this question
  22. Question 22

    Post-exploitation and Lateral Movement

    Which built-in Windows utility searches file contents for a text pattern such as "password"?

    Show the answer

    Correct answerC. findstr.exe

    AWhy not this: msbuild.exe compiles and runs project build files, not text searches.

    BWhy not this: rundll32.exe runs DLL exports; it has no text-search function.

    CWhy this is right: findstr.exe searches file contents for strings or patterns, such as passwords in config files.

    DWhy not this: netstat.exe lists network connections and listening ports, not file contents.

    findstr.exe searches files for text strings and regular expressions, so it can locate credentials in scripts and config files. rundll32.exe only runs functions exported from DLLs and does not search text.

    Open this question
  23. Question 23

    Post-exploitation and Lateral Movement

    A tester needs a command-and-control framework with a web interface that manages .NET implants called Grunts on compromised Windows hosts. Which tool fits?

    Show the answer

    Correct answerA. Covenant

    AWhy this is right: Covenant is a .NET C2 framework with a web UI whose implants are called Grunts.

    BWhy not this: Mimikatz extracts credentials from memory and does not manage implants through a web interface.

    CWhy not this: Impacket is a Python collection of protocol tools, such as SMB and Kerberos scripts, not a Grunt-based C2.

    DWhy not this: Proxychains forces application traffic through proxies and is not a C2 framework.

    Covenant is a .NET C2 framework with a web interface that uses Listeners and Grunt implants for post-exploitation and lateral movement. Impacket is a Python library of network protocol tools and has no Grunt implants.

    Open this question
  24. Question 24

    Post-exploitation and Lateral Movement

    A tester finds TCP 9100 open on a network printer and wants to check whether it accepts a print job with no credentials. Which action is BEST?

    Show the answer

    Correct answerC. Send a short text file to port 9100 with netcat

    AWhy not this: The web interface shows status but never submits a job to TCP 9100.

    BWhy not this: Endpoint mapper enumeration targets RPC on Windows hosts, not the raw print port.

    CWhy this is right: Raw data sent to TCP 9100 is printed without a login, so this directly tests unauthenticated job acceptance.

    DWhy not this: LDAP queries a directory service on TCP 389 and does not exercise the print port.

    JetDirect raw printing on TCP 9100 takes data directly over a socket with no authentication step, so sending text with netcat shows whether the printer prints it. Reading the web page shows device status but does not test job acceptance on the raw port.

    Open this question
  25. Question 25

    Post-exploitation and Lateral Movement

    During service discovery a tester maps TCP 8443 to PID 3120 on a Windows host. Two hours later PID 3120 belongs to notepad.exe, yet port 8443 still answers. What is the BEST conclusion?

    Show the answer

    Correct answerC. The service restarted under a new PID, so the port needs mapping again

    AWhy not this: PID reuse is normal operating system behavior, not spoofing, and PIDs remain useful when rechecked.

    BWhy not this: PIDs are assigned at process start and are not tied to a service name across restarts.

    CWhy this is right: PIDs are reused after a process ends, so the listener got a new PID and must be re-mapped.

    DWhy not this: Processes do not take over another process's listener just because it reuses a PID number.

    A PID identifies a process only while it runs, and the operating system can reuse the number after the process exits. The listener restarted under a new PID, so the tester must map the port to its current PID before targeting it. Trusting the old PID risks acting on the wrong process.

    Open this question
  26. Question 26

    Post-exploitation and Lateral Movement

    A firewall lets a tester reach a print server only on TCP 515. The tester needs to submit a test job to the queue named hr-laser. Which action is BEST?

    Show the answer

    Correct answerB. Send the job to hr-laser with an LPD client

    AWhy not this: SMB print sharing needs TCP 445, which is not reachable here.

    BWhy this is right: LPD on TCP 515 takes jobs addressed to a named queue, matching both the port and the task.

    CWhy not this: IPP uses TCP 631, which the firewall does not allow in this case.

    DWhy not this: JetDirect raw printing uses TCP 9100 and sends data straight to the device with no queue.

    LPD listens on TCP 515 and accepts jobs addressed to a named print queue, which an LPD client such as lpr can submit. JetDirect raw printing uses TCP 9100 and has no queue names, so it cannot be used when only 515 is reachable.

    Open this question
  27. Question 27

    Post-exploitation and Lateral Movement

    A tester with local admin credentials reaches TCP 135 on a Windows host, but a remote DCOM activation fails. A capture shows the follow-on connection to TCP 49667 is dropped. What is the MOST likely cause?

    Show the answer

    Correct answerA. A firewall blocks the dynamic RPC ports the mapper returns

    AWhy this is right: The mapper on TCP 135 hands out a high port, and the dropped connection to it shows that range is filtered.

    BWhy not this: LDAP binds concern directory queries and do not appear in a DCOM RPC exchange.

    CWhy not this: SMB signing affects SMB sessions on TCP 445, not DCOM activation over RPC.

    DWhy not this: WinRM on TCP 5985 is a different remoting method and DCOM does not depend on it.

    DCOM uses RPC: TCP 135 only runs the endpoint mapper, which then directs the client to a dynamic high port for the actual object activation. The dropped connection to TCP 49667 shows that range is blocked. WinRM is a separate channel and is irrelevant to DCOM.

    Open this question
  28. Question 28

    Post-exploitation and Lateral Movement

    Which file on a domain controller holds the password hashes for all Active Directory domain accounts?

    Show the answer

    Correct answerD. NTDS.dit

    AWhy not this: The SAM hive stores local account hashes for one host, not the domain accounts held on a domain controller.

    BWhy not this: This is the Linux file for local account hashes and does not exist on a Windows domain controller.

    CWhy not this: This is a Windows deployment answer file that may contain setup credentials, not domain account hashes.

    DWhy this is right: NTDS.dit is the Active Directory database that stores the password hashes of every domain account.

    NTDS.dit is the Active Directory database on a domain controller and holds the hashes of all domain accounts. The SAM hive is tempting, but it holds only local accounts of a single machine, not domain accounts.

    Open this question
  29. Question 29

    Post-exploitation and Lateral Movement

    A tester finds a compiled binary on a compromised Linux host and has no source code. Which tool BEST checks it for hardcoded credentials?

    Show the answer

    Correct answerD. strings

    AWhy not this: It reports the file type and architecture but does not show text embedded in the file.

    BWhy not this: It lists symbol names from the binary, which are not the same as embedded string data such as passwords.

    CWhy not this: It lists the shared libraries the binary depends on, not any text stored inside it.

    DWhy this is right: It pulls printable text out of a binary, exposing embedded passwords, keys or connection strings.

    The strings utility extracts printable character sequences from a binary, which can reveal embedded passwords, keys or connection strings. The file command is tempting but only identifies the file type and architecture.

    Open this question
  30. Question 30

    Post-exploitation and Lateral Movement

    A tester on a Windows host wants to find passwords stored as registry values rather than in files. Which approach BEST searches for the string?

    Show the answer

    Correct answerD. Querying the registry with a recursive text search

    AWhy not this: A file content search such as findstr reads files on disk and does not search registry values.

    BWhy not this: A file name search matches only names, so it finds neither registry values nor file contents.

    CWhy not this: This lists saved Windows credentials but does not search registry values for a given string.

    DWhy this is right: reg query can recursively search registry keys and values for a string, which matches the stated target.

    The reg query command can search registry keys and values recursively for a string such as password, which suits values stored in the registry. A recursive findstr search is tempting, but it searches file contents on disk and never reads registry values.

    Open this question
  31. Question 31

    Post-exploitation and Lateral Movement

    Service discovery shows TCP 5900 open on a Linux workstation, and TCP 3389 is closed. The tester wants to reach the workstation's graphical desktop. Which service is this?

    Show the answer

    Correct answerC. VNC

    AWhy not this: RDP uses TCP 3389 by default, and that port is closed on this host.

    BWhy not this: SSH uses TCP 22 and gives a text shell by default, not a desktop on TCP 5900.

    CWhy this is right: VNC listens on TCP 5900 by default and provides remote graphical desktop access.

    DWhy not this: JetDirect is raw printing on TCP 9100 and has nothing to do with desktop access.

    TCP 5900 is the default port for VNC, which shares a graphical desktop and is common on Linux hosts. RDP uses TCP 3389, which is closed here.

    Open this question
  32. Question 32

    Post-exploitation and Lateral Movement

    A tester on a compromised Linux jump host wants a list of other servers the admin has previously connected to over SSH. Which file in the admin's .ssh directory is MOST useful?

    Show the answer

    Correct answerC. known_hosts

    AWhy not this: It lists public keys allowed to log in to this account, so it shows inbound access, not past destinations.

    BWhy not this: It is the server daemon configuration, which holds settings and not a list of past connections.

    CWhy this is right: It records the host keys of servers this user has connected to, revealing candidate targets.

    DWhy not this: It holds the user's private key, which can authenticate to other hosts but does not name them.

    The known_hosts file records the host keys of servers this user has connected to, so it points to likely lateral movement targets. The authorized_keys file lists keys allowed to log in to this account, not where the user has connected.

    Open this question
  33. Question 33

    Post-exploitation and Lateral Movement

    A tester with authorized access to a network tap reviews captured logins to several internal services. Which login would show the password as readable text in the capture?

    Show the answer

    Correct answerA. A web form posted over HTTP on TCP 80

    AWhy this is right: HTTP does not encrypt the request body, so the posted password is readable in the capture.

    BWhy not this: HTTPS wraps the request in TLS, so the capture shows encrypted data only.

    CWhy not this: RDP with TLS encrypts the logon, so the password is not readable in a capture.

    DWhy not this: SSH encrypts the whole session, including the authentication exchange.

    HTTP sends form data unencrypted, so credentials appear as cleartext in a capture. HTTPS, SSH and TLS-protected RDP encrypt the session, so a capture shows only ciphertext.

    Open this question
  34. Question 34

    Post-exploitation and Lateral Movement

    A tester with no credentials finds TCP 21, 135, 389 and 445 open on a legacy file server. The tester needs the names of its fileshares and whether they allow unauthenticated access. Which action is BEST?

    Show the answer

    Correct answerB. Try an unauthenticated SMB null session and list the shares

    AWhy not this: An anonymous LDAP bind reads directory objects, which does not enumerate fileshares or their access.

    BWhy this is right: SMB serves Windows fileshares, and a null session tests share listing and access with no credentials.

    CWhy not this: Anonymous FTP lists the FTP service's own directories, which are not the SMB fileshares.

    DWhy not this: The endpoint mapper lists RPC services and bindings, not the shares or their permissions.

    Fileshares are served by SMB on TCP 445, and a null session tests whether shares can be listed and accessed without credentials. Anonymous FTP only exposes the FTP directory tree, not SMB shares.

    Open this question
  35. Question 35

    Post-exploitation and Lateral Movement

    A tester holds a low-privileged domain account on a Linux host. Only TCP 389 on the domain controller is reachable, and TCP 135 and 445 are filtered. Which action is BEST to list domain users and group memberships?

    Show the answer

    Correct answerC. Bind to LDAP with the account and query user and group objects

    AWhy not this: RDP uses TCP 3389, which is not reachable, and a low-privileged account may not be allowed to log on.

    BWhy not this: A null session needs TCP 445, which is filtered here, so it cannot be used.

    CWhy this is right: LDAP on TCP 389 is reachable and serves user and group objects to an authenticated bind.

    DWhy not this: The endpoint mapper on TCP 135 is filtered and lists RPC services, not user accounts.

    Active Directory exposes users and groups as directory objects over LDAP, so an authenticated bind on TCP 389 can query them. SMB enumeration needs TCP 445, which is filtered, and the endpoint mapper only lists RPC services.

    Open this question
  36. Question 36

    Post-exploitation and Lateral Movement

    A tester with administrator credentials queries a remote host's running processes and services through the Win32_Process and Win32_Service classes. Which technology is being used?

    Show the answer

    Correct answerD. WMI

    AWhy not this: An SSH tunnel carries traffic through a compromised host; it does not query Windows management data.

    BWhy not this: WinRM is a remote management protocol over HTTP or HTTPS; the Win32_ classes belong to WMI, not to it.

    CWhy not this: NTLM relay forwards captured authentication to another host; it does not query system classes.

    DWhy this is right: WMI exposes system data through classes such as Win32_Process and Win32_Service, which can be queried remotely.

    Win32_Process and Win32_Service are WMI classes, which expose management data and methods on Windows hosts. WinRM is a remote management protocol that can carry sessions, but it does not define these classes.

    Open this question
  37. Question 37

    Post-exploitation and Lateral Movement

    A tester has an administrator NT hash that will not crack. Only TCP 5985 is reachable on the target; ports 135 and 445 are blocked. Which tool should the tester use?

    Show the answer

    Correct answerC. Evil-WinRM

    AWhy not this: Responder poisons name resolution to capture authentication; it does not give remote access with a hash.

    BWhy not this: Impacket wmiexec relies on WMI over RPC through TCP 135, which is blocked here.

    CWhy this is right: Evil-WinRM uses WinRM on TCP 5985 and can authenticate with an NT hash instead of a password.

    DWhy not this: PsExec relies on SMB over TCP 445 to run its service, which is blocked here.

    Evil-WinRM connects over WinRM on TCP 5985 and can authenticate with an NT hash, so it fits the open port. Impacket wmiexec needs RPC on TCP 135, and PsExec needs SMB on TCP 445, both blocked.

    Open this question
  38. Question 38

    Post-exploitation and Lateral Movement

    A scan of a Windows server shows TCP 5986 open and TCP 5985 closed. The tester holds valid administrator credentials and wants a remote PowerShell session. What should the tester use?

    Show the answer

    Correct answerD. WinRM over HTTPS

    AWhy not this: WMI over DCOM uses the RPC endpoint mapper on TCP 135 and dynamic ports, not 5986.

    BWhy not this: RDP uses TCP 3389 and gives a graphical desktop, not a PowerShell remoting session.

    CWhy not this: Admin shares use SMB on TCP 445 and do not provide PowerShell remoting.

    DWhy this is right: TCP 5986 is the default WinRM HTTPS listener, which accepts PowerShell remoting sessions.

    TCP 5986 is the WinRM HTTPS listener, so a PowerShell remoting session can be opened over TLS with valid credentials. WMI over DCOM relies on TCP 135 and dynamic RPC ports, not 5986.

    Open this question
  39. Question 39

    Post-exploitation and Lateral Movement

    A tester's traffic to an internal subnet runs through an sshuttle tunnel. TCP connections to port 445 succeed, but ping gets no replies. What is the cause?

    Show the answer

    Correct answerA. sshuttle carries TCP and optional DNS only, so ICMP never enters the tunnel

    AWhy this is right: sshuttle tunnels only TCP and optional DNS, so ICMP echo is not forwarded.

    BWhy not this: A persistent route entry does not change which protocols sshuttle tunnels.

    CWhy not this: SSH servers do not filter ICMP; the limit is in what sshuttle forwards.

    DWhy not this: Proxychains also handles only TCP connections, so wrapping ping would not help.

    sshuttle redirects TCP connections (and optionally DNS) over SSH; it does not forward UDP or ICMP, so ping fails while SMB works. Proxychains cannot fix this, because it also proxies only TCP connections.

    Open this question
  40. Question 40

    Post-exploitation and Lateral Movement

    Which tool builds a VPN-like tunnel over SSH that transparently routes traffic for chosen subnets through a pivot host?

    Show the answer

    Correct answerB. sshuttle

    AWhy not this: Proxychains forces each wrapped command through a proxy; it does not route a subnet transparently.

    BWhy this is right: sshuttle sends traffic for chosen subnets over SSH to the pivot, acting like a simple VPN.

    CWhy not this: Covenant is a command-and-control framework for Grunt implants, not an SSH tunnel.

    DWhy not this: Netcat reads and writes raw network connections and does not build a routed tunnel.

    sshuttle forwards traffic for the subnets you name over an SSH connection, so ordinary tools reach them without per-command wrapping. Proxychains needs an existing proxy and must wrap each command.

    Open this question
  41. Question 41

    Post-exploitation and Lateral Movement

    On a compromised Windows workstation with an interactive desktop session, a tester must write and step through a multi-line script that uses cmdlets and .NET objects, with breakpoints, before running it elsewhere. Nothing may be installed. Which built-in tool fits?

    Show the answer

    Correct answerC. PowerShell ISE

    AWhy not this: mmc.exe hosts administrative snap-ins and is not a scripting or debugging environment.

    BWhy not this: cmd.exe batch files cannot call cmdlets or .NET objects natively and have no breakpoint debugger.

    CWhy this is right: ISE is a built-in GUI with a script pane, console and breakpoint debugging for PowerShell.

    DWhy not this: msbuild compiles project files and inline tasks; it is not an interactive script editor or debugger.

    PowerShell ISE ships with Windows and combines a script editor, console and debugger with breakpoints for cmdlet and .NET scripts. A batch file in cmd.exe has no debugger and cannot use cmdlets or .NET objects natively.

    Open this question
  42. Question 42

    Post-exploitation and Lateral Movement

    A host firewall on a compromised server blocks all inbound connections but allows outbound TCP 443. The tester wants an interactive shell using Netcat. Which setup works?

    Show the answer

    Correct answerC. A listener on the tester's system, with the server connecting out to it

    AWhy not this: PsExec needs inbound SMB to the server, which the firewall blocks.

    BWhy not this: sshuttle needs an inbound SSH login to the server, which is blocked, and it gives no shell.

    CWhy this is right: a reverse shell uses only the allowed outbound connection, so the blocked inbound path is never needed.

    DWhy not this: A bind shell needs the tester to connect inbound, which the host firewall blocks.

    With inbound traffic blocked, the shell must be a reverse shell: Netcat listens on the tester's system and the server connects out over the permitted port. A bind shell on the server fails because the firewall drops the inbound connection to it.

    Open this question
  43. Question 43

    Post-exploitation and Lateral Movement

    A tester routes Nmap through Proxychains to a SOCKS proxy on a pivot host. A default SYN scan of the internal subnet returns nothing usable, though the proxy works for other tools. What should the tester change?

    Show the answer

    Correct answerD. Use a TCP connect scan so Nmap opens normal socket connections

    AWhy not this: Proxychains does not relay UDP datagrams, so a UDP scan would not work either.

    BWhy not this: Chain length does not matter; raw SYN packets never reach the proxy at all.

    CWhy not this: Netcat does not relay raw packets between networks; it only handles stream connections.

    DWhy this is right: connect scans use ordinary TCP sockets, which Proxychains can redirect through the proxy.

    Proxychains intercepts normal TCP socket connections made by the wrapped program. A default SYN scan crafts raw packets that bypass this, so a TCP connect scan is needed. Extra proxies do not change this limit.

    Open this question
  44. Question 44

    Post-exploitation and Lateral Movement

    A tester has a Meterpreter session on a dual-homed Windows workstation. Scanner modules run from the tester's machine cannot reach the internal 172.16.4.0/24 subnet. What should the tester do?

    Show the answer

    Correct answerC. Add a route for the subnet through the existing session

    AWhy not this: Relaying reuses captured authentication against a target; it does not give modules network reach into the subnet.

    BWhy not this: WMI queries return data about the workstation; they do not route the tester's traffic to the subnet.

    CWhy this is right: Routing through the session turns the dual-homed host into a pivot that carries module traffic to the internal subnet.

    DWhy not this: WinRM gives a shell on the workstation but does not forward traffic from the tester's own tools.

    Adding a route for the subnet through the session makes the compromised workstation a pivot, so modules on the tester's machine send traffic through it. A WinRM session only gives a shell on the workstation and does not carry the modules' traffic.

    Open this question
  45. Question 45

    Post-exploitation and Lateral Movement

    A tester has administrator credentials, WinRM is disabled, and TCP 135 is open. Which technology can still run commands remotely?

    Show the answer

    Correct answerA. WMI

    AWhy this is right: WMI is reached over DCOM through RPC on TCP 135 and can start processes with administrator credentials.

    BWhy not this: An NTLM relay forwards captured authentication; it is not a management service on the host.

    CWhy not this: WinRM needs its own listener on TCP 5985 or 5986, and it is disabled.

    DWhy not this: SSH port forwarding tunnels traffic and needs an SSH service, which is not part of this scenario.

    WMI is reached over DCOM, which starts at the RPC endpoint mapper on TCP 135, so it works without WinRM. WinRM depends on its own service listening on TCP 5985 or 5986, which is disabled here.

    Open this question
  46. Question 46

    Post-exploitation and Lateral Movement

    A tester holds credentials for a non-administrator account in the Remote Management Users group, and TCP 5985 is open on a server. Which method is most likely to give a remote shell?

    Show the answer

    Correct answerA. A WinRM remote session

    AWhy this is right: Remote Management Users members may connect through WinRM, so a session over TCP 5985 works.

    BWhy not this: Remote WMI process creation normally requires administrator-level DCOM and namespace rights.

    CWhy not this: PsExec writes a service binary to ADMIN$, which requires administrator rights this account lacks.

    DWhy not this: Relaying needs captured authentication and a target without signing; the tester already holds valid credentials.

    Membership in Remote Management Users grants the right to connect through WinRM, so a remote session over TCP 5985 works without administrator rights. PsExec needs administrator access to the ADMIN$ share, which this account lacks.

    Open this question
  47. Question 47

    Post-exploitation and Lateral Movement

    A tester on a compromised Linux host in the DMZ needs it to accept connections on TCP 8443 and pass them to an internal web server on TCP 443. Which method does this?

    Show the answer

    Correct answerB. Run a socat relay from TCP 8443 to the internal host

    AWhy not this: Responder answers broadcast name queries to capture credentials; it does not forward connections.

    BWhy this is right: A socat relay accepts connections on one port and forwards them to a chosen host and port.

    CWhy not this: A WMI event subscription runs actions on system events; it does not listen and forward traffic.

    DWhy not this: A WinRM listener serves remote management requests; it does not pass traffic on to another server.

    A socat relay listens on one port and forwards the traffic to another host and port, so the DMZ host passes tester connections to the internal server. Responder poisons name resolution to capture authentication and does not forward arbitrary traffic.

    Open this question
  48. Question 48

    Post-exploitation and Lateral Movement

    Which built-in Windows binary is the traditional command-line interpreter a tester launches to run commands such as net and netstat?

    Show the answer

    Correct answerC. cmd.exe

    AWhy not this: It hosts graphical management snap-ins and is not a command line.

    BWhy not this: It runs functions exported from DLL files and does not interpret commands.

    CWhy this is right: It is the Windows command interpreter that executes typed commands and batch files.

    DWhy not this: It is the graphical desktop shell and file browser, not a command interpreter.

    Cmd.exe is the Windows command interpreter that runs typed commands and batch files. Explorer.exe is the graphical shell and file manager, not a command interpreter.

    Open this question
  49. Question 49

    Post-exploitation and Lateral Movement

    On a compromised workstation, a tester needs to list the internal hosts it currently has established TCP sessions with, to spot servers an administrator uses. Which built-in utility shows this?

    Show the answer

    Correct answerB. netstat

    AWhy not this: It enumerates computers or shares visible on the network, not live sessions from this host.

    BWhy this is right: It lists active connections with remote addresses, ports and states, including ESTABLISHED sessions.

    CWhy not this: It shows the routing table, which describes paths to networks, not current sessions.

    DWhy not this: It searches text for patterns and does not report network connections.

    Netstat lists active TCP connections with local and remote addresses, ports and states, so established sessions show which internal servers the host talks to. Net view lists computers or shares visible on the network, not the host's live connections.

    Open this question
  50. Question 50

    Post-exploitation and Lateral Movement

    A tester on a domain-joined workstation needs the accounts in the domain's Domain Admins group to choose lateral movement targets. Which net command, run from the workstation, answers this?

    Show the answer

    Correct answerA. net group with the /domain switch

    AWhy this is right: It queries the domain for group membership, so it can list Domain Admins members.

    BWhy not this: It lists only the workstation's local Administrators group, not domain groups.

    CWhy not this: It connects to or maps a shared resource and does not enumerate group members.

    DWhy not this: It lists computers or shares visible on the network and shows no group membership.

    Net group with /domain queries a domain controller for domain group membership, including Domain Admins. Net localgroup administrators only lists the local Administrators group on the workstation, which is a different scope.

    Open this question