cheat-fork-echo/cheatsheets/nmap

37 lines
623 B
Text
Raw Normal View History

# Single target scan:
2013-08-14 07:41:17 +02:00
nmap [target]
# Scan from a list of targets:
2013-08-14 07:41:17 +02:00
nmap -iL [list.txt]
# iPv6:
2013-08-14 07:41:17 +02:00
nmap -6 [target]
# OS detection:
2013-08-14 07:41:17 +02:00
nmap -O [target]
# Save output to text file:
2013-08-14 07:41:17 +02:00
nmap -oN [output.txt] [target]
# Save output to xml file:
2013-08-14 07:41:17 +02:00
nmap -oX [output.xml] [target]
# Scan a specific port:
2013-08-14 07:41:17 +02:00
nmap -source-port [port] [target]
# Do an aggressive scan:
2013-08-14 07:41:17 +02:00
nmap -A [target]
# Traceroute:
2013-08-14 07:41:17 +02:00
nmap -traceroute [target]
# Ping scan only: -sP
# Don't ping: -PN
# TCP SYN ping: -PS
# TCP ACK ping: -PA
# UDP ping: -PU
# ARP ping: -PR
2013-10-09 00:16:31 +02:00
# Example: Ping scan all machines on a class C network
nmap -sP 192.168.0.0/24