Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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