Validate the source path and discover hosts
Contents ↑Use when: No response, a new subnet, or uncertainty about the interface and route
Needs: Correct VPN/interface and explicit scope; discovery probes must be compatible with the path
From the target's working folder
Purpose: Confirm the source path and discover explicitly assigned hosts before spending time on port coverage.
# From the target's working folder
mkdir -p scans
ip -br addr
ip route get TARGET
# One host
nmap -sn -n -oA scans/host TARGET
# Host discovery
nmap -sn -n -iL targets.txt -oA scans/hosts
# Explicitly assigned subnet
nmap -sn -n -oA scans/subnet SUBNET
Read: selected interface/source address. A route lookup does not prove reachability.
Read / verify → Record source address/interface, route and the exact responding endpoint; a missing ping response does not prove a host is down.
If it fails → No route or wrong VPN interface is an environment failure. If only discovery is blocked, use the known-host TCP method; a SOCKS path requires a compatible connect-based client.
- An assigned host needs an initial service queue or full TCP coverage → Discover TCP ports with SYN or connect scans
- TCP enumeration is incomplete for the objective or DNS/SNMP/RPC clues suggest UDP → Probe UDP and resolve ambiguous silence
- One reachable pivot can connect to one internal TCP destination → Relay a single TCP service through a fixed forward
- The useful vantage point is a Windows host without Nmap → Enumerate reachable endpoints from a Windows source