Shodan CLI Note: Always run "shodan init <api key>" before trying to execute any other command! A simple interface to search Shodan, download data and parse compressed JSON files. The following commands are currently supported: alert convert count data download honeyscore host info init myip parse radar scan search stats stream
Function | convert |
Convert the given input data file into a different format. The following file formats are supported: |
Function | count |
Returns the number of results for a search |
Function | domain |
View all available information for a domain |
Function | download |
Download search results and save them in a compressed JSON file. |
Function | honeyscore |
Check whether the IP is a honeypot or not. |
Function | host |
View all available information for an IP address |
Function | info |
Shows general information about your account |
Function | init |
Initialize the Shodan command-line |
Function | main |
Undocumented |
Function | myip |
Print your external IP address |
Function | parse |
Extract information out of compressed JSON files. |
Function | radar |
Real-Time Map of some results as Shodan finds them. |
Function | search |
Search the Shodan database |
Function | stats |
Provide summary information about a search query |
Function | stream |
Stream data in real-time. |
Function | version |
Print version of this tool. |
Constant | CONTEXT |
Undocumented |
Constant | CONVERTERS |
Undocumented |
@click.option(
@click.argument(
@click.argument(
def convert(fields, input, format): (source) ¶
Convert the given input data file into a different format. The following file formats are supported: kml, csv, geo.json, images, xlsx Example: shodan convert data.json.gz kml
@click.argument(
def count(query): (source) ¶
Returns the number of results for a search
@click.argument(
@click.option(
@click.option(
@click.option(
@click.option(
def domain_info(domain, details, save, history, type): (source) ¶
View all available information for a domain
@click.option(
@click.argument(
@click.argument(
def download(limit, filename, query): (source) ¶
Download search results and save them in a compressed JSON file.
@click.option(
@click.option(
@click.option(
@click.option(
@click.argument(
def host(format, history, filename, save, ip): (source) ¶
View all available information for an IP address
@click.group(
def main(): (source) ¶
Undocumented
@click.option(
def myip(ipv6): (source) ¶
Print your external IP address
@click.option(
@click.option(
@click.option(
@click.option(
@click.option(
@click.argument(
def parse(color, fields, filters, filename, separator, filenames): (source) ¶
Extract information out of compressed JSON files.
@click.option(
@click.option(
@click.option(
@click.option(
@click.argument(
def search(color, fields, limit, separator, query): (source) ¶
Search the Shodan database
@click.option(
@click.option(
@click.option(
@click.argument(
def stats(limit, facets, filename, query): (source) ¶
Provide summary information about a search query
@click.option(
@click.option(
@click.option(
@click.option(
@click.option(
@click.option(
@click.option(
@click.option(
@click.option(
@click.option(
@click.option(
@click.option(
@click.option(
@click.option(
@click.option(
@click.option(
def stream(streamer, fields, separator, datadir, asn, alert, countries, custom_filters, ports, tags, vulns, limit, compresslevel, timeout, color, quiet): (source) ¶
Stream data in real-time.