Curated

Post-exploitation and Lateral Movement 2 (5.2)

0 votes

Questions108

  1. Question 51

    Post-exploitation and Lateral Movement

    With an interactive desktop session on a compromised host, a tester wants a file browsing window to open a remote server's C$ share by entering its UNC path. Which built-in binary provides this?

    Show the answer

    Correct answerC. explorer.exe

    AWhy not this: It compiles project files and does not browse remote file systems.

    BWhy not this: It is a command-line FTP client and cannot open SMB administrative shares.

    CWhy this is right: It is the file manager and shell that opens UNC paths to remote SMB shares.

    DWhy not this: It hosts management snap-ins and does not browse file shares in a folder window.

    Explorer.exe is the Windows file manager and shell; it opens UNC paths such as an administrative share over SMB using the logged-on credentials. Ftp.exe transfers files over FTP, not SMB shares.

    Open this question
  2. Question 52

    Post-exploitation and Lateral Movement

    A tester on a Linux attack host holds a Domain Admin's credentials and must dump password hashes from a domain controller remotely. Which toolkit fits?

    Show the answer

    Correct answerC. Impacket

    AWhy not this: Netcat reads and writes raw network connections and has no ability to extract hashes.

    BWhy not this: PsExec is a Windows tool for running remote commands and does not dump domain hashes from Linux.

    CWhy this is right: Impacket's Python scripts, such as secretsdump, dump hashes from a domain controller remotely using valid credentials.

    DWhy not this: Mimikatz is a Windows binary that runs on a Windows host, so it does not fit a Linux attack host working remotely.

    Impacket is a Python toolkit whose secretsdump script pulls hashes from a domain controller over remote protocols, straight from Linux. Mimikatz can extract credentials too, but it is a Windows binary that has to run on a Windows host.

    Open this question
  3. Question 53

    Post-exploitation and Lateral Movement

    A tester on a Linux pivot with no Nmap must check which TCP ports are open on an internal server and read their banners. Which tool does this?

    Show the answer

    Correct answerC. Netcat

    AWhy not this: Proxychains forces other tools' traffic through proxies and does not test ports or read banners itself.

    BWhy not this: Netstat lists the local host's sockets and connections, so it cannot probe a remote server's ports.

    CWhy this is right: Netcat connects to remote ports to test whether they are open and displays service banners.

    DWhy not this: Impacket offers protocol scripts for tasks like remote execution and is not a port-checking utility.

    Netcat can open TCP connections to a range of ports on a remote host and show whatever banner each service returns. Netstat is tempting, but it only lists the local host's own sockets and connections, not the remote server's open ports.

    Open this question
  4. Question 54

    Post-exploitation and Lateral Movement

    What must a tester have on a pivot host to route traffic into its internal subnet with sshuttle?

    Show the answer

    Correct answerD. An SSH login

    AWhy not this: sshuttle does not use a Metasploit session; routing through a session is done with Metasploit's own routing.

    BWhy not this: sshuttle does not connect to a Netcat listener; it carries its traffic over SSH.

    CWhy not this: A Covenant Grunt is a C2 implant and plays no role in an sshuttle tunnel.

    DWhy this is right: sshuttle tunnels over SSH, so a working SSH login to the pivot is what it needs.

    sshuttle builds its tunnel over SSH, so the tester needs only SSH access to the pivot host, plus Python there. A C2 implant or Netcat listener is not used by sshuttle.

    Open this question
  5. Question 55

    Post-exploitation and Lateral Movement

    A tester chains two SOCKS proxies through Proxychains, and one pivot goes offline, so every connection now fails. Which change lets traffic use the remaining proxy?

    Show the answer

    Correct answerD. Set the chain type to dynamic_chain

    AWhy not this: proxy_dns sends DNS lookups through the proxy and does not make the chain skip a dead proxy.

    BWhy not this: A lower timeout only makes failure come sooner; a strict chain still fails with a dead proxy.

    CWhy not this: Switching socks5 to socks4 changes the protocol version and does not fix an offline proxy.

    DWhy this is right: dynamic_chain skips proxies that are down and passes traffic through those that still respond.

    With strict_chain every listed proxy must be up, so one dead proxy breaks all connections. dynamic_chain skips dead proxies and uses those that respond. proxy_dns only controls where names are resolved and does not skip a dead hop.

    Open this question
  6. Question 56

    Post-exploitation and Lateral Movement

    A tester's shell on a Windows host shows an established connection to 10.0.2.15 on TCP 3389 owned by PID 3120. The process list shows PID 3120 is mstsc.exe in a domain admin's session. Which conclusion is BEST?

    Show the answer

    Correct answerB. This host is the RDP client in an admin's session to 10.0.2.15, a lateral movement lead

    AWhy not this: PIDs can be reused over time, but at this moment the table and process list agree.

    BWhy this is right: The PID ties the connection to the local RDP client, and the admin's session marks a useful target.

    CWhy not this: The remote port is 3389 and the owner is an RDP client, so the connection is outbound, not inbound.

    DWhy not this: A PID is local to its own host, so it says nothing about processes on the remote server.

    A PID identifies a process on the host where it is listed, and the connection table ties it to this connection. An mstsc.exe client connecting out to port 3389 means an admin is using RDP from here to 10.0.2.15. PIDs are local, so they say nothing about the remote server.

    Open this question
  7. Question 57

    Post-exploitation and Lateral Movement

    A tester's job sent to an LPD server on TCP 515 is refused from the tester's laptop, but the same server accepts jobs from a known print client. What is the MOST likely cause?

    Show the answer

    Correct answerB. LPD allows only listed client hosts, and the laptop is not on that list

    AWhy not this: LPD runs independently of raw JetDirect printing, so TCP 9100 state is irrelevant.

    BWhy this is right: LPD trusts clients by source host, so an unlisted laptop is refused while a listed client is accepted.

    CWhy not this: LPD has no directory login; it does not query LDAP to authenticate the sender.

    DWhy not this: Print submission over LPD does not use SMB shares or SMB authentication.

    LPD has no user login; it decides by the source host, using an allowed-hosts list. A refusal for one machine and not another points to that host-based trust. Requiring an LDAP account is wrong because LPD has no directory authentication.

    Open this question
  8. Question 58

    Post-exploitation and Lateral Movement

    A tester with a standard domain account reaches TCP 135 and the dynamic RPC ports on a Windows server, yet remote DCOM activation returns access denied. What is the MOST likely cause?

    Show the answer

    Correct answerA. The account lacks remote activation rights on the DCOM object

    AWhy this is right: Remote launch and activation rights default to administrators, so a standard account is denied.

    BWhy not this: The tester reached TCP 135, so the endpoint mapper is answering.

    CWhy not this: LDAP signing governs directory binds and does not affect DCOM activation.

    DWhy not this: Blocked dynamic ports cause a dropped connection or timeout, not an access-denied reply.

    DCOM objects restrict remote launch and activation to specific accounts, by default administrators. An access-denied reply after the connection works points to permissions. Blocked dynamic ports would cause a timeout or dropped connection instead.

    Open this question
  9. Question 59

    Post-exploitation and Lateral Movement

    A tester's notes say a legacy server runs LPD. What does this service do?

    Show the answer

    Correct answerC. It accepts print jobs into named queues on a print server

    AWhy not this: That describes FTP, which moves files rather than print jobs.

    BWhy not this: That describes RDP or VNC, which provide a remote graphical desktop.

    CWhy this is right: LPD receives print jobs and holds them in named queues for printing.

    DWhy not this: That describes LDAP, which reads directory objects, not print jobs.

    LPD, the Line Printer Daemon, receives print jobs and places them in named print queues. Directory querying is LDAP, which is a different service.

    Open this question
  10. Question 60

    Post-exploitation and Lateral Movement

    A tester is assessing a network printer with TCP 9100 open as a possible lateral movement lead. Which four statements about this JetDirect service are accurate? (Choose four.)

    Choose 4 answers

    Show the answer

    Correct answersA. It carries print data across the network unencryptedB. It listens on TCP 9100 by defaultC. It can return device details when sent PJL queriesE. It does not authenticate the submitting user by default

    AWhy this is right: Data on TCP 9100 is not encrypted by default, so it can be read in a capture.

    BWhy this is right: TCP 9100 is the default JetDirect raw printing port.

    CWhy this is right: PJL queries over the port can disclose model, status and other device information.

    DWhy not this: Client-chosen queue names are an LPD trait; JetDirect sends data straight to the device.

    EWhy this is right: Raw printing on 9100 normally accepts jobs with no user login.

    FWhy not this: SMB authentication is not part of JetDirect raw printing.

    JetDirect raw printing listens on TCP 9100, takes PJL queries that can reveal device details, sends data in cleartext and normally has no user authentication. Named queues belong to LPD, and SMB logins belong to file and print shares.

    Open this question
  11. Question 61

    Post-exploitation and Lateral Movement

    A tester on a compromised dual-homed Windows host sees one default gateway in the adapter settings but suspects a static route sends a hidden subnet through another router. Which built-in command lists the static routes, including persistent ones?

    Show the answer

    Correct answerC. route print

    AWhy not this: net view lists computers visible on the network, not the routes the host uses to reach them.

    BWhy not this: arp -a lists IP-to-MAC mappings for recent neighbors; it shows no gateways for remote subnets.

    CWhy this is right: route print shows the full routing table and a Persistent Routes section with every static gateway entry.

    DWhy not this: netstat -ano lists sockets and owning PIDs, not the static routes configured on the host.

    route print displays the IPv4 routing table, including a Persistent Routes section that holds static entries, revealing gateways beyond the default one. arp -a only lists neighbors the host recently contacted and cannot show routes.

    Open this question
  12. Question 62

    Post-exploitation and Lateral Movement

    A tester is setting up Covenant and needs a component that accepts HTTP callbacks from Grunts on compromised hosts. What must be created for this?

    Show the answer

    Correct answerA. Listener

    AWhy this is right: A Listener is the Covenant endpoint that receives Grunt check-ins, and Launchers are bound to it.

    BWhy not this: A Grunt is the implant on the target; it connects out and does not accept callbacks.

    CWhy not this: A Launcher generates the payload that starts a Grunt; it does not receive callbacks.

    DWhy not this: A Task is a module or command run on an existing Grunt, not a callback endpoint.

    A Listener is the server-side endpoint in Covenant that receives callbacks from Grunts, so it must exist before a Launcher can build a payload bound to it. A Launcher only produces the code that starts a Grunt; it does not accept connections.

    Open this question
  13. Question 63

    Post-exploitation and Lateral Movement

    Which utility extracts printable text, such as hardcoded credentials, from a compiled binary?

    Show the answer

    Correct answerC. strings

    AWhy not this: rundll32 runs an exported function from a DLL; it does not extract text from files.

    BWhy not this: msbuild builds projects from project files and can run inline code; it does not extract text from binaries.

    CWhy this is right: strings outputs runs of printable characters found in a binary, exposing embedded text such as credentials.

    DWhy not this: route manages the routing table; it does not read file contents.

    strings scans a binary file and outputs the sequences of printable characters it contains, which can expose embedded credentials or paths. msbuild compiles project files and does not read text out of existing binaries.

    Open this question
  14. Question 64

    Post-exploitation and Lateral Movement

    During an authorized test, a tester runs CrackMapExec against a /24 subnet over SMB with one valid domain user's password. Which three kinds of information can it report? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Hosts where the account holds local administrator rightsB. The domain password policyE. SMB shares and the account's access level on each

    AWhy this is right: CME marks hosts where the credentials give local admin access, shown as Pwn3d!.

    BWhy this is right: With valid credentials CME can pull the domain password policy.

    CWhy not this: Tunneling traffic is done by sshuttle or Proxychains; CME is not a pivoting tool.

    DWhy not this: Opening Meterpreter sessions is a Metasploit function; CME does not do it on its own.

    EWhy this is right: CME can enumerate shares and show the read or write access the credentials have.

    FWhy not this: Forging golden tickets is a Mimikatz or Impacket task, not a CME enumeration result.

    CrackMapExec tests credentials across many hosts and flags admin access, enumerates shares with permissions, and can query the domain password policy. It does not open Meterpreter sessions, forge Kerberos tickets or build tunnels; those are Metasploit, Mimikatz and sshuttle jobs.

    Open this question
  15. Question 65

    Post-exploitation and Lateral Movement

    Policy blocks PowerShell on a compromised legacy host. A tester must repeat the same net use and copy commands against a list of in-scope servers. What is the best way to automate this?

    Show the answer

    Correct answerB. A batch file run by cmd.exe

    AWhy not this: Netcat listens for or opens connections; it does not automate a series of commands.

    BWhy this is right: A .bat or .cmd file chains cmd.exe commands and loops over a list, with no PowerShell needed.

    CWhy not this: A saved mmc.exe console stores snap-in layouts, not repeatable command sequences.

    DWhy not this: ISE scripts need the PowerShell engine, which is blocked on this host.

    A batch file is a text file of cmd.exe commands. A loop over a server list can repeat net use and copy without PowerShell. A PowerShell ISE script depends on the PowerShell engine, which policy blocks on this host.

    Open this question
  16. Question 66

    Post-exploitation and Lateral Movement

    Over an RDP session on a compromised workstation, a tester must run a cmdlet-based script one highlighted section at a time, with output in the same window. The script must later be saved as a .ps1 file, and nothing may be installed. Which tool fits?

    Show the answer

    Correct answerC. PowerShell ISE

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

    BWhy not this: msbuild builds and runs project files with inline tasks; it has no interactive script editor or console.

    CWhy this is right: ISE pairs a script pane with a console, runs selected lines, saves .ps1 files, and ships with Windows PowerShell.

    DWhy not this: cmd.exe runs commands and batch files but has no cmdlet-aware editor and no run-selection feature.

    PowerShell ISE is a built-in GUI with an editable script pane and a console. A tester can run selected lines and save a .ps1 file without installing anything. cmd.exe is tempting as a built-in shell, but it has no cmdlet-aware editor and cannot run selected sections of a script.

    Open this question
  17. Question 67

    Post-exploitation and Lateral Movement

    A staged Meterpreter payload on a compromised in-scope host calls back to the tester's Netcat listener, which shows only binary garbage. What should the tester use to catch it?

    Show the answer

    Correct answerC. Metasploit's multi/handler with the matching payload

    AWhy not this: Covenant listeners serve Grunt implants, which use a different protocol from Meterpreter.

    BWhy not this: Netcat relays raw bytes and cannot parse the Meterpreter protocol, however verbose it is.

    CWhy this is right: multi/handler sends the second stage and manages the Meterpreter session when its payload matches.

    DWhy not this: sshuttle routes traffic to a subnet; it does not receive or interpret payload callbacks.

    A staged Meterpreter payload needs a handler that sends the second stage and speaks the Meterpreter protocol. Metasploit's multi/handler does this when set to the matching payload. Netcat only relays raw bytes, so more verbose output does not help.

    Open this question
  18. Question 68

    Post-exploitation and Lateral Movement

    A tester runs Mimikatz in a standard-user shell on a workstation where an administrator recently logged on. It cannot read credentials from LSASS memory. What must the tester do first?

    Show the answer

    Correct answerB. Elevate to an administrator context with the debug privilege

    AWhy not this: Mimikatz reads LSASS locally on the host; running it remotely does not remove the privilege need.

    BWhy this is right: LSASS memory can only be read with elevated rights and the debug privilege, so elevation comes first.

    CWhy not this: Logging off does not help; the tester needs cached credentials, and logoff would remove them.

    DWhy not this: A LOLBin launch may evade application control but grants no extra privileges.

    Reading another process's memory such as LSASS needs administrator rights with the debug privilege enabled, so the tester must elevate first. Running through MSBuild may bypass application controls, but it does not grant the privilege to read LSASS.

    Open this question
  19. Question 69

    Post-exploitation and Lateral Movement

    Which Sysinternals tool runs commands on a remote Windows host over SMB using administrator credentials?

    Show the answer

    Correct answerA. PsExec

    AWhy this is right: PsExec runs processes on remote Windows hosts over SMB when given administrator credentials.

    BWhy not this: Mimikatz extracts credentials from memory; it is not a remote command execution tool.

    CWhy not this: Netcat reads and writes raw network connections and is not a Sysinternals tool.

    DWhy not this: ftp.exe transfers files to an FTP server and does not execute remote commands.

    PsExec is a Sysinternals utility that executes processes on a remote Windows system over SMB, using administrator credentials. Mimikatz is tempting in lateral movement, but it extracts credentials rather than running remote commands.

    Open this question
  20. Question 70

    Post-exploitation and Lateral Movement

    Why is cmd.exe classed as a LOLBin?

    Show the answer

    Correct answerA. It ships with Windows and is trusted, so its misuse blends in with normal activity

    AWhy this is right: Being a built-in, trusted binary is what defines a LOLBin, and it makes abuse harder to spot.

    BWhy not this: That describes PsExec, which is not built into Windows and must be uploaded.

    CWhy not this: That describes Covenant, a separate command-and-control framework, not a native binary.

    DWhy not this: That describes Mimikatz, a third-party tool, not a native Windows binary.

    A LOLBin is a legitimate, signed binary already present on the operating system that an attacker can abuse, and cmd.exe qualifies because it comes with Windows. Tools that must be uploaded, such as PsExec, are not living off the land.

    Open this question
  21. Question 71

    Post-exploitation and Lateral Movement

    On a compromised Windows server, netstat -ano shows several ESTABLISHED connections from the server to 10.10.4.30:1433. What is the most useful conclusion for planning lateral movement?

    Show the answer

    Correct answerD. 10.10.4.30 is a reachable internal host running a database service, so it is a candidate pivot target

    AWhy not this: The port 1433 is in the Foreign Address column, so the database runs on the remote peer, not on this server.

    BWhy not this: Nothing indicates who started the session or that anything is compromised; the foreign endpoint is simply the peer.

    CWhy not this: An ESTABLISHED state means the handshake completed, so the port is open and the host answered.

    DWhy this is right: A live session to 10.10.4.30:1433 shows that the host is reachable from here and exposes a database service.

    An ESTABLISHED entry shows a live session, and the Foreign Address column identifies the remote peer. Here the server is actively talking to 10.10.4.30 on port 1433, so that host is reachable and runs a database service worth targeting. Reading the entry as the server hosting the database is tempting, but the port 1433 sits on the foreign side, not the local side.

    Open this question
  22. Question 72

    Post-exploitation and Lateral Movement

    An EDR rule alerts on executables started by cmd.exe. With a desktop session on a compromised host, which built-in binary, given the executable's path as an argument, would start it with the Windows desktop shell as its parent?

    Show the answer

    Correct answerB. explorer.exe

    AWhy not this: Ftp.exe is a file-transfer client; programs it starts show ftp.exe as parent, not the shell.

    BWhy this is right: Explorer.exe is the desktop shell, so programs it starts show it as the parent process.

    CWhy not this: Rundll32 runs functions exported from DLLs; it is not the desktop shell parent of a program.

    DWhy not this: Mmc.exe hosts management console snap-ins and does not act as the shell parent for a program.

    Explorer.exe is the Windows desktop shell, and an executable path passed to it is started under it, so the process tree looks like ordinary user activity rather than a cmd.exe child. Rundll32 loads DLL exports and does not launch executables as shell children.

    Open this question
  23. Question 73

    Post-exploitation and Lateral Movement

    From a domain-joined workstation as a low-privileged domain user, a tester wants to enumerate domain accounts, discover visible computers and authenticate to a remote admin share, using only the built-in net command. Which three commands do this? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersB. net use \\FS01\C$C. net viewD. net user /domain

    AWhy not this: Netstat is not a net subcommand; it only shows local connections and listening ports.

    BWhy this is right: Connects to a remote share, authenticating with the supplied or current credentials.

    CWhy this is right: Lists computers visible on the network, helping the tester find targets.

    DWhy this is right: Lists the accounts in the domain, giving candidate users to target for lateral movement.

    EWhy not this: net share lists or creates shares on the local machine; it does not connect to a remote share.

    The net command can list domain accounts (net user /domain), list visible computers (net view) and connect to a share with credentials (net use). Netstat is a separate utility that shows local socket state and does not enumerate accounts, computers or shares. net share only lists or creates shares on the local machine and connects to nothing remote.

    Open this question
  24. Question 74

    Post-exploitation and Lateral Movement

    Policy on a compromised in-scope Windows server blocks PowerShell and browsers but allows ftp.exe, and the tester runs an FTP server in the lab. Which two uses of ftp.exe fit this situation? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersC. Run a local command from inside an ftp session with the shell escapeD. Run an unattended file transfer from a text file of ftp commands

    AWhy not this: ftp.exe speaks plain FTP, not SSH; encrypted tunneling comes from sshuttle or an SSH client.

    BWhy not this: Matching ports to owning processes is netstat's job; ftp.exe only talks to FTP servers.

    CWhy this is right: The exclamation-mark escape inside an ftp session runs a local command, so ftp.exe can also launch programs.

    DWhy this is right: ftp.exe can take its commands from a text file, so uploads and downloads run unattended.

    ftp.exe can read its commands from a script file, so transfers run without interaction, and its shell escape runs a local command from inside a session. It speaks only plain FTP, so it cannot build an encrypted SSH tunnel; that is sshuttle or an SSH client.

    Open this question
  25. Question 75

    Post-exploitation and Lateral Movement

    A tester has a project file with inline C# code, and the Windows host has .NET installed and blocks unknown executables. Which signed Microsoft binary can compile and run that code?

    Show the answer

    Correct answerA. msbuild.exe

    AWhy this is right: msbuild.exe builds project files and runs inline C# tasks, which suits a signed-binary approach.

    BWhy not this: rundll32.exe calls functions exported by an existing DLL; it does not compile source from a project file.

    CWhy not this: ftp.exe transfers files and can run commands from a script, but it does not compile code.

    DWhy not this: findstr.exe searches text for patterns; it neither compiles nor runs code.

    msbuild.exe is a signed .NET build tool that compiles and runs inline tasks defined in a project file, so no unknown executable is needed. rundll32.exe runs DLL exports and cannot compile source code from a project file.

    Open this question
  26. Question 76

    Post-exploitation and Lateral Movement

    A tester holds a local administrator's credentials for an in-scope file server and has a desktop session on a workstation. Which built-in binary hosts the graphical Services and Shared Folders consoles pointed at that server?

    Show the answer

    Correct answerA. mmc.exe

    AWhy this is right: mmc.exe hosts snap-ins, and those can be directed at a remote computer when the tester has administrator rights.

    BWhy not this: explorer.exe browses files and shares but does not host management consoles for remote services.

    CWhy not this: cmd.exe is a command interpreter; it provides no graphical management snap-ins.

    DWhy not this: route.exe only views and edits the local routing table; it manages no remote services or shares.

    mmc.exe hosts management snap-ins such as Services and Shared Folders and can connect them to a remote computer with administrator rights. explorer.exe can browse an administrative share but has no console for managing remote services.

    Open this question
  27. Question 77

    Post-exploitation and Lateral Movement

    On an in-scope Windows host, a tester has placed a DLL whose payload runs from one of its exported functions. Application control allows signed Microsoft binaries. Which binary should call that function?

    Show the answer

    Correct answerC. rundll32.exe

    AWhy not this: msbuild.exe processes project files with inline tasks; it does not invoke a DLL's exported function.

    BWhy not this: mmc.exe loads management snap-ins and saved consoles, not arbitrary exported DLL functions.

    CWhy this is right: rundll32.exe loads a DLL and calls a chosen exported function, which matches the payload's design.

    DWhy not this: cmd.exe interprets commands and batch files; it has no way to call a DLL export.

    rundll32.exe loads a DLL and calls a named exported function, which fits a payload DLL. msbuild.exe is tempting but it builds project files and runs inline source code; it does not call a function exported by a DLL.

    Open this question
  28. Question 78

    Post-exploitation and Lateral Movement

    A tester's tools reach internal servers by IP address through Proxychains, but internal hostnames fail to resolve. What should the tester change?

    Show the answer

    Correct answerB. Enable proxy_dns in the Proxychains configuration file

    AWhy not this: A static route affects packet routing, not Proxychains' name resolution, and the IP-based connections already work.

    BWhy this is right: proxy_dns sends DNS lookups through the proxy so the pivot's resolver answers internal names.

    CWhy not this: SOCKS4 lacks remote name resolution, so it would not fix hostname lookups.

    DWhy not this: The chain type controls how proxies are ordered and used. It does not change where names are resolved.

    Without proxy_dns, the tool resolves names with the attack host's own resolver, which cannot see internal names. Enabling it sends lookups through the proxy. SOCKS4 makes this worse, because it lacks remote name resolution.

    Open this question
  29. Question 79

    Post-exploitation and Lateral Movement

    A tester on a Linux host has captured SMB authentication attempts from in-scope workstations and wants to relay them to servers that do not require SMB signing. Which toolkit provides this?

    Show the answer

    Correct answerC. Impacket

    AWhy not this: PsExec runs commands remotely with credentials the tester already has. It cannot relay captured authentication.

    BWhy not this: CrackMapExec tests known credentials or hashes across hosts. It does not relay authentication it captured.

    CWhy this is right: Impacket ships ntlmrelayx, which relays captured NTLM authentication to targets that lack SMB signing.

    DWhy not this: Mimikatz extracts credentials from memory on a host. It does not relay network authentication to other servers.

    Impacket includes ntlmrelayx, which forwards captured NTLM authentication to other hosts that do not enforce SMB signing. CrackMapExec tests credentials it already holds against many hosts, but it does not relay captured authentication.

    Open this question
  30. Question 80

    Post-exploitation and Lateral Movement

    A tester has SSH access to a pivot host and runs sshuttle with the internal subnet specified. What is the effect on the tester's attack host?

    Show the answer

    Correct answerD. Traffic from local tools to that subnet is transparently redirected through the pivot, with no per-application proxy configuration.

    AWhy not this: sshuttle works at the network level, so applications need no proxy settings and are not limited to a browser.

    BWhy not this: Forwarding one port to one service is SSH local port forwarding. sshuttle routes whole subnets.

    CWhy not this: sshuttle needs no agent on the internal hosts. It only needs SSH access to the pivot.

    DWhy this is right: Local redirection rules send the chosen subnet's traffic through the SSH connection, so unmodified tools reach it directly.

    sshuttle adds local redirection rules so TCP traffic to the specified subnet goes through the SSH connection to the pivot. Tools then run unmodified, unlike with a SOCKS proxy. A single forwarded port is the behavior of SSH local port forwarding, not sshuttle, which covers whole subnets.

    Open this question
  31. Question 81

    Post-exploitation and Lateral Movement

    A tester on a compromised Linux server with no scp or FTP client must send a file to the tester's workstation, which is listening on a TCP port. Which tool on the server sends it?

    Show the answer

    Correct answerA. Netcat

    AWhy this is right: Netcat can connect to a listening port and stream a file over raw TCP, which a listener saves.

    BWhy not this: Proxychains forces other tools' traffic through proxies. It is not a client that sends files by itself.

    CWhy not this: sshuttle tunnels subnet traffic over SSH. It does not transfer a file to a listener.

    DWhy not this: Netstat only displays connections, listening ports and owning processes. It cannot send data.

    Netcat opens a raw TCP connection and can send a file's contents through it to a listener that writes them to disk, with no file-transfer protocol needed. Netstat only lists connections and ports, so it cannot send data.

    Open this question
  32. Question 82

    Post-exploitation and Lateral Movement

    A tester has copied a 2 GB process memory dump from an in-scope host. Only lines of readable text containing "pass" are wanted, and no intermediate file may be written. Which approach is BEST?

    Show the answer

    Correct answerC. Pipe Strings output into findstr to keep only matching lines

    AWhy not this: Explorer search is not a reliable way to extract readable text from a memory dump.

    BWhy not this: findstr matches patterns in lines; it does not extract printable strings from binary data.

    CWhy this is right: Strings pulls readable text out of the binary, and the pipe lets findstr filter it without writing a file.

    DWhy not this: Saving all output creates the intermediate file the tester must avoid and leaves filtering to manual reading.

    Strings extracts printable text from binary data, and findstr then filters that text for the pattern; piping them avoids a temporary file. findstr alone matches lines in its input but does not extract readable text from binary content.

    Open this question
  33. Question 83

    Post-exploitation and Lateral Movement

    A tester runs CrackMapExec over SMB with one domain user's credentials against a subnet. Most hosts show a success mark, but three also show "Pwn3d!". What should the tester conclude about those three?

    Show the answer

    Correct answerB. The account has local administrator rights there

    AWhy not this: SMB signing status is reported separately and is not what this mark means.

    BWhy this is right: Pwn3d! means the credentials give administrative access, which allows remote command execution.

    CWhy not this: The mark comes from the account's access, not from a patch check or exploit test.

    DWhy not this: Every host with a success mark accepted the same credentials, so reuse does not set these three apart.

    CrackMapExec adds "Pwn3d!" when the supplied account has administrative access on the host, so command execution and credential dumping are possible there. It is not a vulnerability check, so it does not show a missing patch such as MS17-010.

    Open this question
  34. Question 84

    Post-exploitation and Lateral Movement

    A tester has a Covenant Listener running and now needs a file to execute on a foothold host that will start a Grunt. Which Covenant feature produces it?

    Show the answer

    Correct answerD. Launcher

    AWhy not this: A Task is a command sent to a Grunt that is already running, not the payload that starts it.

    BWhy not this: A Profile defines how Listener traffic looks on the network; it is not the payload.

    CWhy not this: A Listener waits for callbacks from Grunts; it does not produce a file to run on the host.

    DWhy this is right: A Launcher builds the payload file that, once executed on the host, starts a Grunt.

    A Launcher generates the payload, such as a binary, PowerShell or MSBuild file, that starts a Grunt on a target. A Listener is tempting, but it only receives callbacks from Grunts and does not create the file that runs on the host.

    Open this question
  35. Question 85

    Post-exploitation and Lateral Movement

    A tester pipes one command's output into a utility that keeps only lines containing "ESTABLISHED". Which Windows utility does this?

    Show the answer

    Correct answerA. findstr.exe

    AWhy this is right: findstr.exe reads piped input and prints only lines that match a given text pattern.

    BWhy not this: Netstat produces the connection list that would be filtered; it does not filter other commands' output.

    CWhy not this: rundll32 runs functions exported by DLLs; it has no text-matching role.

    DWhy not this: route displays and edits the routing table; it does not search text.

    findstr.exe is a built-in utility that matches text patterns, so it can filter piped output down to the lines of interest. Netstat is tempting because it produces connection output, but it only lists connections and cannot filter text.

    Open this question
  36. Question 86

    Post-exploitation and Lateral Movement

    A tester on a Linux host needs Python scripts that speak SMB and MSRPC to run remote commands on Windows hosts with an NTLM hash. Which toolkit fits?

    Show the answer

    Correct answerC. Impacket

    AWhy not this: PsExec is a Windows Sysinternals executable, not a Python toolkit, and it expects a password rather than a hash.

    BWhy not this: Netcat moves raw data over TCP or UDP and has no SMB or MSRPC support.

    CWhy this is right: Impacket implements SMB and MSRPC in Python and includes scripts that authenticate with a hash from Linux.

    DWhy not this: Mimikatz extracts credentials from Windows memory; it is not a Python remote execution toolkit.

    Impacket is a Python library of network protocol implementations with example scripts for remote execution that accept NTLM hashes and run from Linux. PsExec is tempting, but it is a Windows executable that expects a password and is not a Python toolkit.

    Open this question
  37. Question 87

    Post-exploitation and Lateral Movement

    An internal Linux server exposes only TCP 22, and its SSH daemon refuses password logins. A tester on a compromised host finds an unencrypted private key in a user's .ssh directory. Which action is BEST first?

    Show the answer

    Correct answerC. Attempt public key authentication to TCP 22 with the recovered private key

    AWhy not this: SSH encrypts the session, so a capture does not expose a password in readable form.

    BWhy not this: Only TCP 22 is exposed, and Telnet is a separate cleartext service that does not use SSH keys.

    CWhy this is right: With password logins refused, the stolen private key is the usable credential for SSH.

    DWhy not this: The daemon refuses password logins, so guessing passwords cannot succeed whatever is tried.

    Because the server accepts only key-based logins, the recovered private key is the credential to try; it works if the matching public key is in the account's authorized keys. Password guessing fails against a daemon that refuses passwords, and SSH traffic is encrypted, so sniffing reveals nothing readable.

    Open this question
  38. Question 88

    Post-exploitation and Lateral Movement

    Service discovery shows TCP 3389 open on a Windows server, and the tester holds valid credentials in scope. Which action BEST gives the tester an interactive graphical session?

    Show the answer

    Correct answerB. Connect to TCP 3389 with an RDP client and the credentials

    AWhy not this: Telnet gives a cleartext command line, not a graphical desktop, and is not what listens on 3389.

    BWhy this is right: TCP 3389 is the RDP default port, and an RDP client with valid credentials gives a desktop session.

    CWhy not this: SSH provides a text shell on TCP 22 by default and does not speak RDP on this port.

    DWhy not this: VNC uses the RFB protocol, usually on 5900 and up, so a VNC viewer will not negotiate with an RDP listener.

    TCP 3389 is the default port for Remote Desktop Protocol, so an RDP client with valid credentials opens a graphical session. A VNC viewer speaks the RFB protocol, which listens on ports such as 5900, not on the RDP port.

    Open this question
  39. Question 89

    Post-exploitation and Lateral Movement

    A tester holds a standard domain user's credentials. The target file server exposes only TCP 445, and the tester wants shares where that user can write files for later lateral movement. Which approach is BEST?

    Show the answer

    Correct answerB. Authenticate over TCP 445 as the domain user and list shares with the access level each one grants

    AWhy not this: A null session reveals share names at most; listing a share does not mean this user can write to it.

    BWhy this is right: Authenticated enumeration reports the user's actual read/write rights per share, using only the reachable port.

    CWhy not this: ADMIN$ and C$ are administrative shares that need local admin rights, so a standard user is denied.

    DWhy not this: TCP 135 is the RPC endpoint mapper and does not report fileshare permissions; the question gives only TCP 445 anyway.

    Authenticated SMB enumeration over TCP 445 shows which shares the stolen user can read or write, which is what the goal needs. A null-session listing only yields share names, not what this user's account may do, and ADMIN$ and C$ require administrative rights.

    Open this question
  40. Question 90

    Post-exploitation and Lateral Movement

    A tester reviewing an authorized capture finds a login to an internal appliance's web page on TCP 80 that uses HTTP Basic authentication. What can the tester conclude about the credentials?

    Show the answer

    Correct answerB. They are only Base64-encoded and can be decoded directly

    AWhy not this: No session key is negotiated for HTTP Basic authentication; the header carries the encoded credentials.

    BWhy this is right: Base64 is a reversible encoding, so Basic credentials sent over plain HTTP are effectively cleartext.

    CWhy not this: Basic authentication sends the password itself, not a salted hash, so no cracking is needed.

    DWhy not this: TLS is used on HTTPS, usually TCP 443; this login crossed plain HTTP on TCP 80.

    HTTP Basic authentication sends the username and password Base64-encoded, which is an encoding, not protection, so on plain HTTP they can be decoded immediately. They are not hashed, and TCP 80 carries no TLS encryption.

    Open this question
  41. Question 91

    Post-exploitation and Lateral Movement

    A tester holds an administrator's NTLM hash but cannot crack it, and needs a process that authenticates to other servers as that user. Which Mimikatz capability fits?

    Show the answer

    Correct answerA. Pass-the-hash, which places the hash in a new process's session

    AWhy this is right: Pass-the-hash injects the NTLM hash into a new process's logon session, so it can authenticate onward.

    BWhy not this: DCSync needs replication rights and retrieves secrets; it does not start a process as the user.

    CWhy not this: Dumping from LSASS only reveals credentials; it does not create a process that uses a known hash.

    DWhy not this: A golden ticket requires the krbtgt account's hash, not an ordinary administrator's hash.

    Pass-the-hash starts a process whose logon session carries the supplied NTLM hash, so it authenticates elsewhere without the password. A golden ticket needs the krbtgt hash, which the tester does not have.

    Open this question
  42. Question 92

    Post-exploitation and Lateral Movement

    A tester has a Meterpreter session on an in-scope dual-homed host and wants tools outside Metasploit to reach internal systems through it. Which Metasploit features fit? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersB. Meterpreter portfwd to forward a local port to an internal hostC. The socks_proxy auxiliary module, used together with Proxychains

    AWhy not this: sshuttle needs SSH access to the pivot; a Meterpreter session does not provide that.

    BWhy this is right: portfwd maps a local port on the tester's host to an internal host and port through the session.

    CWhy this is right: socks_proxy turns the session's routes into a SOCKS proxy that external tools reach via Proxychains.

    DWhy not this: multi/handler receives payload callbacks; it does not relay traffic for other tools.

    Meterpreter's portfwd command forwards a local port to a chosen internal host and port. The socks_proxy module exposes the session as a SOCKS proxy that Proxychains can use for broader access. A multi/handler only catches payload callbacks.

    Open this question
  43. Question 93

    Post-exploitation and Lateral Movement

    A tester will copy one file to hosts where PowerShell is disabled so that netstat and route print run in order through cmd.exe. Which file type fits?

    Show the answer

    Correct answerA. A .bat file run by cmd.exe

    AWhy this is right: A .bat file holds cmd.exe commands that run one after another with no PowerShell needed.

    BWhy not this: findstr.exe searches text for patterns; it does not execute the commands in a file.

    CWhy not this: rundll32 calls an exported function in a DLL; it does not run a list of commands in order.

    DWhy not this: A .ps1 script needs PowerShell, and ISE is a PowerShell host, so both are unavailable here.

    A batch file is a plain-text list of cmd.exe commands that run in sequence, so it needs no PowerShell. A .ps1 script depends on PowerShell, which is disabled here.

    Open this question
  44. Question 94

    Post-exploitation and Lateral Movement

    A tester has only a command-line reverse shell on a Windows Server Core host, which has no graphical desktop. The tester must build and debug a multi-line cmdlet script with breakpoints, and nothing may be installed. What is the best approach?

    Show the answer

    Correct answerA. Debug the script in ISE on a Windows test host, then upload it

    AWhy this is right: ISE on a Windows test host gives breakpoints and stepping; the finished .ps1 is then uploaded without installing anything.

    BWhy not this: Batch files run in cmd.exe, which has no breakpoints or stepping, and cannot use cmdlets and .NET objects.

    CWhy not this: explorer.exe is also a graphical shell that needs a desktop, and it is not a script debugger.

    DWhy not this: ISE is a graphical tool; a reverse shell on Server Core has no desktop to display it.

    PowerShell ISE is a graphical editor and debugger, so it needs an interactive desktop, which a Server Core reverse shell lacks. Building and debugging in ISE on a test host, then uploading the .ps1, meets every constraint. Starting ISE or explorer.exe from the shell fails for the same reason.

    Open this question
  45. Question 95

    Post-exploitation and Lateral Movement

    Which temporary component does PsExec create on a remote Windows host to run the requested command?

    Show the answer

    Correct answerC. A Windows service

    AWhy not this: WMI subscriptions react to events and are not what PsExec uses for execution.

    BWhy not this: Run keys start programs at logon and are a persistence method, not how PsExec works.

    CWhy this is right: PsExec installs and starts a temporary service (PSEXESVC) that runs the command, then removes it.

    DWhy not this: Scheduled tasks are used by other remote-execution methods, not by PsExec.

    PsExec copies a small service executable to the remote host over SMB, starts it as a service to run the command, then removes it. A scheduled task is a different remote-execution method.

    Open this question
  46. Question 96

    Post-exploitation and Lateral Movement

    A tester runs Responder and ntlmrelayx on the same host. Poisoned clients authenticate, but Responder only logs the hashes and ntlmrelayx never receives a connection. What should the tester change?

    Show the answer

    Correct answerA. Turn off Responder's SMB and HTTP servers

    AWhy this is right: Turning them off frees those ports so the relay tool receives the authentication and forwards it to targets.

    BWhy not this: WinRM is a remote management service and plays no part in receiving relayed NTLM authentication.

    CWhy not this: SMB signing blocks relayed authentication, so it would make relaying fail rather than fix it.

    DWhy not this: Cracking is an alternative to relaying and does not make the relay tool receive any connections.

    Responder's own SMB and HTTP servers answer the incoming connections on the ports the relay tool needs, so they must be turned off. Pointing the relay at a signing-required target would make relaying fail even once connections arrive.

    Open this question
  47. Question 97

    Post-exploitation and Lateral Movement

    A tester's compromised internal server can only make outbound connections to the tester's server on TCP 443, and inbound connections to it are blocked. The tester wants to reach the internal subnet from the tester's own machine. What should the tester do?

    Show the answer

    Correct answerC. Start a reverse tunnel from the compromised server back to the tester's server

    AWhy not this: WinRM is also an inbound connection to the server on TCP 5985 or 5986, so the same block applies.

    BWhy not this: A static route needs a next hop the tester's machine can reach, and the blocked pivot is not one.

    CWhy this is right: The pivot initiates the outbound connection on TCP 443, so the tester gets a path inward without inbound access.

    DWhy not this: A listener on the pivot needs an inbound connection from the tester, which the firewall blocks.

    A reverse tunnel is started from the pivot outward, so it works when only outbound traffic is allowed. The tester's tools then send traffic through it. A SOCKS proxy on the pivot is useful, but the tester could not connect to it because inbound traffic is blocked.

    Open this question
  48. Question 98

    Post-exploitation and Lateral Movement

    Responder captures NTLM authentication that will not crack, and SMB signing is required on every Windows host in scope. An internal IIS intranet server accepts NTLM over HTTP without Extended Protection for Authentication. Where should the tester relay the authentication?

    Show the answer

    Correct answerD. To the IIS intranet server's HTTP endpoint

    AWhy not this: Domain controllers require SMB signing by default, so a relay here would fail.

    BWhy not this: Pass-the-hash needs the NT hash itself, and a captured NTLMv2 response is not that hash.

    CWhy not this: Signing is required on this server, so relayed SMB authentication would be rejected.

    DWhy this is right: Signing does not apply to HTTP, and without Extended Protection the relayed NTLM is accepted.

    SMB signing protects only SMB sessions, so an HTTP service that accepts NTLM without Extended Protection can still receive relayed authentication. Relaying to an SMB service fails because signing is required.

    Open this question
  49. Question 99

    Post-exploitation and Lateral Movement

    On a compromised server, a tester wants a database service that only local processes can reach, as a candidate for a port forward. Which netstat -an line shows this?

    Show the answer

    Correct answerB. TCP 127.0.0.1:3306 in LISTENING state

    AWhy not this: TIME_WAIT is a closing connection on an ephemeral port, not a service listening for connections.

    BWhy this is right: Bound to the loopback address, so only local processes can connect; a forward would expose it.

    CWhy not this: Bound to all interfaces, so the service is already reachable over the network and needs no forward.

    DWhy not this: An established session shows an active client connection, not which interface a service is bound to.

    A listener bound to 127.0.0.1 accepts connections only from the host itself, so reaching it remotely needs a forward or tunnel. A listener on 0.0.0.0 is bound to all interfaces and is already reachable from the network.

    Open this question
  50. Question 100

    Post-exploitation and Lateral Movement

    A tester on a compromised member server needs to know which accounts hold local administrator rights on that server itself, not in the domain. Which command answers this?

    Show the answer

    Correct answerD. net localgroup Administrators

    AWhy not this: This lists all domain user accounts without showing any group membership or local rights.

    BWhy not this: This lists shared resources on the host, not the accounts that hold administrative rights.

    CWhy not this: This lists a domain-level group, not the members of this server's local Administrators group.

    DWhy this is right: This lists the members of the local Administrators group on the server where it is run.

    Net localgroup Administrators lists the members of the server's local Administrators group, which shows who can administer that host. Net group "Domain Admins" /domain queries a domain group and says nothing about local rights on this server.

    Open this question