sync: auto-sync from HOWARD-HOME at 2026-06-22 08:20:28
Author: Howard Enos Machine: HOWARD-HOME Timestamp: 2026-06-22 08:20:28
This commit is contained in:
@@ -552,13 +552,20 @@ foreach($n in @('a2cmd','HitmanPro_x64','rkill','EmsisoftCommandlineScanner64'))
|
||||
Start-Sleep 3
|
||||
Get-ScheduledTask -TaskName 'GuruRMM-ScannerCleanup' -EA SilentlyContinue | Unregister-ScheduledTask -Confirm:$false -EA SilentlyContinue
|
||||
Remove-Item 'C:\GuruScan\cleanup-state.json' -Force -EA SilentlyContinue
|
||||
# Re-ensure scanners exist (a prior reboot-cleanup may have wiped C:\GuruScan\downloads).
|
||||
if(-not (Test-Path 'C:\GuruScan\downloads\EmsisoftCommandlineScanner64.exe') -or -not (Test-Path 'C:\GuruScan\downloads\rkill.exe')){
|
||||
& C:\GuruScan\Download-Scanners.ps1 *> $null
|
||||
}
|
||||
if(-not (Test-Path 'C:\GuruScan\downloads\HitmanPro_x64.exe')){
|
||||
try{ [Net.ServicePointManager]::SecurityProtocol=[Net.ServicePointManager]::SecurityProtocol -bor 3072; (New-Object Net.WebClient).DownloadFile('https://dl.surfright.nl/HitmanPro_x64.exe','C:\GuruScan\downloads\HitmanPro_x64.exe') }catch{}
|
||||
}
|
||||
$zip = Get-ChildItem 'C:\Users\Owner\Downloads' -Filter '*.zip' -EA SilentlyContinue | Where-Object { $_.Name -match 'malware' } | Select-Object -First 1
|
||||
if($zip){ Expand-Archive -Path $zip.FullName -DestinationPath 'C:\Users\Owner\Desktop' -Force -EA SilentlyContinue }
|
||||
$n=(Get-ChildItem 'C:\Users\Owner\Desktop\malware-samples-master' -Recurse -File -EA SilentlyContinue).Count
|
||||
Set-Content 'C:\GuruScan\_one_before.txt' $n
|
||||
Write-Output ("setup done - malware samples present: $n")
|
||||
Write-Output ("setup done - scanners ensured; malware samples present: $n")
|
||||
PS
|
||||
run_ps "$sf" 240 70 "setup" || { echo "[ERROR] setup failed"; return 1; }
|
||||
run_ps "$sf" 600 130 "setup" || { echo "[ERROR] setup failed"; return 1; }
|
||||
|
||||
# Run the scanner the production way: detached scheduled task, unlimited time.
|
||||
gs_launch_detached "-Scanners $scanner -Headless" "one" || { echo "[ERROR] launch failed"; return 1; }
|
||||
|
||||
Reference in New Issue
Block a user