Sitemap
Mert Turan

Mert Turan

Konya Teknik Üniversitesi Bilgisayar Mühendisi KTÜN Siber Güvenlik Topluluğu Başkanı

Exploring Nmap: A Comprehensive Guide to Network Scanning and Security Assessment

--

In this article, I will what Nmap ( Mapper), one of the network scanning tools.

What is Nmap (Network Mapper)?

Nmap (Network Mapper) is a free and open-source security tool used for network security and mapping purposes. Nmap is employed to scan computers and devices on a network, identify open ports, determine active services, and assess security vulnerabilities within the network.

  • Host Discovery: Nmap can identify hosts that are active on a network, allowing you to determine the scope of your scans.
  • Port Scanning: It can scan for open ports on target systems, providing information about the services running on those ports.
  • Service and Version Detection: Nmap can identify the versions and types of services running on open ports, aiding in vulnerability assessment.
  • Operating System Detection: Nmap can analyze network responses to deduce the operating system (OS) running on a target host.
  • Scripting Engine: Nmap has a built-in scripting engine that allows the execution of custom scripts to automate tasks and perform advanced scans.
  • Output Formatting: Nmap offers various output formats, including interactive, XML, and plain text, providing flexibility in result analysis and reporting.

What is Zenmap?

Zenmap is a graphical interface version of Nmap. It provides a user-friendly interface for Nmap’s command-line-based usage. While incorporating all the features of Nmap, Zenmap allows users to create scanning profiles more easily, visually inspect results, and configure specific scanning types.

Get Mert Turan’s stories in your inbox

Join Medium for free to get updates from this writer.

Zenmap is a preferred tool among network security professionals and system administrators. The graphical interface assists users, even those unfamiliar with the complex commands of Nmap, in effectively conducting network scans. It enables users to analyze computers and devices on a network quickly and securely.

Press enter or click to view image in full size

To scan an IP address → nmap 192.168.1.1

Press enter or click to view image in full size

To scan an IP address range → nmap 192.168.1.1–100

To get DNS information of a target → nmap — dns-servers example.com

To scan a specific port (e.g., 80) → nmap -p 80 example.com

To determine running services on the target → nmap -sV example.com

Press enter or click to view image in full size

To perform a TCP SYN scan → nmap -sS example.com

To perform a UDP scan → nmap -sU example.com

To check if the target is active using ping → nmap -sn example.com

To determine open ports → nmap — open example.com

To determine the operating system of the system → nmap -O example.com

Press enter or click to view image in full size

To perform script scanning → nmap — script default example.com

To perform a fast scan → nmap -T4 example.com

Press enter or click to view image in full size

To get system version information → nmap -sV — version-intensity example.com

To perform firewall testing →nmap — script firewall-bypass example.com

To perform MTU probing → nmap — mtu 32 example.com

For integration with the Metasploit framework → nmap — script msrpc-enum — script-args unsafe=1 example.com

To sort services according to the targe → nmap — service-perf-stats example.com

To save scan results in XML format → nmap -oX scan_results.xml example.com

To graphically map devices on the network → nmap — open -p 80 -s

$ nmap 10.0.2.5 --top-ports 100 → We can scan the top 100 ports using the following command

$ nmap 10.0.2.5 -p 1–100 → Here we can have it scan for ports in the specified range.

ATTENTION

By the way, let me give an important warning, friends. Nmap is an active tool, so do not run Nmap scans on devices or IP addresses without permission. Try practicing on platforms like TryHackMe or Hack The Box in laboratories. Because Nmap is an active tool, it leaves traces, and unauthorized usage may lead to legal issues. Always make sure to get permission from the owner of the target system and use it within legal limits.

Moreover, as you mentioned, using such tools on platforms (e.g., ethical hacking laboratories like TryHackMe or Hack The Box) in a secure environment can be a great way to experiment with these tools, learn, and enhance your skills. However, it’s crucial to consider legal aspects before using such tools in the real world. Unauthorized scanning or testing of others’ systems may be illegal and lead to severe consequences.

--

--

Mert Turan
Mert Turan

Written by Mert Turan

Konya Teknik Üniversitesi Bilgisayar Mühendisi KTÜN Siber Güvenlik Topluluğu Başkanı