Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/glennzw/shodan-hq-nse
- Owner: glennzw
- Created: 2016-03-03T15:37:59.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-03-14T14:20:07.000Z (over 8 years ago)
- Last Synced: 2024-10-14T12:23:15.923Z (24 days ago)
- Language: Lua
- Size: 3.91 KB
- Stars: 151
- Watchers: 9
- Forks: 34
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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])