Skip to content

Instantly share code, notes, and snippets.

@guai
Last active March 17, 2024 11:59
Show Gist options
  • Save guai/c4cdb8b482102c89a2d81c7bcd22216c to your computer and use it in GitHub Desktop.
Save guai/c4cdb8b482102c89a2d81c7bcd22216c to your computer and use it in GitHub Desktop.
batch & powershell "quine" skipping execution policy
@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