Class: Shodan::Clients::Tools

Inherits:
Base
  • Object
show all
Defined in:
lib/shodan/clients/tools.rb

Constant Summary

Constants inherited from Base

Base::BASE_URL, Base::HOST

Instance Attribute Summary

Attributes inherited from Base

#key

Instance Method Summary collapse

Methods inherited from Base

#initialize, #key?

Constructor Details

This class inherits a constructor from Shodan::Clients::Base

Instance Method Details

#http_headersObject

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_ipObject

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