Skip to content

Commit 4ca595e

Browse files
committed
wvu-suggested fix
1 parent d1d8e3a commit 4ca595e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/exploits/multi/ssh/sshexec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def initialize
120120
[
121121
OptString.new('USERNAME', [ true, "The user to authenticate as.", 'root' ]),
122122
OptString.new('PASSWORD', [ true, "The password to authenticate with.", '' ]),
123-
Opt::RHOST('RHOST', [ true, "The target address" ]),
123+
Opt::RHOST(),
124124
Opt::RPORT(22)
125125
], self.class
126126
)
@@ -156,7 +156,7 @@ def do_login(ip, user, pass, port)
156156
non_interactive: true
157157
}
158158

159-
opt_hash[:verbose] = :debug if datastore['SSH_DEBUG']
159+
opt_hash[:verbose] = :debug if (datastore['SSH_DEBUG'])
160160

161161
begin
162162
self.ssh_socket = Net::SSH.start(ip, user, opt_hash)

0 commit comments

Comments
 (0)