Consistency fix

git-svn-id: file:///home/svn/framework3/trunk@8496 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2010-02-14 19:38:47 +00:00
parent cdaebc2931
commit 43e89bf3a2
1 changed files with 4 additions and 4 deletions

View File

@ -78,13 +78,13 @@ class Metasploit3 < Msf::Auxiliary
rescue ::Rex::HostUnreachable, ::Rex::ConnectionTimeout, ::Rex::ConnectionRefused rescue ::Rex::HostUnreachable, ::Rex::ConnectionTimeout, ::Rex::ConnectionRefused
nil nil
end end
if (idx % 30 == 0) if (idx % 30 == 0)
while (r = udp_sock.recvfrom(65535, 0.1) and r[1]) while (r = udp_sock.recvfrom(65535, 0.1) and r[1])
parse_reply(r) parse_reply(r)
end end
end end
idx += 1 idx += 1
end end
end end
@ -133,8 +133,8 @@ class Metasploit3 < Msf::Auxiliary
ver = 'BIND ' + $1 ver = 'BIND ' + $1
end end
ver = 'Microsoft' if (not ver and pkt[0][2,4] == "\x81\x04\x00\x01") ver = 'Microsoft DNS' if (not ver and pkt[0][2,4] == "\x81\x04\x00\x01")
ver = 'TinyDNS' if (not ver and pkt[0][2,4] == "\x81\x81\x00\x01") ver = 'TinyDNS' if (not ver and pkt[0][2,4] == "\x81\x81\x00\x01")
ver = pkt[0].unpack('H*')[0] if not ver ver = pkt[0].unpack('H*')[0] if not ver
inf = ver if ver inf = ver if ver