use raw url so you get a functional script
This commit is contained in:
@@ -26,7 +26,7 @@ atomic_tests:
|
||||
prereq_command: |
|
||||
if (Test-Path #{file_path}\Get-Inbox.ps1) {exit 0} else {exit 1}
|
||||
get_prereq_command: |
|
||||
Invoke-WebRequest "https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1114.001/src/Get-Inbox.ps1" -OutFile "#{file_path}\Get-Inbox.ps1"
|
||||
Invoke-WebRequest "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1114.001/src/Get-Inbox.ps1" -OutFile "#{file_path}\Get-Inbox.ps1"
|
||||
executor:
|
||||
command: |
|
||||
powershell -executionpolicy bypass -command #{file_path}\Get-Inbox.ps1 -file #{output_file}
|
||||
|
||||
Reference in New Issue
Block a user