File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
modules/payloads/stagers/windows Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -125,16 +125,16 @@ def generate
125
125
password_size_diff # Same with PayloadProxyPass
126
126
127
127
# Patch call offset
128
- username_loc = p . index ( "PayloadProxyUser " )
128
+ username_loc = p . index ( "PROXY_USERNAME " )
129
129
p [ username_loc - 4 , 4 ] = [ 15 - username_size_diff ] . pack ( "V" )
130
- password_loc = p . index ( "PayloadProxyPass " )
130
+ password_loc = p . index ( "PROXY_PASSWORD " )
131
131
p [ password_loc - 4 , 4 ] = [ 15 - password_size_diff ] . pack ( "V" )
132
132
133
133
# Remove markers & change login/password
134
134
p = p . gsub ( "PROXY_AUTH_START" , "" )
135
135
p = p . gsub ( "PROXY_AUTH_STOP" , "" )
136
- p = p . gsub ( "PayloadProxyUser " , datastore [ 'PayloadProxyUser' ] . to_s )
137
- p = p . gsub ( "PayloadProxyPass " , datastore [ 'PayloadProxyPass' ] . to_s )
136
+ p = p . gsub ( "PROXY_USERNAME " , datastore [ 'PayloadProxyUser' ] . to_s )
137
+ p = p . gsub ( "PROXY_PASSWORD " , datastore [ 'PayloadProxyPass' ] . to_s )
138
138
end
139
139
140
140
# Patch jmp dbl_get_server_host
You can’t perform that action at this time.
0 commit comments