wvu-suggested fix
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user