shodan_search: Search Shodan

Description Usage Arguments Details References Examples

View source: R/search.r

Description

Search Shodan using the same query syntax as the website and use facets to get summary information for different properties.

Usage

1
shodan_search(query = NULL, facets = NULL, page = 1, minify = TRUE)

Arguments

query

Shodan search query. The provided string is used to search the database of banners in Shodan, with the additional option to provide filters inside the search query using a "filter:value" format. For example, the following search query would find Apache webservers located in Germany: "apache country:DE". See https://developer.shodan.io/api for all supported search filters.

facets

A comma-separated list of properties to get summary information on. Property names can also be in the format of "property:count", where "count" is the number of facets that will be returned for a property (i.e. "country:100" to get the top 100 countries for a search query). See https://developer.shodan.io/api for all supported facets. If length(facets) > 1) this function will concatenate the vector with commas to send to Shodan.

page

The page number to page through results 100 at a time (default: 1)

minify

TRUE == truncate some of the larger fields (default: TRUE)

Details

This method may use API query credits depending on usage. If any of the following criteria are met, your account will be deducated 1 query credit:

References

https://developer.shodan.io/api

Examples

1
shodan_search("apache geo:42.9693,-74.1224")

hrbrmstr/shodan documentation built on May 17, 2019, 5:13 p.m.