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:
parent
49b6111dbc
commit
825cbfca66
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user