Fix authoritativeness check
git-svn-id: file:///home/svn/framework3/trunk@5593 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
1e0e99259b
commit
07f2ece645
|
@ -216,7 +216,7 @@ class Auxiliary::Spoof::Dns::BailiWickedDomain < Msf::Auxiliary
|
||||||
print_status " Got an #{rr1.type} record: #{rr1.inspect}"
|
print_status " Got an #{rr1.type} record: #{rr1.inspect}"
|
||||||
res2 = Net::DNS::Resolver.new(:nameservers => rr1.address, :dns_search => false, :recursive => false, :retry => 1)
|
res2 = Net::DNS::Resolver.new(:nameservers => rr1.address, :dns_search => false, :recursive => false, :retry => 1)
|
||||||
print_status " Checking Authoritativeness: Querying #{rr1.address} for #{domain}..."
|
print_status " Checking Authoritativeness: Querying #{rr1.address} for #{domain}..."
|
||||||
answer2 = res2.send(domain)
|
answer2 = res2.send(domain, Net::DNS::SOA)
|
||||||
if answer2 and answer2.header.auth? and answer2.header.anCount >= 1
|
if answer2 and answer2.header.auth? and answer2.header.anCount >= 1
|
||||||
nsrec = {:name => rr0.nsdname, :addr => rr1.address}
|
nsrec = {:name => rr0.nsdname, :addr => rr1.address}
|
||||||
barbs << nsrec
|
barbs << nsrec
|
||||||
|
|
|
@ -206,7 +206,7 @@ class Auxiliary::Spoof::Dns::BailiWickedHost < Msf::Auxiliary
|
||||||
print_status " Got an #{rr1.type} record: #{rr1.inspect}"
|
print_status " Got an #{rr1.type} record: #{rr1.inspect}"
|
||||||
res2 = Net::DNS::Resolver.new(:nameservers => rr1.address, :dns_search => false, :recursive => false, :retry => 1)
|
res2 = Net::DNS::Resolver.new(:nameservers => rr1.address, :dns_search => false, :recursive => false, :retry => 1)
|
||||||
print_status " Checking Authoritativeness: Querying #{rr1.address} for #{domain}..."
|
print_status " Checking Authoritativeness: Querying #{rr1.address} for #{domain}..."
|
||||||
answer2 = res2.send(domain)
|
answer2 = res2.send(domain, Net::DNS::SOA)
|
||||||
if answer2 and answer2.header.auth? and answer2.header.anCount >= 1
|
if answer2 and answer2.header.auth? and answer2.header.anCount >= 1
|
||||||
nsrec = {:name => rr0.nsdname, :addr => rr1.address}
|
nsrec = {:name => rr0.nsdname, :addr => rr1.address}
|
||||||
barbs << nsrec
|
barbs << nsrec
|
||||||
|
|
Loading…
Reference in New Issue