Curated

Post-exploitation and Lateral Movement 2 (5.2)

0 votes

Questions108

  1. Question 101

    Post-exploitation and Lateral Movement

    In a non-interactive shell on a compromised server, ftp.exe hangs at its login and command prompts. The tester must pull a tool from the lab FTP server unattended. What should the tester do?

    Show the answer

    Correct answerB. Pass a text file of FTP commands with the -s switch

    AWhy not this: It hides server response text, which does not provide the missing login or commands.

    BWhy this is right: It reads commands from a script file, so login and download run without interactive input.

    CWhy not this: It prints debugging output, which adds information but does not supply the commands.

    DWhy not this: It only turns off per-file prompting for multiple transfers; login and commands still need input.

    The -s switch makes ftp.exe read its login and transfer commands from a text file, so it runs without interactive input. The -i switch only stops per-file prompts during multiple transfers and does not supply the login or commands.

    Open this question
  2. Question 102

    Post-exploitation and Lateral Movement

    Which cmd.exe switch runs a given command string and then terminates the command interpreter?

    Show the answer

    Correct answerA. /c

    AWhy this is right: It runs the command string and then exits, giving one-shot execution.

    BWhy not this: It makes command output Unicode; it has no effect on termination.

    CWhy not this: It runs the command but keeps the interpreter open afterward, so it does not terminate.

    DWhy not this: It turns command echo off; it does not control whether cmd.exe exits.

    The /c switch carries out the specified command and then ends cmd.exe, which suits one-shot execution from other tools. The /k switch also runs the command but leaves the interpreter open.

    Open this question
  3. Question 103

    Post-exploitation and Lateral Movement

    A tester on an interactive session launches a payload by passing its path to explorer.exe on the command line. What is the main benefit?

    Show the answer

    Correct answerB. The new process has explorer.exe as parent, like user activity

    AWhy not this: Explorer.exe runs as the logged-on user and passes on that user's rights, not SYSTEM.

    BWhy this is right: The process tree shows the user shell as parent, which blends with normal desktop activity.

    CWhy not this: Launching a file through explorer.exe does not tunnel or change the payload's network traffic.

    DWhy not this: The process stays visible in process listings; only its parent relationship changes.

    A program started through explorer.exe appears with explorer.exe as its parent, which resembles ordinary user activity and can avoid rules that flag odd parent-child chains. Explorer runs with the user's token, so it grants no SYSTEM rights.

    Open this question
  4. Question 104

    Post-exploitation and Lateral Movement

    A tester has root on an SSH jump server where an administrator is logged in with agent forwarding enabled. The tester wants to reach other servers without cracking any passphrase. Which action is BEST?

    Show the answer

    Correct answerB. Authenticate onward through the forwarded agent's socket

    AWhy not this: SSH sessions are encrypted with per-session keys, so a replayed capture cannot authenticate.

    BWhy this is right: Root can use the forwarded agent socket to authenticate with the loaded keys without extracting them.

    CWhy not this: known_hosts lists host public keys the user has connected to; it stores no credentials.

    DWhy not this: Brute-forcing is noisy and slow, and the forwarded agent already offers a direct route.

    With agent forwarding, the administrator's agent socket on the jump server lets root request signatures for the loaded keys and log in onward without seeing the private key. The known_hosts file holds only host keys, not credentials.

    Open this question
  5. Question 105

    Post-exploitation and Lateral Movement

    A capture on an internal segment shows an HTTP request carrying the header Authorization: Basic dXNlcjpQQHNz. What does this header expose?

    Show the answer

    Correct answerC. Base64 text that decodes to the username and password

    AWhy not this: The request is plain HTTP, so there is no TLS layer protecting the header in the capture.

    BWhy not this: The header carries credentials, not a session ID, and Basic credentials can be reused until changed.

    CWhy this is right: Base64 is an encoding, not encryption, so the credentials are recoverable directly from the capture.

    DWhy not this: Basic authentication sends no NTLM challenge-response; it carries the encoded credentials themselves.

    HTTP Basic authentication only Base64-encodes the username and password, so anyone who captures the request over plain HTTP can decode them. It involves no hashing or encryption, so it is not an NTLM exchange or a TLS-protected value.

    Open this question
  6. Question 106

    Post-exploitation and Lateral Movement

    A scan of a Linux workstation shows TCP 5902 open and TCP 3389 closed. What is the MOST likely service?

    Show the answer

    Correct answerB. A VNC server for display :2

    AWhy not this: X11 uses 6000 plus the display number, so display :2 would be on TCP 6002.

    BWhy this is right: VNC uses 5900 plus the display number, so 5902 maps to display :2.

    CWhy not this: RDP can be moved, but 5902 matches the VNC display pattern and nothing suggests RDP.

    DWhy not this: Nothing ties 5902 to SSH; it is a VNC display port, not an alternate SSH port.

    VNC listens on TCP 5900 plus the display number, so 5902 is display :2. An X11 server for display :2 would use TCP 6002, and an RDP listener that was moved would not follow this numbering pattern.

    Open this question
  7. Question 107

    Post-exploitation and Lateral Movement

    A tester with a standard domain account reaches only TCP 445 on a domain controller. Which share, readable by any authenticated user, should be searched for Group Policy Preferences files holding an encrypted administrator password?

    Show the answer

    Correct answerA. SYSVOL

    AWhy this is right: SYSVOL is readable by authenticated users and holds the policy files, including Group Policy Preferences XML.

    BWhy not this: ADMIN$ maps to the Windows directory and needs administrator rights, which a standard account lacks.

    CWhy not this: IPC$ carries named pipe communication for RPC and holds no files to search.

    DWhy not this: C$ is the hidden administrative share of the system drive and also requires administrator rights.

    SYSVOL stores domain policy files, including Group Policy Preferences XML, and any authenticated domain user can read it. ADMIN$ and C$ are administrative shares that need local administrator rights, and IPC$ exposes named pipes rather than files.

    Open this question
  8. Question 108

    Post-exploitation and Lateral Movement

    On a compromised Windows server, the connection table lists TCP 135 under PID 892 and TCP 3389 under PID 1348, and the process list shows svchost.exe for both. What should the tester conclude?

    Show the answer

    Correct answerB. Two separate svchost.exe instances own the listeners, and each PID identifies one of them

    AWhy not this: the OS assigns PIDs dynamically, so they do not come from port numbers or stay fixed across hosts.

    BWhy this is right: the PID separates process instances, so the same image name under two PIDs means two distinct processes.

    CWhy not this: the image name is not unique, and different PIDs mean different instances, so one process does not own both.

    DWhy not this: a PID is meaningful only on the host that assigned it and never identifies a remote client's process.

    A PID is a number the local OS assigns to one running process instance, so different PIDs mean different svchost.exe instances even with the same image name. The image name is not unique, and a PID is neither shared with remote hosts nor derived from a port.

    Open this question