Skip to content

Instantly share code, notes, and snippets.

@postmodern
Created September 29, 2012 03:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save postmodern/3803087 to your computer and use it in GitHub Desktop.
Save postmodern/3803087 to your computer and use it in GitHub Desktop.
Example usage of Ronin::Scanners::Nmap
require 'ronin/scanners/nmap'
require 'ronin/database'
Ronin::Database.setup
Ronin::Scanners::Nmap.import(:targets => 'www.google.com') do |ip|
puts "[ #{ip} ]"
puts
ip.open_ports.each do |port|
puts " #{port}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment