Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/glennzw/shodan-hq-nse

Shodan HQ nmap plugin - passively scan targets
https://github.com/glennzw/shodan-hq-nse

Last synced: 11 days ago
JSON representation

Shodan HQ nmap plugin - passively scan targets

Awesome Lists containing this project

README

        

# Introduction

This is an nmap nse script to query the [Shodan](https://www.shodan.io) API and passively get information about hosts.

# Installation

Simple place the shodan-hq.nse script into your nmap scripts folder. e.g:

`cp shodan-hq.nse /usr/local/share/nmap/scripts/`

# Usage

Invoke the script like so:

`nmap --script shodan-hq.nse --script-args 'apikey=`

You could instead specify a single target with the `target` script argument. e.g:

`nmap --script shodan-hq.nse --script-args 'apikey=,target='`

### Saving to file
The results can be written to file with the `outfile` script argument. e.g:

`nmap --script shodan-hq.nse -sn -Pn -n -sn -Pn -n --script-args 'outfile=potato.csv'`

# Example output

Here we do a passive scan of a whole /24 range, giving -sV type output in under 20 seconds:

[![asciicast](https://asciinema.org/a/f0unqk9uxbe6yeu22zpqu5xgz.png)](https://asciinema.org/a/f0unqk9uxbe6yeu22zpqu5xgz)

# Help

```
nmap --script-help shodan-hq.nse
```

## Contact
Say _Hi_ via Twitter: [@glennzw]("https://twitter.com/glennzw") or email: [[email protected]]([email protected])