barrettotte
1/29/2019 - 11:58 PM

nmap-home

nmap-home

REM Some nmap snippets


REM ----- Get all devices -----
REM   [gateway-ip]/[subnet]
nmap -sP 192.168.1.0/24


REM ----- Get specific device -----
nmap -O 192.168.1.10


REM ----- Output all devices to XML -----
nmap -v -sn 192.168.1.* -oX devices.xml


REM ----- Output all devices - detailed -----
REM  -PR  ARP instead of ICMP ECHO_REQUEST
REM  -sS  TCP SYN
REM  -sU  UDP instead of TCP
REM  -O   OS detection
REM  -T4  accelerates scan at cost of network load
nmap -PR -sS -sU -sV -O -T4 192.168.1.0/24