Enforce check

Because we are not able to get our hands on the hardware for testing,
and that this module may trigger a backtrace if the UDP server isn't
Moxa, we force check to make sure that doesn't happen.
bug/bundler_fix
wchen-r7 2017-05-16 16:43:22 -05:00
parent d85d1de057
commit 8025eb573a
1 changed files with 7 additions and 0 deletions

View File

@ -219,9 +219,16 @@ class MetasploitModule < Msf::Auxiliary
return Exploit::CheckCode::Unknown
end
cleanup
Exploit::CheckCode::Safe
end
def run
unless check == Exploit::CheckCode::Appears
print_error("Aborted because the target does not seem vulnerable.")
return
end
function = datastore["FUNCTION"]
connect_udp