make verifyhash function available to prereq (#859)

This commit is contained in:
Carrie Roberts
2020-03-09 09:48:56 -06:00
committed by GitHub
parent 063103ab79
commit 34f36da8f3
+1
View File
@@ -90,6 +90,7 @@ atomic_tests:
if (Test-Path #{wce_exe}) {exit 0} else {exit 1}
get_prereq_command: |
$parentpath = Split-Path "#{wce_exe}"; $zippath = "$parentpath\wce.zip"
IEX(IWR "https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/Public/Invoke-WebRequestVerifyHash.ps1")
if(Invoke-WebRequestVerifyHash "#{wce_url}" "$zippath" #{wce_zip_hash}){
Expand-Archive $zippath $parentpath\wce -Force
Move-Item $parentpath\wce\wce.exe "#{wce_exe}"