OSCP Reference

9.1.1 Path and Host Discovery

← Reference index · Next: TCP scanning | Strategy map | Study methods: Discover attack surfaces

Purpose: Confirm the source path and discover explicitly assigned hosts before spending time on port coverage.

9.1.1.1 Check the path

From the target's working folder:

mkdir -p scans
ip -br addr
ip route get TARGET

Read: selected interface/source address. A route lookup does not prove reachability.

9.1.1.1.1 Variants — discover one host, a host list or a subnet

9.1.1.1.2 Identify reachable hosts within the assigned scope Host discovery

One host:

nmap -sn -n -oA scans/host TARGET

Assigned list: put IPs in targets.txt, one per line.

nmap -sn -n -iL targets.txt -oA scans/hosts

Explicitly assigned subnet:

nmap -sn -n -oA scans/subnet SUBNET

No response does not establish that a host is offline. A list of assigned hosts does not imply the surrounding subnet is in scope.


Top of document · Reference home