From 9c49acb9249fbfe855bb2000e21e488162f5d00e Mon Sep 17 00:00:00 2001 From: William Vu Date: Tue, 23 Oct 2018 10:07:38 -0500 Subject: [PATCH] Fail scanner instead of returning --- modules/auxiliary/scanner/ssh/libssh_auth_bypass.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/auxiliary/scanner/ssh/libssh_auth_bypass.rb b/modules/auxiliary/scanner/ssh/libssh_auth_bypass.rb index 16748bac89..920b46fc00 100644 --- a/modules/auxiliary/scanner/ssh/libssh_auth_bypass.rb +++ b/modules/auxiliary/scanner/ssh/libssh_auth_bypass.rb @@ -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