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.