The Wayback Machine - https://web.archive.org/web/20240118165633/https://www.geeksforgeeks.org/smap-a-drop-in-replacement-for-nmap-powered-by-shodan-io/
Open In App
Related Articles

Smap – A Drop-In Replacement For Nmap Powered By Shodan.Io

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report

So we all know about the tool Nmap (Network Mapper) and just like the NMAP tool, Smap is also a network scanner that is used to discover any host and services running on a target system by sending packets and analyzing the responses. Smap is a passive Nmap-like scanner built with shodan.io, it is a full replica of Nmap that is using shodan.io’s free API for port scanning. All the command line arguments are the same as NMAP and all the output it provides is like NMAP which makes it a proper drop-in replacement for Nmap.

Advantages/Features/Uses

  • It can be used to Scanning  200 hosts per second.
  • You don’t require any account/api key.
  • You would be able to detect Vulnerability.
  • All the nmap’s output formats are supported.
  • Service and version fingerprinting are available able.
  • It won’t make any contact with the targets.
  • Smap fetches existing port data from shodan.io making it super fast.

Installation steps with Screenshots and Commands

Now, let’s discuss how we can install the tool.

Step 1: Make sure you have GO language installed on your system or else go and install it from here

 

Go Installation

 

Step 2: Navigate and download the tool on your system using the following command.

sudo git clone https://github.com/s0md3v/Smap.git
Tool Installation

 

Step 3: Navigate inside the directory of the Smap tool and use the following command.

sudo go build
Building Tool

 

Step 4: Now move the tool into the /usr/local/bin/  by using the following command.

sudo mv smap /usr/local/bin/  
Moving tool to bin directory

 

Step 5: Confirm that the tool is installed by typing the following command.

Smap
Verifying Installation

 

Usage/Examples of Smap Tool

Now you can use Smap by taking the same arguments as Nmap (just the options -p, -h, -o*, -iL are ignored). 

Target IP: 202.168.56.135

smap -sV 202.168.56.135

We have got the results of our scan which consists of open ports, services, and version details.

Scanning Target IP

 

Learn to code easily with our course Coding for Everyone. This course is accessible and designed for everyone, even if you're new to coding. Start today and join millions on a journey to improve your skills!

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Commit to GfG's Three-90 Challenge! Purchase a course, complete 90% in 90 days, and save 90% cost click here to explore.
Last Updated : 01 May, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads