use cmd.exe syntax for temp dir (#2558)

Co-authored-by: Michael Haag <5632822+MHaggis@users.noreply.github.com>
This commit is contained in:
Carrie Roberts
2023-10-10 10:04:16 -06:00
committed by GitHub
parent 3625d11dd4
commit e8d26acbc7
+2 -2
View File
@@ -21,8 +21,8 @@ atomic_tests:
Invoke-WebRequest "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1059.007/src/sys_info.js" -OutFile "#{jscript}"
executor:
command: |
cscript "#{jscript}" > $env:TEMP\T1059.007.out.txt
cleanup_command: del $env:TEMP\T1059.007.out.txt >nul 2>&1
cscript "#{jscript}" > %tmp%\T1059.007.out.txt
cleanup_command: del %tmp%\T1059.007.out.txt >nul 2>&1
name: command_prompt
- name: JScript execution to gather local computer information via wscript
auto_generated_guid: 0709945e-4fec-4c49-9faf-c3c292a74484