Created
December 4, 2018 20:11
-
-
Save rw-r-r-0644/992688f85e297f530d9bf9814fedb32e to your computer and use it in GitHub Desktop.
Comfortably reset the wiiu from a pc
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
#!/usr/bin/python | |
## Comfortably reset the wiiu from a pc | |
import os | |
import socket | |
import struct | |
# create socket | |
s = socket.socket() | |
ip = os.environ['WIILOAD'].replace("tcp:", "") | |
s.connect((ip, 1337)) | |
# prepare svc | |
svcdata = struct.pack(">I", 0x72) # syscall 0x72, shutdown | |
svcdata += struct.pack(">I", 1) # int do_reset = 1 | |
# send svc | |
request = struct.pack('>I', 2) + svcdata # svc request | |
s.send(request) | |
# success! ..maybe | |
print "wiiu: Reset!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment