class Shodan::Clients::Exploits
The Exploits
API
provides access to several exploit and vulnerability data sources. At the moment, it searches across the following:
- Exploit DB - Metasploit - Common Vulnerabilities and Exposures (CVE)
Constants
- BASE_URL
- HOST
Public Instance Methods
count(query = "", facets: {}, page: 1, **params)
click to toggle source
This method behaves identical to the “/search” method with the difference that it doesn't return any results.
# File lib/shodan/clients/exploits.rb, line 29 def count(query = "", facets: {}, page: 1, **params) params[:query] = query params = turn_into_query(params) facets = turn_into_facets(facets) params[:page] = page get("/count", **params.merge(facets)) end
search(query = "", facets: {}, page: 1, **params)
click to toggle source
Search across a variety of data sources for exploits and use facets to get summary information.
# File lib/shodan/clients/exploits.rb, line 19 def search(query = "", facets: {}, page: 1, **params) params[:query] = query params = turn_into_query(params) facets = turn_into_facets(facets) params[:page] = page get("/search", **params.merge(facets)) end