demos/whois_domain.rb in wmap-2.4.6 vs demos/whois_domain.rb in wmap-2.4.8

- old
+ new

@@ -3,11 +3,11 @@ # Input file format: one line for each host (FQDN) # Output file format: good old CSV format, with whois response parsed and sorted into structured fields. require "wmap" puts Wmap.banner -dis=Wmap::DomainTracker.new +dis=Wmap::DomainTracker.instance dis.verbose=false puts "Domain Whois Lookup Summary Report" puts "Host | Domain | Primary Domain Name Server | Registrant Name | Registrant Oraganization | Registrant Address | Registrant Zip | Registrant City | Registrant State | Registration Country | Registration Contact Phone | Registration Contact Email | Technical Contact Name | Technical Contact Organization | Technical Contact Country | Technical Contract Phone | Technical Contact Email | Admin Contact Name | Admin Contact Organization | Domain Availability" f_hosts = File.open(ARGV[0], 'r') f_hosts.each do |line| @@ -73,6 +73,6 @@ rescue => ee puts "#{line.chomp} | #{domain} | #{ee}" end end f_hosts.close -dis=nil +dis=nil