Skip to content

Commit 819080a

Browse files
author
HD Moore
committed
Enable rhost/rport option overrides in HttpClient
1 parent 0d384d2 commit 819080a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/msf/core/exploit/http/client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ def connect(opts={})
149149
client_password = opts['password'] || datastore['PASSWORD'] || ''
150150

151151
nclient = Rex::Proto::Http::Client.new(
152-
rhost,
153-
rport.to_i,
152+
opts['rhost'] || rhost,
153+
(opts['rport'] || rport).to_i,
154154
{
155155
'Msf' => framework,
156156
'MsfExploit' => self,

0 commit comments

Comments
 (0)