Nmap Cheat Sheet

Nmap is a free and open-source network scanner created by Gordon Lyon. Nmap is used to discover hosts and services on a computer network by sending packets and analyzing the responses. Nmap provides a number of features for probing computer networks, including host discovery and service (port scanning) and operating system detection.

 

Here are some useful command for nmap.

nmap -sP 192.168.0.0/24Ping scans the whole subnet, listing machines that respond to ping.  This will also give you their MAC address.
nmap -p 1-65535 -sV -sS -T4 targetFull TCP port scan using with service version detection – usually my first scan, I find T4 more accurate than T5 and still “pretty quick”.
nmap -v -sS -A -T4 targetPrints verbose output, runs stealth syn scan, T4 timing, OS and version detection + traceroute and scripts against target services.
nmap -v -sS -A -T5 targetPrints verbose output, runs stealth syn scan, T5 timing, OS and version detection + traceroute and scripts against target services.
nmap -v -sV -O -sS -T5 targetPrints verbose output, runs stealth syn scan, T5 timing, OS and version detection.
nmap -v -p 1-65535 -sV -O -sS -T4 targetPrints verbose output, runs stealth syn scan, T4 timing, OS and version detection + full port range scan.
nmap -v -p 1-65535 -sV -O -sS -T5 targetPrints verbose output, runs stealth syn scan, T5 timing, OS and version detection + full port range scan.

240    Linux    
Total 0 Votes:
0

Tell us how can we improve this post?

+ = Verify Human or Spambot ?

Question ?

You will get a notification email when Knowledgebase answerd/updated!

+ = Verify Human or Spambot ?