Sha256: a340070438548bc6b9e296b3d0ece8bbba188ba1405e7480f17c65544cef9ecf

Contents?: true

Size: 782 Bytes

Versions: 3

Compression:

Stored size: 782 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require 'bundler/setup'
require 'ronin/recon/engine'

domain = Ronin::Recon::Values::Domain.new('example.com')

Ronin::Recon::Engine.run([domain], max_depth: 3) do |engine|
  engine.on(:value) do |value,parent|
    case value
    when Ronin::Recon::Values::Domain
      puts ">>> Found new domain #{value} for #{parent}"
    when Ronin::Recon::Values::Nameserver
      puts ">>> Found new nameserver #{value} for #{parent}"
    when Ronin::Recon::Values::Mailserver
      puts ">>> Found new mailserver #{value} for #{parent}"
    when Ronin::Recon::Values::Host
      puts ">>> Found new host #{value} for #{parent}"
    when Ronin::Recon::Values::IP
      puts ">>> Found new IP address #{value} for #{parent}"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ronin-recon-0.1.0 examples/recon.rb
ronin-recon-0.1.0.rc2 examples/recon.rb
ronin-recon-0.1.0.rc1 examples/recon.rb