1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-12 11:52:01 +01:00

remove the deprecated Thread.critical. fixes #544

git-svn-id: file:///home/svn/framework3/trunk@7601 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
James Lee 2009-11-25 01:48:11 +00:00
parent 49b6111dbc
commit 825cbfca66
2 changed files with 0 additions and 14 deletions

View File

@ -422,7 +422,6 @@ class Metasploit3 < Msf::Auxiliary
req.rd = 1
req.id = 1
Thread.critical = true
q_beg_t = Time.now.to_f
sock.put(req.encode)
req.rd = 0
@ -439,16 +438,12 @@ class Metasploit3 < Msf::Auxiliary
hostname = Rex::Text.rand_text_alphanumeric(rand(10)+10) + '.' + domain
Thread.critical = false
sock.close
sock = Rex::Socket.create_udp(
'PeerHost' => server,
'PeerPort' => 53
)
Thread.critical = true
q_beg_t = Time.now.to_f
req = Resolv::DNS::Message.new
req.add_question(hostname, Resolv::DNS::Resource::IN::A)
@ -467,8 +462,6 @@ class Metasploit3 < Msf::Auxiliary
sock.put(req.encode)
end
Thread.critical = false
min_time = (times.map{|i| i[0]}.min * 100).to_i / 100.0
max_time = (times.map{|i| i[0]}.max * 100).to_i / 100.0
sum = 0

View File

@ -415,7 +415,6 @@ class Metasploit3 < Msf::Auxiliary
req.rd = 1
req.id = 1
Thread.critical = true
q_beg_t = Time.now.to_f
sock.put(req.encode)
req.rd = 0
@ -432,16 +431,12 @@ class Metasploit3 < Msf::Auxiliary
hostname = Rex::Text.rand_text_alphanumeric(rand(10)+10) + '.' + domain
Thread.critical = false
sock.close
sock = Rex::Socket.create_udp(
'PeerHost' => server,
'PeerPort' => 53
)
Thread.critical = true
q_beg_t = Time.now.to_f
req = Resolv::DNS::Message.new
req.add_question(hostname, Resolv::DNS::Resource::IN::A)
@ -460,8 +455,6 @@ class Metasploit3 < Msf::Auxiliary
sock.put(req.encode)
end
Thread.critical = false
min_time = (times.map{|i| i[0]}.min * 100).to_i / 100.0
max_time = (times.map{|i| i[0]}.max * 100).to_i / 100.0
sum = 0