Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yvesago/shodan-cli
Simple golang shodan cli
https://github.com/yvesago/shodan-cli
golang security security-scanner security-tools shodan shodan-cli
Last synced: about 1 month ago
JSON representation
Simple golang shodan cli
- Host: GitHub
- URL: https://github.com/yvesago/shodan-cli
- Owner: yvesago
- License: mit
- Created: 2018-01-09T20:48:20.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-01T09:08:00.000Z (over 3 years ago)
- Last Synced: 2024-06-20T13:32:17.237Z (6 months ago)
- Topics: golang, security, security-scanner, security-tools, shodan, shodan-cli
- Language: Go
- Size: 700 KB
- Stars: 48
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ip-search-engines - Shodan CLI
README
# shodan-cli
Simple golang Shodan command line client with default query.
## Usage
To start working with Shodan you need an API key. You can do this at [https://www.shodan.io](https://www.shodan.io).
Use the API key in `$SHODAN_KEY` environment variable.
```bash
Usage of ./shodan-cli:
-b black & white, no color
-c compact, no detail
-i string
ip [192.168.0.1]
-n string
net [192.168.0.0/24]
-q string
query ['!http']
```On first call `shodan-cli` will ask an optional default query stored in `.shoddanrc`.
### Query sample
![Shodan Query](img/ShodanQuery.png)### IP query sample
![Shodan Query](img/ShodanWinQuery.png)### Network query sample
![Shodan Net Query](img/ShodanNetQuery.png)### Version 0.2.0: SSL and CPE
![Shodan SSL and CPE](img/ShodanCli-v0.2.0.png)## Build
```bash
$ git clone https://github.com/yvesago/shodan-cli.git
$ cd shodan-cli$ make
```
Cross building :
```bash$ make all
```
## Links
* [Shodan.io](http://shodan.io)
* [Golang Shoddan API](http://github.com/ns3777k/go-shodan)## Licence
MIT License
Copyright (c) 2018-2021 Yves Agostini