shodan-cli

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2019 License: MIT Imports: 11 Imported by: 0

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.

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


$ go get gopkg.in/ns3777k/go-shodan.v3/shodan
$ go get github.com/logrusorgru/aurora

$ go build

As usual, you can build executables for multiple platforms :


$ # linux 32 bits
$ GOARCH=386 go build -ldflags "-s" -o shodan-cli32

$ # windows 32 bits
$ GOOS=windows GOARCH=386 go build  -ldflags "-s" -o shodan-cli32.exe

$ # OsX
$ GOOS=darwin go build -ldflags "-s" -o shodan-cliOsX

Licence

MIT License

Copyright (c) 2018-2019 Yves Agostini

yves+github@yvesago.net

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL