Correct overly aggressive style cleanup

bug/bundler_fix
Jon Hart 2016-04-08 18:00:03 -07:00
parent 7ce5c07c03
commit 44a98cc36f
No known key found for this signature in database
GPG Key ID: 2FA9F0A3AFA8E9D3
1 changed files with 7 additions and 7 deletions

View File

@ -188,7 +188,7 @@ class MetasploitModule < Msf::Auxiliary
records = []
resp.answer.each do |r|
next unless r.class == Net::DNS::RR::PTR
records << r.ptr
records << r.ptr.to_s
print_good("#{ip}: PTR: #{r.ptr} ")
end
return if records.blank?
@ -203,7 +203,7 @@ class MetasploitModule < Msf::Auxiliary
records = []
resp.answer.each do |r|
next unless r.class == Net::DNS::RR::A
records << r.address
records << r.address.to_s
print_good("#{domain} A: #{r.address} ") if datastore['ENUM_BRT']
end
return if records.blank?
@ -219,7 +219,7 @@ class MetasploitModule < Msf::Auxiliary
records = []
resp.answer.each do |r|
next unless r.class == Net::DNS::RR::CNAME
records << r.cname
records << r.cname.to_s
print_good("#{domain} CNAME: #{r.cname}")
end
return if records.blank?
@ -235,7 +235,7 @@ class MetasploitModule < Msf::Auxiliary
records = []
resp.answer.each do |r|
next unless r.class == Net::DNS::RR::NS
records << r.nsdname
records << r.nsdname.to_s
print_good("#{domain} NS: #{r.nsdname}")
end
return if records.blank?
@ -252,7 +252,7 @@ class MetasploitModule < Msf::Auxiliary
records = []
resp.answer.each do |r|
next unless r.class == Net::DNS::RR::MX
records << r.exchange
records << r.exchange.to_s
print_good("#{domain} MX: #{r.exchange}")
end
rescue SocketError => e
@ -272,7 +272,7 @@ class MetasploitModule < Msf::Auxiliary
records = []
resp.answer.each do |r|
next unless r.class == Net::DNS::RR::SOA
records << r.mname
records << r.mname.to_s
print_good("#{domain} SOA: #{r.mname}")
end
return if records.blank?
@ -288,7 +288,7 @@ class MetasploitModule < Msf::Auxiliary
records = []
resp.answer.each do |r|
next unless r.class == Net::DNS::RR::TXT
records << r.txt
records << r.txt.to_s
print_good("#{domain} TXT: #{r.txt}")
end
return if records.blank?