Ignore unexpected answers
parent
0db93111de
commit
1fe0c50df0
|
@ -124,6 +124,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
query = @res.search(host, "A")
|
query = @res.search(host, "A")
|
||||||
if query
|
if query
|
||||||
query.answer.each do |rr|
|
query.answer.each do |rr|
|
||||||
|
next unless rr.type == "A"
|
||||||
record = {}
|
record = {}
|
||||||
record[:host] = host
|
record[:host] = host
|
||||||
record[:type] = "A"
|
record[:type] = "A"
|
||||||
|
@ -134,6 +135,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
query1 = @res.search(host, "AAAA")
|
query1 = @res.search(host, "AAAA")
|
||||||
if query1
|
if query1
|
||||||
query1.answer.each do |rr|
|
query1.answer.each do |rr|
|
||||||
|
next unless rr.type == "AAAA"
|
||||||
record = {}
|
record = {}
|
||||||
record[:host] = host
|
record[:host] = host
|
||||||
record[:type] = "AAAA"
|
record[:type] = "AAAA"
|
||||||
|
@ -189,6 +191,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
query = @res.query(target, "TXT")
|
query = @res.query(target, "TXT")
|
||||||
return results if not query
|
return results if not query
|
||||||
query.answer.each do |rr|
|
query.answer.each do |rr|
|
||||||
|
next unless rr.type == "TXT"
|
||||||
record = {}
|
record = {}
|
||||||
record[:host] = target
|
record[:host] = target
|
||||||
record[:text] = rr.txt
|
record[:text] = rr.txt
|
||||||
|
|
Loading…
Reference in New Issue