Fail scanner instead of returning

This commit is contained in:
William Vu
2018-10-23 10:07:38 -05:00
parent 9c7a705868
commit 9c49acb924
@@ -75,8 +75,7 @@ class MetasploitModule < Msf::Auxiliary
def run_host(ip)
if action.name == 'Execute' && datastore['CMD'].blank?
print_error('CMD is required to be set for the Execute action')
return
fail_with(Failure::BadConfig, 'Execute action requires CMD to be set')
end
factory = ssh_socket_factory