Files
c2_backend_template-paw/run_checks.ps1

37 lines
1.1 KiB
PowerShell

Start-Process "powershell.exe" -ArgumentList @(
"-NoExit",
"-Command",
"python components\server\main.py;
Write-Host 'Server has started. Press Enter to close this window...';
Read-Host"
)
Write-Host "Waiting for the server to start. Press Enter to continue..."
Read-Host
Start-Process "powershell.exe" -ArgumentList @(
"-NoExit",
"-Command",
'nim c --opt:size -f --threads:on -o:./components/implant/out/rawr ./components/implant/paw.nim;
if ($LASTEXITCODE -eq 0) {
Write-Host ''Compilation successful, executing rawr.exe...'';
Start-Process -NoNewWindow ''components\implant\out\rawr.exe'';
} else {
Write-Host ''Compilation failed.'';
}
Write-Host ''Press Enter to close this window...'';
Read-Host'
)
Write-Host "Waiting for the testing implant to connect. Press Enter to continue..."
Read-Host
Start-Sleep -Milliseconds 500
Start-Process "powershell.exe" -ArgumentList @(
"-NoExit",
"-Command",
"python paw.py;
Write-Host 'paw.py script finished. Press Enter to close this window...';
Read-Host"
)