pentesting, updated

Host discovery

Find which hosts on a target range are alive before spending time scanning dead IPs.

Goal

Build an accurate list of live hosts to scan, on both local and routed segments.

How to test

nmap -sn 10.10.10.0/24                  # ICMP/ARP ping sweep, no port scan
nmap -sn -PS22,80,443 10.10.10.0/24      # TCP SYN ping, for hosts blocking ICMP
arp-scan -l                              # local-segment ARP sweep, bypasses host firewalls
fping -a -g 10.10.10.0/24 2>/dev/null     # fast parallel ICMP sweep

On the local segment arp-scan finds hosts that drop ICMP and TCP probes entirely, since ARP replies are required for the OS to communicate at all.

What to look for

Any response (ICMP echo-reply, ARP reply, or a TCP SYN/ACK or RST) marks a host as live — note which probe type worked, since it tells you what the host’s firewall allows through.

Notes

A silent host is not necessarily down — a host-based or perimeter firewall dropping ICMP is common; cross-check with a TCP ping sweep before writing a range off.

References

§ home
~/knubertus/home/
1,1 Top