File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ def transport_config_reverse_http(opts={})
60
60
:comm_timeout => datastore [ 'SessionCommunicationTimeout' ] . to_i ,
61
61
:retry_total => datastore [ 'SessionRetryTotal' ] . to_i ,
62
62
:retry_wait => datastore [ 'SessionRetryWait' ] . to_i ,
63
+ :ua => datastore [ 'MeterpreterUserAgent' ] ,
63
64
:proxy_host => datastore [ 'PayloadProxyHost' ] ,
64
65
:proxy_port => datastore [ 'PayloadProxyPort' ] ,
65
66
:proxy_type => datastore [ 'PayloadProxyType' ] ,
Original file line number Diff line number Diff line change @@ -52,14 +52,14 @@ def generate(opts={})
52
52
53
53
# Add extra options if we have enough space
54
54
unless self . available_space . nil? || required_space > self . available_space
55
- conf [ :url ] = generate_uri
56
- conf [ :exitfunk ] = datastore [ 'EXITFUNC' ]
57
- conf [ :proxy_host ] = datastore [ 'PayloadProxyHost ' ]
58
- conf [ :proxy_port ] = datastore [ 'PayloadProxyPort ' ]
59
- conf [ :proxy_user ] = datastore [ 'PayloadProxyUser ' ]
60
- conf [ :proxy_pass ] = datastore [ 'PayloadProxyPass ' ]
61
- conf [ :proxy_type ] = datastore [ 'PayloadProxyType ' ]
62
- conf [ :retry_count ] = datastore [ 'StagerRetryCount ' ]
55
+ conf [ :url ] = generate_uri
56
+ conf [ :exitfunk ] = datastore [ 'EXITFUNC' ]
57
+ conf [ :ua ] = datastore [ 'MeterpreterUserAgent ' ]
58
+ conf [ :proxy_host ] = datastore [ 'PayloadProxyHost ' ]
59
+ conf [ :proxy_port ] = datastore [ 'PayloadProxyPort ' ]
60
+ conf [ :proxy_user ] = datastore [ 'PayloadProxyUser ' ]
61
+ conf [ :proxy_pass ] = datastore [ 'PayloadProxyPass ' ]
62
+ conf [ :proxy_type ] = datastore [ 'PayloadProxyType ' ]
63
63
end
64
64
65
65
generate_reverse_http ( conf )
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ def generate(opts={})
58
58
unless self . available_space . nil? || required_space > self . available_space
59
59
conf [ :url ] = generate_uri
60
60
conf [ :exitfunk ] = datastore [ 'EXITFUNC' ]
61
+ conf [ :ua ] = datastore [ 'MeterpreterUserAgent' ]
61
62
conf [ :proxy_host ] = datastore [ 'PayloadProxyHost' ]
62
63
conf [ :proxy_port ] = datastore [ 'PayloadProxyPort' ]
63
64
conf [ :proxy_user ] = datastore [ 'PayloadProxyUser' ]
You can’t perform that action at this time.
0 commit comments