You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# install dependencies ( open ssl)
svn co https://svn.nmap.org/nmap/
cd nmap
./configure --help
./configure
make
make install
SIMPLE SCANS
nmap -h
man nmap
# version
nmap -V
# verbose output
nmap -v
nmap -vv <TARGET.IP># CIDR notation
nmap 192.168.8.0/24
nmap 192.168.8.5-192.168.8.10
# extract ip in textfile and scan them# use space tab newline, for delimiter
nmap -iL ip.txt
# exclude / ommit hosts
nmap IP --exclude IP
nmap -F IP/24 --excludefile ip.txt
# select interface for scanning
nmap -e <INTERFACE><TARGET.IP>
nmap -e lo 192.168.0.1
# version 6 IP
nmap -6 <IPv6.TARGET># random hosts
nmap -iR 3
nmap --packet-trace IP
ports states
open
closed
filtered
unfiltered
open|filtered
closed|filtered
# reason for port state
nmap --reason 192.168.88.5
# show only open ports
nmap --open 192.168.8.1
MORE BASICS
# -F 100 ports
nmap -F IP
# specify ports
nmap -p 80,54,23 192.168.8.4
# specify nmap service name
nmap -p msrpc,http,apex-mesh 192.168.7.1
# wildcard port scan
nmap -p "*" 192.168.2.2
nmap -sU -sT -p U:53,T:25 192.168.8.1
# top ports to scan - quantity
nmap --top-port 200 192.168.7.1
# sequential port scan
nmap -r 192.168.4.1
nmap -v -r 192.168.3.1
NETWORK DISCOVERY
nmap -PN 192.167.4.4
# Ping only with mac of locals
nmap -sP <IP># syn ping (when ICMP blocked)
nmap -PS <IP># tcp ack
nmap -PA <IP># udp ping
nmap -PU <IP># sctp - stream control (voip)
nmap -PY <IP># ICMP echo
nmap -PE <IP># ICMP timestamp
nmap -PP <IP># icmp addres mask ping
nmap -PM <IP># ip protocol ping
nmap -PO 10.0.2.2
# ARP ping - faster
nmap -PR <IP># traceroute
nmap --traceroute <IP># reverse dns
nmap -R <IP># swift
nmap -N <IP># troubleshoot dns - slow
nmap --system-dns <IP># manually specify dns server
nmap --dns-server 8.8.8.8,1.1.1.1 <TARGET.IP>