• Stars
    star
    2,860
  • Rank 15,872 (Top 0.4 %)
  • Language
    Go
  • License
    GNU Affero Genera...
  • Created over 2 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

a drop-in replacement for Nmap powered by shodan.io


Smap logo

passive Nmap like scanner built with shodan.io

Smap demo


Smap is a port scanner built with shodan.io's free API. It takes same command line arguments as Nmap and produces the same output which makes it a drop-in replacament for Nmap.

Features

  • 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

Installation

Binaries

You can download a pre-built binary from here and use it right away.

Manual

go install -v github.com/s0md3v/smap/cmd/smap@latest

Confused or something not working? For more detailed instructions, click here

AUR pacakge

Smap is available on AUR as smap-git (builds from source) and smap-bin (pre-built binary).

Homebrew/Mac

Smap is also avaible on Homebrew.

brew update
brew install smap

Usage

Smap takes the same arguments as Nmap but options other than -p, -h, -o*, -iL are ignored. If you are unfamiliar with Nmap, here's how to use Smap.

Specifying targets

smap 127.0.0.1 127.0.0.2

You can also use a list of targets, seperated by newlines.

smap -iL targets.txt

Supported formats

1.1.1.1         // IPv4 address
example.com     // hostname
178.23.56.0/8   // CIDR

Output

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.

Supported formats

oX    // nmap's xml format
oG    // nmap's greppable format
oN    // nmap's default format
oA    // output in all 3 formats above at once
oP    // IP:PORT pairs seperated by newlines
oS    // custom smap format
oJ    // json

Note: Since Nmap doesn't scan/display vulnerabilities and tags, that data is not available in nmap's formats. Use -oS to view that info.

Specifying ports

Smap scans these 1237 ports by default. If you want to display results for certain ports, use the -p option.

smap -p21-30,80,443 -iL targets.txt

Considerations

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:

You want

  • 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

More Repositories

1

roop

one-click face swap
Python
27,272
star
2

XSStrike

Most advanced XSS scanner.
Python
13,111
star
3

Photon

Incredibly fast crawler designed for OSINT.
Python
10,869
star
4

Arjun

HTTP parameter discovery suite.
Python
5,093
star
5

AwesomeXSS

Awesome XSS stuff
JavaScript
4,730
star
6

sd-webui-roop

roop extension for StableDiffusion web-ui
Python
3,349
star
7

Striker

Striker is an offensive information and vulnerability scanner.
Python
2,213
star
8

be-a-hacker

roadmap for a self-taught hacker
1,839
star
9

ReconDog

Reconnaissance Swiss Army Knife
Python
1,776
star
10

Hash-Buster

Crack hashes in seconds.
Python
1,716
star
11

huepy

Print awesomely in terminals.
Python
1,462
star
12

Corsy

CORS Misconfiguration Scanner
Python
1,335
star
13

uro

declutters url lists for crawling/pentesting
Python
1,105
star
14

Silver

Mass scan IPs for vulnerable services
Python
1,024
star
15

Decodify

Detect and decode encoded strings, recursively.
Python
864
star
16

Diggy

Extract endpoints from apk files.
Shell
862
star
17

Blazy

Blazy is a modern login bruteforcer which also tests for CSRF, Clickjacking, Cloudflare and WAF .
Python
833
star
18

Breacher

An advanced multithreaded admin panel finder written in python.
Python
717
star
19

ote

Generate Email, Register for anything, Get the OTP/Link
Python
569
star
20

goop

Google Search Scraper
Python
564
star
21

Parth

Heuristic Vulnerable Parameter Scanner
Python
559
star
22

Zen

Find emails of Github users
Python
553
star
23

Bolt

CSRF Scanner
Python
532
star
24

Orbit

Blockchain Transactions Investigation Tool
Python
524
star
25

JShell

JShell - Get a JavaScript shell with XSS.
Python
506
star
26

MyPapers

Repository for hosting my research papers
Python
498
star
27

Cloak

Cloak can backdoor any python script with some tricks.
Python
479
star
28

nano

Nano is a family of PHP web shells which are code golfed for stealth.
PHP
431
star
29

sqlmate

A friend of SQLmap which will do what you always expected from SQLmap.
Python
424
star
30

SubGPT

Find subdomains with GPT, for free
Python
332
star
31

dump

Stuff that doesn't deserves its own repository.
Python
300
star
32

hardcodes

find hardcoded strings from source code
Python
273
star
33

Quark

Quark is a data visualization framework.
JavaScript
213
star
34

proxify

A python module for dumping usable proxies.
Python
152
star
35

Predator

Anti-Automation System
CSS
120
star
36

Shiva

Improved DOS exploit for wordpress websites (CVE-2018-6389)
Python
112
star
37

velocity

DNS caching for humans
Python
89
star
38

ifnude

nudity detector that works
Python
83
star
39

zetanize

HTML form parser for humans.
Python
73
star
40

rewise

Google auto-complete wrapper
Python
73
star
41

Locky

Locky generates "really" strong yet easy to remember passwords.
Python
63
star
42

Entropy

Entropy is a (prototype) WAF driven by maths.
Python
54
star
43

meta

Explains and tests HTTP response headers
Python
39
star
44

fonetic-go

golang implementation of fonetic (https://github.com/s0md3v/fonetic)
Go
37
star
45

fonetic

assess pronounciblity of text
Python
33
star
46

shades

Shell
26
star
47

wl

convert case style of words
Go
21
star
48

s0md3v.github.io

my personal blog
SCSS
15
star
49

s0md3v

11
star
50

dishtance

JavaScript
6
star
51

.github

my default .github files
5
star
52

BG3-Mutant

Mod for Baldur's Gate 3 that adds a Mutant class to the game.
2
star