Skip to content

yvesago/shodan-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Use the API key in $SHODAN_KEY environment variable.

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

IP query sample

Shodan Query

Network query sample

Shodan Net Query

Version 0.2.0: SSL and CPE

Shodan SSL and CPE

Build

$ git clone https://github.com/yvesago/shodan-cli.git
$ cd shodan-cli

$ make

Cross building :

$ make all

Links

Licence

MIT License

Copyright (c) 2018-2021 Yves Agostini

[email protected]