Nmap Cheat Sheet


Notice: Trying to get property 'post_excerpt' of non-object in /home/u540484907/domains/icssindia.in/public_html/blogs/wp-content/themes/hueman/tmpl/single-tmpl.php on line 25

Nmap –
Nmap is a network mapper tool for security purposes. It was created by Gordon Lyon. Nmap was 1st released on Sep 1, 1997, it can do network analysis as well as port scanning, by using Nmap. you can scan multiple hosts and host ranges.

Nmap uses raw IP packets to scan a target. On the bases of its response receives from the targets it shows results.

Zenmap is a GUI of Nmap. Nmap is used in the terminal. It supports most operating systems. Nmap has more than 439+ scripts for scanning and vulnerability detection purposes. These scripts are written in a lua programming language.
The output of Nmap is a list of scan targets with information depending upon the option use.

Usage of Nmap-
nmap –help
This command lists all the options available for scanning and vulnerability detection purpose.nmap --help command

Nmap Target Selection

  • Scan a single IP
nmap 192.168.1.1
  • Scan a host
nmap www.testhostname.com
  • Scan a range of IPs
nmap 192.168.1.1-20
  • Scan a subnet
nmap 192.168.1.0/24
  • Scan targets from a text file
nmap -iL list-of-ips.txt

These are all default scans, which will scan 1000 TCP ports. Host discovery will take place.

  • Nmap Port Selection
  • Scan a single Port
nmap -p 22 192.168.1.1
  • Scan a range of ports
nmap -p 1-100 192.168.1.1
  • Scan 100 most common ports (Fast)
nmap -F 192.168.1.1
  • Scan all 65535 ports
nmap -p- 192.168.1.1

Nmap Port Scan types

  • Scan using TCP connect
nmap -sT 192.168.1.1
  • Scan using TCP SYN scan (default)
nmap -sS 192.168.1.1
  • Scan UDP ports
nmap -sU -p 123,161,162 192.168.1.1
  • Scan selected ports – ignore discovery
nmap -Pn -F 192.168.1.1

Service and OS Detection

  • Detect OS and Services
nmap -A 192.168.1.1
  • Standard service detection
nmap -sV 192.168.1.1
  • More aggressive Service Detection
nmap -sV –version-intensity 5 192.168.1.1
  • Lighter banner grabbing detection
nmap -sV –version-intensity 0 192.168.1.1
  • For More Cyber Security Related Queries Visit School Of Hacker’s Download Our Brochure
  • Advanced Nmap Training & Certification: Cyber Courses
  • For More Cyber-Related Blog: Cyber Security
  • Thinking About Career in Cyber Security
  • Learn Website Hacking Ethical Way

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *