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
parent
d85d1de057
commit
8025eb573a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue