Skip to content

Commit 530332b

Browse files
committed
Apply evil-e's fix when port isn't 22
See rapid7#1130
1 parent 32c5f12 commit 530332b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/unix/ssh/tectia_passwd_changereq.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def userauth_passwd_change(user, transport, connection)
188188
end
189189

190190
def init_ssh(user)
191-
opts = {:user=>user, :record_auth_info=>true}
191+
opts = {:user=>user, :record_auth_info=>true, :port=>rport}
192192
options = Net::SSH::Config.for(rhost, Net::SSH::Config.default_files).merge(opts)
193193
transport = Net::SSH::Transport::Session.new(rhost, options)
194194
connection = Net::SSH::Connection::Session.new(transport, options)

0 commit comments

Comments
 (0)