diff --git a/modules/exploits/multi/ssh/sshexec.rb b/modules/exploits/multi/ssh/sshexec.rb index cc4601d19e..ab9bb533ca 100644 --- a/modules/exploits/multi/ssh/sshexec.rb +++ b/modules/exploits/multi/ssh/sshexec.rb @@ -120,7 +120,7 @@ class MetasploitModule < Msf::Exploit::Remote [ OptString.new('USERNAME', [ true, "The user to authenticate as.", 'root' ]), OptString.new('PASSWORD', [ true, "The password to authenticate with.", '' ]), - Opt::RHOST('RHOST', [ true, "The target address" ]), + Opt::RHOST(), Opt::RPORT(22) ], self.class ) @@ -156,7 +156,7 @@ class MetasploitModule < Msf::Exploit::Remote non_interactive: true } - opt_hash[:verbose] = :debug if datastore['SSH_DEBUG'] + opt_hash[:verbose] = :debug if (datastore['SSH_DEBUG']) begin self.ssh_socket = Net::SSH.start(ip, user, opt_hash)