Skip to content

Instantly share code, notes, and snippets.

@rw-r-r-0644
Created December 4, 2018 20:11
Show Gist options
  • Save rw-r-r-0644/992688f85e297f530d9bf9814fedb32e to your computer and use it in GitHub Desktop.
Save rw-r-r-0644/992688f85e297f530d9bf9814fedb32e to your computer and use it in GitHub Desktop.
Comfortably reset the wiiu from a pc
#!/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