wvu-suggested fix

This commit is contained in:
bwatters-r7
2017-12-05 11:55:17 -06:00
parent d1d8e3a678
commit 4ca595eb15
+2 -2
View File
@@ -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)