Skip to content

Commit eb3c6fa

Browse files
committed
Land rapid7#1970 - Support rhost/rport option overrides in HttpClient
Good for if you want to send HTTP requests to different ports and/or hosts.
2 parents b51349e + 819080a commit eb3c6fa

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)