More consistent record type printing

bug/bundler_fix
Jon Hart 2016-02-04 09:12:36 -08:00
parent c630f791c3
commit c025458d22
No known key found for this signature in database
GPG Key ID: 2FA9F0A3AFA8E9D3
1 changed files with 6 additions and 6 deletions

View File

@ -205,7 +205,7 @@ class Metasploit3 < Msf::Auxiliary
next unless r.class == Net::DNS::RR::A
records << "#{r.address}"
report_host(host: r.address, name: domain, info: 'A')
print_good("#{domain}: A: #{r.address} ") if datastore['ENUM_BRT']
print_good("#{domain} A: #{r.address} ") if datastore['ENUM_BRT']
end
return if records.blank?
records
@ -219,7 +219,7 @@ class Metasploit3 < Msf::Auxiliary
resp.answer.each do |r|
next unless r.class == Net::DNS::RR::CNAME
records << r.cname
print_good("#{domain}: CNAME: #{r.cname}")
print_good("#{domain} CNAME: #{r.cname}")
end
return if records.blank?
records
@ -251,7 +251,7 @@ class Metasploit3 < Msf::Auxiliary
next unless r.class == Net::DNS::RR::MX
records << "#{r.exchange}"
report_host(host: r.exchange, name: domain, info: 'MX')
print_good("#{domain}: MX: #{r.exchange}")
print_good("#{domain} MX: #{r.exchange}")
end
rescue SocketError => e
print_error("Query #{domain} DNS MX - exception: #{e}")
@ -270,7 +270,7 @@ class Metasploit3 < Msf::Auxiliary
next unless r.class == Net::DNS::RR::SOA
records << r.mname
report_host(host: r.mname, info: 'SOA')
print_good("#{domain}: SOA: #{r.mname}")
print_good("#{domain} SOA: #{r.mname}")
end
return if records.blank?
records
@ -284,7 +284,7 @@ class Metasploit3 < Msf::Auxiliary
resp.answer.each do |r|
next unless r.class == Net::DNS::RR::TXT
records << r.txt
print_good("#{domain}: TXT: #{r.txt}")
print_good("#{domain} TXT: #{r.txt}")
end
return if records.blank?
records
@ -409,7 +409,7 @@ class Metasploit3 < Msf::Auxiliary
end
next if zone.blank?
records << "#{zone}"
print_good("#{domain}: Zone Transfer: #{zone}")
print_good("#{domain} Zone Transfer: #{zone}")
end
end
return if records.blank?