Introduction

NMAP is a tool for network discovery and auditing. This is not a comprehensive tutorial, only a quick reference source. Consult the man pages and/or documentation for indepth explanation of commands.

Port Scan

Top Ports

Scan the top N number of ports

      
nmap --top-ports 10 www.google.com
            

UDP Scan

UDP scans require sudo privilege


sudo nmap -sU -p 53 8.8.8.8
            

Ping Sweep

Subnet

Ping sweep a subnet

      
nmap -sP 10.1.1.0/24
            

NPing

NPing allows you to generate packets.

Gratuitous ARP

Target a host with a GARP reply

      
sudo nping -c 1 --arp-sender-mac 08:00:27:ba:6c:7f \
                --arp-sender-ip 10.1.1.1 --arp-type ar \
                --arp-target-mac 08:00:27:74:99:3b 10.1.1.11 \
                --interface eth1 --dest-mac 08:00:27:74:99:3b
            

Links

https://nmap.org/
https://nmap.org/book/man.html






















Last Updated: 2017-09-29