Skip to content

Smap

Passive, Nmap-compatible port scanner for quick recon without touching targets

Copyleft (OSI) · AGPL-3.0
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

37

Health

Slowing

Overview

Stars

3,318

Last commit

3 months ago

Aug 2026

Repository age

4 years

since Mar 2022

Latest version

v1.0.0-beta

Aug 2026

Contributors

–

Releases

2

last 12 months

Language

Go

Smap is a command-line port scanner written in Go. It accepts Nmap's arguments and writes Nmap-style output, but in its default passive mode it does not send packets to your targets. It looks up what Shodan already knows about each address and reports open ports, service and version details, and known vulnerabilities.

Targets can be IPv4 addresses, hostnames, CIDR blocks, ranges, or a file of targets. Output goes to seven formats: Nmap XML, greppable, and normal text, all three at once, plain IP:PORT pairs, JSON, and a custom Smap format. Vulnerability and tag data only appears in the custom format and JSON-style output, because Nmap's formats have no place for it.

There is also an acceleration mode. With the nmap flag, Smap gathers the ports Shodan reports, then runs your local Nmap once against only those ports. That can shorten a real scan. It runs on Linux and macOS, installs through Homebrew, AUR, go install or prebuilt binaries, and uses the AGPL-3.0 license. It suits you if you want a lighter stand-in for Nmap during reconnaissance.

Who it's for

Pentesters doing early reconnaissance

You can map exposed ports and known vulnerabilities for many hosts without sending traffic to them.

Skip if: You need live, current results from the target itself, since passive data can be stale.

Security teams scanning large address lists

Results come from lookups instead of packet probing, and Nmap-format output feeds existing tooling.

Skip if: You need to scan private or internal hosts that Shodan has never indexed.

Nmap users who want faster scans

The Nmap mode narrows the port range to what Shodan reports before running your local Nmap.

Skip if: You need exhaustive port coverage on every host.

The problem it solves

Running Nmap against many hosts is slow and sends traffic that targets can log or block. Smap gives you port and service data from existing Shodan records, using the Nmap command line you already know.

Strengths

  • Passive mode makes no contact with the targets
  • Takes Nmap-style arguments and writes Nmap XML, greppable and normal output
  • Needs no account or API key
  • Also outputs JSON, IP:PORT pairs and a custom format with vulnerability data
  • Optional mode hands Shodan's ports to your local Nmap

Trade-offs

  • Most Nmap options are ignored in passive mode
  • Results depend on what Shodan has indexed, which may be outdated
  • Vulnerability data is missing from Nmap's own output formats
  • Still at beta version, with no recent contributor activity

Self-host Smap

Self-hostable
No (desktop or local app)

Quick start

brew update
brew install smap

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Does Smap need a Shodan account or API key?

No. It uses Shodan's free API and needs no account or key.

Does it send packets to the targets?

Not in passive mode. With the nmap option, your local Nmap then scans the targets.

Which platforms does it run on?

It is a command-line tool for Linux and macOS. It is also available through Homebrew and AUR.

How is it licensed?

It uses the AGPL-3.0 license, which is a copyleft license.

Similar tools in Vulnerability and application security tools

dradis-ce

Vulnerability and application security tools

848 228 yesterday Slowing GPL-2.0

Resoto

Vulnerability and application security tools

2.1k 140 2 years ago Dormant Apache-2.0

OpenVAS

Vulnerability and application security tools

Self-hosted network vulnerability scan engine fed by a continuously updated test feed

5k 819 today Thriving GPL-2.0

Replaces Nessus

GitProxy

Vulnerability and application security tools

270 189 yesterday Thriving Apache-2.0

Opengrep

Vulnerability and application security tools

3.4k 300 today Thriving LGPL-2.1

Detect It Easy

Vulnerability and application security tools

3.4k 419 today Active MIT