Exploring Network Security with Nmap Commands: Ethical Hackers(Beginners) Must Know
I’ve already discussed the legion tool. It is a tool for scanning targets via a graphical user interface. View it now
Ping Scanning
The ping scanning gives information about every active IP on your Network. We can perform a ping scan by using the below command:
nmap -sn <target>
Port Scanning
sS TCP SYN scan
sT TCP connect scan
sU UDP scans
sY SCTP INIT scan
sN TCP NULL
Host scanning
Host scanning provides a detailed description of a particular host or IP address
Nmap -sp <target IP range>
OS Scanning
Nmap -O <target IP>
Scan the Most Popular Ports
This sort of scan examines the response after sending TCP and UDP packets to a port. It provides details about a host’s OS after comparing the answer to a database of operating systems.
Nmap — Top-ports 20 <target IP>
Output to a file
If we want the output of results of Nmap scan of any file, you can add an extension to the command.
Add:-oN output.txt
Some Examples
Work in your machine ,which gives more knowledge to you.
nmap
: Basic command to run a simple scan on a target host.nmap -sS
: Perform a stealth SYN scan.nmap -sT
: Perform a TCP connect scan.nmap -sU
: Perform a UDP scan.nmap -sA
: Perform an ACK scan.nmap -sW
: Perform a Window scan.nmap -sM
: Perform a Maimon scan.nmap -sN
: Perform a Null scan.nmap -sX
: Perform an Xmas scan.nmap -sF
: Perform a FIN scan.nmap -sL
: Perform a List scan.nmap -sI
: Perform an idle scan.nmap -p
: Specify specific ports to scan.nmap -o
: Output results to a file.nmap --top-ports
: Scan the top most commonly used ports.nmap --version-all
: Attempt to determine the version number of all services running on the target host.
Examples with IP
nmap -O 192.168.1.1
nmap -A 192.168.1.1
nmap -v 192.168.1.1
nmap --open 192.168.1.1
nmap -iL targets.txt
nmap --resume
nmap --resume scan_results.xml
nmap --exclude 192.168.1.5 192.168.1.0/24
nmap --exclude 192.168.1.5 192.168.1.0/24
nmap -sS -sV 192.168.1.1
Thank you for Reading This content.I hope you got some Knowledge from this post.Grow your Knowledge with medium.