From 4ca595eb1569e1007e48a7296feb93972c1dfb99 Mon Sep 17 00:00:00 2001 From: bwatters-r7 Date: Tue, 5 Dec 2017 11:55:17 -0600 Subject: [PATCH] wvu-suggested fix --- modules/exploits/multi/ssh/sshexec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)