Fix AXFR false positive bug
git-svn-id: file:///home/svn/framework3/trunk@7441 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
a8d9da0d3d
commit
b91d198e09
|
@ -312,8 +312,10 @@ class Metasploit3 < Msf::Auxiliary
|
|||
if (query.answer.length != 0)
|
||||
(query.answer.select { |i| i.class == Net::DNS::RR::NS}).each do |nsrcd|
|
||||
print_status("Testing Nameserver: #{nsrcd.nsdname}")
|
||||
@res.nameserver=(nsrcd.nsdname)
|
||||
begin
|
||||
nssrvquery = @res.query(nsrcd.nsdname, "A")
|
||||
nssrvip = nssrvquery.answer[0].address.to_s
|
||||
@res.nameserver=(nssrvip)
|
||||
zone = []
|
||||
zone = @res.query(target,Net::DNS::AXFR)
|
||||
if zone.answer.length != 0
|
||||
namesrvips = @res.query(nsrcd.nsdname,"A")
|
||||
|
@ -395,9 +397,6 @@ class Metasploit3 < Msf::Auxiliary
|
|||
else
|
||||
print_status("Zone Transfer Failed")
|
||||
end
|
||||
rescue
|
||||
print_status("Zone Transfer Failed")
|
||||
end
|
||||
end
|
||||
else
|
||||
print_error("Could not resolve domain #{target}")
|
||||
|
|
Loading…
Reference in New Issue