Skip to content

Commit 9c6b67a

Browse files
author
Brent Cook
committed
Land rapid7#7356, remove SSH interactive prompt from freesshd_authbypass
2 parents 00c02bb + f1f6184 commit 9c6b67a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/exploits/windows/ssh/freesshd_authbypass.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ def setup_ssh_options
107107
:port => datastore['RPORT'],
108108
:timeout => 1,
109109
:proxies => datastore['Proxies'],
110-
:key_data => OpenSSL::PKey::RSA.new(2048).to_pem
110+
:key_data => OpenSSL::PKey::RSA.new(2048).to_pem,
111+
:auth_methods => ['publickey']
111112
}
112113
return options
113114
end

0 commit comments

Comments
 (0)