Sha256: e6f2f73ce5246543f20fe830befe8be5fc54f0bbf94a2955682f2fb00480803d

Contents?: true

Size: 381 Bytes

Versions: 3

Compression:

Stored size: 381 Bytes

Contents

# frozen_string_literal: true

module Shodan
  module Clients
    class Tools < Base
      # Shows the HTTP headers that your client sends when
      # connecting to a webserver.
      def http_headers
        get("/tools/httpheaders")
      end

      # Get your current IP address as seen from the Internet.
      def my_ip
        get("/tools/myip")
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shodanx-0.2.1 lib/shodan/clients/tools.rb
shodanx-0.2.0 lib/shodan/clients/tools.rb
shodanx-0.1.0 lib/shodan/clients/tools.rb