Skip to content

Commit 9c49acb

Browse files
committed
Fail scanner instead of returning
1 parent 9c7a705 commit 9c49acb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/auxiliary/scanner/ssh/libssh_auth_bypass.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ def check_banner(ip, version)
7575

7676
def run_host(ip)
7777
if action.name == 'Execute' && datastore['CMD'].blank?
78-
print_error('CMD is required to be set for the Execute action')
79-
return
78+
fail_with(Failure::BadConfig, 'Execute action requires CMD to be set')
8079
end
8180

8281
factory = ssh_socket_factory

0 commit comments

Comments
 (0)