Last active
March 17, 2024 11:59
-
-
Save guai/c4cdb8b482102c89a2d81c7bcd22216c to your computer and use it in GitHub Desktop.
batch & powershell "quine" skipping execution policy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@goto ps | |
echo 'feeling sleepy...' | |
Start-Sleep -Seconds (90*60); C:\windows\System32\rundll32.exe powrprof.dll,SetSuspendState Standby | |
exit | |
:ps | |
@echo off | |
more +1 %0 | powershell -executionpolicy unrestricted -command - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment