We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31b7ef4 commit 7ccc86dCopy full SHA for 7ccc86d
modules/exploits/windows/local/persistence.rb
@@ -230,9 +230,9 @@ def target_exec(script_on_target)
230
# Error handling for process.execute() can throw a RequestError in send_request.
231
begin
232
unless datastore['EXE::Custom']
233
- session.shell_command_token(script_on_target)
+ cmd_exec("wscript \"#{script_on_target}\"")
234
else
235
- session.shell_command_token("cscript \"#{script_on_target}\"")
+ cmd_exec("cscript \"#{script_on_target}\"")
236
end
237
rescue
238
print_error("Failed to execute payload on target")
0 commit comments