Smap is a replica of Nmap which uses shodan.io's free API for port scanning. It takes same command line arguments as Nmap and produces the same output which makes it a drop-in replacament for Nmap.
- Scans 200 hosts per second
- Doesn't require any account/api key
- Vulnerability detection
- Supports all nmap's output formats
- Service and version fingerprinting
- Makes no contact to the targets
go install -v github.com/s0md3v/smap/cmd/[email protected]
Confused or something not working? For more detailed instructions, click here
Smap is also avaible on Homebrew.
brew updatebrew install smap
Smap takes the same arguments as Nmap but options other than
-iL are ignored. If you are unfamiliar with Nmap, here's how to use Smap.
smap 127.0.0.1 127.0.0.2
You can also use a list of targets, seperated by newlines.
smap -iL targets.txt
184.108.40.206 // IPv4 addressexample.com // hostname220.127.116.11/8 // CIDR
Smap supports 6 output formats which can be used with the
-o* as follows
smap example.com -oX output.xml
If you want to print the output to terminal, use hyphen (
-) as filename.
oX // nmap's xml formatoG // nmap's greppable formatoN // nmap's default formatoA // output in all 3 formats above at onceoP // IP:PORT pairs seperated by newlinesoS // custom smap formatoJ // json
Note: Since Nmap doesn't scan/display vulnerabilities and tags, that data is not available in nmap's formats. Use
-oSto view that info.
smap -p21-30,80,443 -iL targets.txt
Since Smap simply fetches existent port data from shodan.io, it is super fast but there's more to it. You should use Smap if:
- vulnerability detection
- a super fast port scanner
- results for most common ports (top 1237)
- no connections to be made to the targets
You are okay with
- not being able to scan IPv6 addresses
- results being up to 7 days old
- a few false negatives