Essential Nmap Commands with Examples for Network Scanning

Introduction to Nmap Commands

When it comes to network scanning and security auditing, Nmap stands out as one of the most versatile tools available. Whether you are an experienced sysadmin or a beginner trying to understand your network, knowing how to use Nmap commands efficiently is crucial. In this guide, we will explore various Nmap examples and discuss how each command can be used to uncover crucial information about your network. It is highly versatile and used for network exploration and security auditing. It is free and open source and has lot of features. By using Nmap commands, you can achieve a deeper understanding of your network’s security.

Below are commands examples with some details:

$ sudo nmap -sS 192.168.64.145	(Will scan one IP)

$ sudo nmap -sS 192.168.64.0/24	(whole subnet)

$ sudo nmap -sS 192.168.64.100-150	(A range of IP address)	

$ sudo nmap -sS 192.168.64.100 192.169.64.145	(Multiple IP’s)

$ sudo nmap -sT 192.168.64.145	(Will scan mentioned IP, T is used for TCP)

$ sudo nmap -sT certifiedhacker.com	(This will scan the website)

You can also do scan of Live URLs but we are not authorized as of now. 

$ sudo nmap -sU 192.168.64.145	(This will do a UDP scan)

$ sudo nmap -sS 192.168.64.145 –A	(This will scan whole system when you use -A)

$ sudo nmap -sS 192.168.64.145 –O	(This will scan operating system)

$ sudo nmap -sS 192.168.64.145 –sV	(Running services versions)

$ sudo nmap -sS 192.168.64.145 -p 22	(Check open/closed port)

$ sudo nmap -sS 192.168.64.145 -p 22,23,80,443	(Scan multiple Ports)

$ sudo nmap -sS 192.168.64.145 -p 22-110	(Scan a range of port)

$ sudo nmap -sS 192.168.64.145 –p-		(Scan all Ports)

$ sudo nmap -sS 192.168.64.145 –F	(Scan popular ports)

$ sudo nmap -sS 192.168.64.145 –O –A –sV 	(Scan with multiple options)

You can also create a scan list file and scan it via that file. (Add IP or name which you want to scan)

$ sudo nmap -sT -iL scanlist.txt
Keep exploring. Continue reading on our blog.

foundational-concepts-in-networking

Leave a Reply

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