Skip to content

Commit 8d3cb8b

Browse files
author
HD Moore
committed
Fix up meterpreter patching arguments and names
1 parent ef443c8 commit 8d3cb8b

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

lib/msf/core/handler/reverse_hop_http.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ def send_new_stage
259259
:proxy_host => datastore['PayloadProxyHost'],
260260
:proxy_port => datastore['PayloadProxyPort'],
261261
:proxy_type => datastore['PayloadProxyType'],
262-
:proxy_username => datastore['PayloadProxyUser'],
263-
:proxy_password => datastore['PayloadProxyPass']
262+
:proxy_user => datastore['PayloadProxyUser'],
263+
:proxy_pass => datastore['PayloadProxyPass']
264264

265265
blob = encode_stage(blob)
266266

lib/msf/core/handler/reverse_http.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,8 @@ def on_request(cli, req, obj)
302302
:proxy_host => datastore['PayloadProxyHost'],
303303
:proxy_port => datastore['PayloadProxyPort'],
304304
:proxy_type => datastore['PayloadProxyType'],
305-
:proxy_username => datastore['PayloadProxyUser'],
306-
:proxy_password => datastore['PayloadProxyPass']
305+
:proxy_user => datastore['PayloadProxyUser'],
306+
:proxy_pass => datastore['PayloadProxyPass']
307307

308308
resp.body = encode_stage(blob)
309309

lib/rex/payloads/meterpreter/patch.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ def self.patch_passive_service! blob, options
123123
options[:proxy_type]
124124
)
125125
patch_proxy_auth!(blob,
126-
options[:proxy_username],
127-
options[:proxy_password],
126+
options[:proxy_user],
127+
options[:proxy_pass],
128128
options[:proxy_type]
129129
)
130130

lib/rex/post/meterpreter/client_core.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -411,11 +411,11 @@ def generate_windows_stub(process)
411411
:expiration => self.client.expiration,
412412
:comm_timeout => self.client.comm_timeout,
413413
:ua => client.exploit_datastore['MeterpreterUserAgent'],
414-
:proxyhost => client.exploit_datastore['PROXYHOST'],
415-
:proxyport => client.exploit_datastore['PROXYPORT'],
416-
:proxy_type => client.exploit_datastore['PROXY_TYPE'],
417-
:proxy_username => client.exploit_datastore['PROXY_USERNAME'],
418-
:proxy_password => client.exploit_datastore['PROXY_PASSWORD']
414+
:proxy_host => client.exploit_datastore['PayloadProxyHost'],
415+
:proxy_port => client.exploit_datastore['PayloadProxyPort'],
416+
:proxy_type => client.exploit_datastore['PayloadProxyType'],
417+
:proxy_user => client.exploit_datastore['PayloadProxyUser'],
418+
:proxy_pass => client.exploit_datastore['PayloadProxyPass']
419419

420420
end
421421

0 commit comments

Comments
 (0)