Class: Shodan::Clients::REST
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#info ⇒ Object
Returns information about the API plan belonging to the given API key.
-
#ports ⇒ Object
This method returns a list of port numbers that the crawlers are looking for.
-
#protocols ⇒ Object
List all protocols that can be used when performing on-demand Internet scans via Shodan.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Shodan::Clients::Base
Instance Method Details
#info ⇒ Object
Returns information about the API plan belonging to the given API key.
19 20 21 |
# File 'lib/shodan/clients/rest.rb', line 19 def info get("/api-info") end |
#ports ⇒ Object
This method returns a list of port numbers that the crawlers are looking for.
9 10 11 |
# File 'lib/shodan/clients/rest.rb', line 9 def ports get("/shodan/ports") end |
#protocols ⇒ Object
List all protocols that can be used when performing on-demand Internet scans via Shodan.
14 15 16 |
# File 'lib/shodan/clients/rest.rb', line 14 def protocols get("/shodan/protocols") end |