Created
June 29, 2021 14:21
-
-
Save kuuote/3540d3519aef3e4c782fccdc12c6156e to your computer and use it in GitHub Desktop.
Windows絶対終わらせるマン(動くか不明)
This file contains hidden or 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
import subprocess | |
from ctypes import * | |
subprocess.call(['sync','c']) | |
p = byref(c_byte()) | |
rt = windll.ntdll.RtlAdjustPrivilege(19, True, False, p) | |
print(windll.ntdll.NtShutdownSystem(2)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment