Class: Shodan::Clients::Tools
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#http_headers ⇒ Object
Shows the HTTP headers that your client sends when connecting to a webserver.
-
#my_ip ⇒ Object
Get your current IP address as seen from the Internet.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Shodan::Clients::Base
Instance Method Details
#http_headers ⇒ Object
Shows the HTTP headers that your client sends when connecting to a webserver.
8 9 10 |
# File 'lib/shodan/clients/tools.rb', line 8 def http_headers get("/tools/httpheaders") end |
#my_ip ⇒ Object
Get your current IP address as seen from the Internet.
13 14 15 |
# File 'lib/shodan/clients/tools.rb', line 13 def my_ip get("/tools/myip") end |