-
-
Save anonymous/c026fdd8e870bf244a786af24f0a974c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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