knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

shodan is an R package interface to the Shodan API.

NOTE that the Shodan Streaming API function are not implemented.

Also, most of the functions return list data structures given the nested structure of the Shodan query results. Functions like shodan_ports() will sanely return simple vectors and others like shodan_protocols() will return plain data.frames. I am very open to collaboration to ensure the return types are as useful to callers. File an issue or e-mail/tweet me if interested.

The package expects SHODAN_API_KEY to be in the environment and the easiest way to do that is to stick it in your .Renviron file.

The following functions are implemented:

Installation

devtools::install_github("hrbrmstr/shodan")
options(width=120)

Usage

library(shodan)
library(tibble) # for printing

# current verison
packageVersion("shodan")

shodan_ports()

shodan_protocols()

resolve("google.com")

reverse("172.217.3.110")

query_tags()$matches

shodan_query_list()$matches

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.



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