How to start nmap and run a simple scan ?
Last Updated :
23 Aug, 2022
Nmap is a free and open-source utility which is used to scan networks and security auditing. Nmap can discover hosts and services on a computer network by sending packets and analyzing the responses. The utility is available on almost every os, it is available for windows, linux and mac.
Download Nmap -
To download Nmap you can simply head towards the official website by clicking here. In case of kali Linux and parrot os, it is already available in there so you will not need to download the utility.
Please note that scanning websites from Nmap is not legal, in some cases if you are trying to too much in deep then you will need written permissions from the owner of the website and the IP holder.
How to launch Nmap?
In Windows hosts you can simply install nmap and run it from the desktop icon using administrator privileges . In linux hosts there are 2 ways of doing it, in case of kali linux and parrot os you can find the icon and click to start and later give it root privileges by entering your password .

The other way is you can simply run
nmap --help

You can use it as a manual for using commands, just scroll down and head towards examples.
How to do simple scans and be legal?
As already mentioned, scanning networks and websites using nmap can be illegal, you may need written permissions to so. So, to do scans that are legal you can use scanme.org, they offer you to perform scans on their website without any issues, but please read their conditions so that you do not harm their website.

Now lets see a simple example to do a scan. To do so simply use nslookup command following the website url or address. If you do not know the IP address of the website and using the command.
nslookup scanme.nmap.org
will give you its address. Now when you get the address you can use the same for scanning the network by
nslookup "address"
the address should be written as IP address which you found on the previous scan and without quotes.
This is how you can do a simple network scan. Now you can also save your scans in a text file for simplicity by using the command
nslookup 45.33.32.156 >> result.txt

Please note that nmap is a very noisy scanning utility and you need to be anonymous and legal in some cases to do so. Please ensure that you use it for legal and educational purposes.
Similar Reads
Nmap Scans for Cyber Security and Penetration Testing Nmap stands for Network Mapper is arguably one of the most popular s open source security tools employed for network mapping applications. As one of the primary utilities of the cybersecurity domain, recon helps the users to scan the hosts and services in the computer network. Nmap uses the concept
6 min read
How to Use Nmap Script Engine (NSE) Scripts in Linux? Nmap or Network Mapper is an open-source tool that is used to discover hosts and services on a computer network. It is one of the most powerful and flexible port scanners ever built. To install Nmap on any OS such as Ubuntu or Kali Linux you can use the command. It is highly flexible due to the avai
5 min read
How to Install and Use Wireshark on Ubuntu Linux? Wireshark is an open-source network protocol analyzer that helps us to see what is happening inside a network when we try to communicate with other networks. Currently, Wireshark is the most famous application to analyze networks. As the most popular network analyzer tool, Wireshark provides an in-d
3 min read
Run a Command Conditionally with netcat and grep In this article, we will explore the combination of Netcat (nc) and Grep commands in a Unix-like environment to execute commands conditionally based on specific search criteria. Netcat enables network communication, serving as a tool for sending and receiving data across networks. Meanwhile, Grep ex
4 min read
How to install and use Naabu in Windows Enumeration and Scanning are integral parts of the Security Research Process. Getting information about the network structure of the target domain is very important. Automation Intelligence tools help us in improving the security research process and save lots of time. So Naabu is an automated tool
5 min read
RustScan - Faster Nmap Scanning with Rust Port Scanning is the process of detection of active ports on the Web Server. In some cases, if there is an unfamiliar port running on the server, this can lead to breaches. We can perform use various automated tools like Nmap, Masscan, etc for port detection. RustScan is the tool that assures the fa
2 min read