class Shodan::Clients::REST

Public Instance Methods

info() click to toggle source

Returns information about the API plan belonging to the given API key.

# File lib/shodan/clients/rest.rb, line 19
def info
  get("/api-info")
end
ports() click to toggle source

This method returns a list of port numbers that the crawlers are looking for.

# File lib/shodan/clients/rest.rb, line 9
def ports
  get("/shodan/ports")
end
protocols() click to toggle source

List all protocols that can be used when performing on-demand Internet scans via Shodan.

# File lib/shodan/clients/rest.rb, line 14
def protocols
  get("/shodan/protocols")
end