Skip to content

Commit 3aa8cb6

Browse files
author
HD Moore
committed
Fix two use cases of PROXYHOST/PROXYPORT
1 parent 87a4899 commit 3aa8cb6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/msf/core/handler/reverse_hop_http.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,8 @@ def send_new_stage
256256
:expiration => datastore['SessionExpirationTimeout'],
257257
:comm_timeout => datastore['SessionCommunicationTimeout'],
258258
:ua => datastore['MeterpreterUserAgent'],
259-
:proxyhost => datastore['PROXYHOST'],
260-
:proxyport => datastore['PROXYPORT'],
259+
:proxyhost => datastore['PROXY_HOST'],
260+
:proxyport => datastore['PROXY_PORT'],
261261
:proxy_type => datastore['PROXY_TYPE'],
262262
:proxy_username => datastore['PROXY_USERNAME'],
263263
:proxy_password => datastore['PROXY_PASSWORD']

lib/msf/core/handler/reverse_http.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@ def on_request(cli, req, obj)
299299
:expiration => datastore['SessionExpirationTimeout'],
300300
:comm_timeout => datastore['SessionCommunicationTimeout'],
301301
:ua => datastore['MeterpreterUserAgent'],
302-
:proxyhost => datastore['PROXYHOST'],
303-
:proxyport => datastore['PROXYPORT'],
302+
:proxyhost => datastore['PROXY_HOST'],
303+
:proxyport => datastore['PROXY_PORT'],
304304
:proxy_type => datastore['PROXY_TYPE'],
305305
:proxy_username => datastore['PROXY_USERNAME'],
306306
:proxy_password => datastore['PROXY_PASSWORD']

0 commit comments

Comments
 (0)