Download file remotely and then download requirements remotely
This commit is contained in:
12
OS/init.cmd
12
OS/init.cmd
@ -1,5 +1,9 @@
|
||||
@echo off
|
||||
xcopy "%~dp0\Boot" "C:\boot\" /s /e /h /q /y
|
||||
xcopy "%~dp0\boot.wim" "C:\sources\" /h /q /y
|
||||
cd "%~dp0"
|
||||
powershell -executionpolicy bypass -file "setuppe.ps1"
|
||||
set StagingDir=%TEMP%\SRBW
|
||||
set RemoteURL="https://git.mrmeeb.stream/MrMeeb/sure-recover-boot-wiper/raw/branch/main/payload"
|
||||
|
||||
mkdir %StagingDir%
|
||||
|
||||
powershell -Command Invoke-WebRequest %RemoteURL%/run.ps1 -OutFile %StagingDir%\run.ps1
|
||||
|
||||
powershell -ExecutionPolicy bypass -File %StagingDir%\run.ps1 %RemoteURL%
|
||||
Reference in New Issue
Block a user