Skip to content

Instantly share code, notes, and snippets.

/new_test.rb Secret

Created May 11, 2016 21:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/c026fdd8e870bf244a786af24f0a974c to your computer and use it in GitHub Desktop.
Save anonymous/c026fdd8e870bf244a786af24f0a974c to your computer and use it in GitHub Desktop.
require 'pp'
require 'censys'
require 'pry'
api = CenSys::API.new
ipresponse = api.ipv4.search(query: 'dropbox.com')
ipresponse.each_page do |page|
puts ">>> Page ##{page.metadata.page} / #{page.metadata.pages} ..."
# puts page.protocol
page.each do |result|
puts result.address ## <-- Does not print anything just empty spaces
puts result.protocols ## <-- Prints what I want it to
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment