Hacking Wii U - Python One Liners Thread

Onion_Knight

Well-Known Member
OP
Member
Joined
Feb 6, 2014
Messages
878
Trophies
0
Age
45
XP
997
Country
I use these all the time, and i've posted them in various threads but I thought I'd just consolidate them and offer a place for others to toss their most useful one liners. All of mine are in Python and handle some of the more onerous tasks that I come across. Anyone can use these, you do not need to know how to program in the slightest. They must all be run in the directory where the files are located unless you want to specify their filepaths.

Copying and Pasting Title Keys in to proper binary format can be tedious and you have to have a hex editor. Here's a python one-liner that makes it happen automagically:

Make a disckey.bin for vgmtool or ckey for DiscU
Code:
python -c "import binascii; open('disckey.bin', 'wb').write(binascii.unhexlify('<insertyourkeyhere>'))"
in between the delete everything from the < to the > and just copy/paste your key in!

You downloaded a title from NUS and need a title.tik, but you only have the title key. This pads out the the file and inserts the key in the correct location for CDecrypt to read it.
Code:
python -c "import binascii; open('title.tik', 'wb').write(b'\0'*0x1bf + binascii.unhexlify('<insertyourkeyhere>'))"
in between the delete everything from the < to the > and just copy/paste your key in!


You downloaded a title from NUS but you need to remove the ".app" file extension from your files to properly decrypt
Code:
python -c "import os; [os.rename(file,file.split('.')[0]) for file in os.listdir('.') if '.app' in file]"

You want to self host the html files but you don't want to try to set up a webserver, this works with the Dimok loadiine's elf loader.

This depends on what Python version you've installed:
Python 2:
Code:
python -m SimpleHTTPServer [optional port]
the [optional port] is really actually optional if you put nothing there after the SimpleHTTPServer, it defaults to 8000
so the URL you browse to is: http://<yourip>:8000

Python 3:
Code:
python -m http.server [optional port]
Once again the optional is really optional.


I'll update this whenever I find myself writing a one liner consitently for something else. I use these all the time and I constantly see people asking how to do these things on a daily basis.
 
Last edited by Onion_Knight,

AntonioMontana

New Member
Newbie
Joined
Jun 20, 2007
Messages
2
Trophies
0
XP
187
Country
Gambia, The
Thanks for the tut

but new here
Need more help to create a title.tik

i copy paste in python -c "import binascii; open('title.tik', 'wb').write(b'\0'*0x1bf + binascii.unhexlify('<DCB529E0E834BC86CF84B4D575ADA08C>'))"

python say invalid Syntax

Sorry for my bad english
 

markehmus

Well-Known Member
Member
Joined
Jul 26, 2008
Messages
1,521
Trophies
0
Age
112
Location
in the GAME
XP
1,379
Country
Canada
Thanks for the tut

but new here
Need more help to create a title.tik

i copy paste in python -c "import binascii; open('title.tik', 'wb').write(b'\0'*0x1bf + binascii.unhexlify('<DCB529E0E834BC86CF84B4D575ADA08C>'))"

python say invalid Syntax

Sorry for my bad english

delete < to the > , including the <> then try maybe
<> gives error is all ...
TypeError: Non-hexadecimal digit found

edit or i am wrong & maybe python isnt installed right or path is not set in Enviromental variable
 
Last edited by markehmus,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • ColdBlitz @ ColdBlitz:
    because they want to flex their insane developer skills ofc
  • K3Nv2 @ K3Nv2:
    We have ps5 exploits where's an article talking about ps5 emulation?
  • Xdqwerty @ Xdqwerty:
    if i wanted to play gb games on a touch screen device i would just use my phone
  • ColdBlitz @ ColdBlitz:
    heres ps4/5
    emulation (it is far from playing actual games yet but its something) https://www.youtube.com/watch?v=7qe71pCjC9U
  • Psionic Roshambo @ Psionic Roshambo:
    I thought PS4/5 and Xbox One emulation would be kind of easy since they basically just a PC
  • ColdBlitz @ ColdBlitz:
    they sorta are a pc
  • K3Nv2 @ K3Nv2:
    They haslve dedicated on board chips that aren't tweaked like x64/x32 afaik
  • ColdBlitz @ ColdBlitz:
    but its a custom os for both of them
  • ColdBlitz @ ColdBlitz:
    designed for only specific hardware
  • ColdBlitz @ ColdBlitz:
    so you have to learn to emulate that specific hardware which isn't as easy as you'd think
  • K3Nv2 @ K3Nv2:
    It's a locked down Linux distro basically
  • Psionic Roshambo @ Psionic Roshambo:
    I think the only custom hardware is to do with the SSD and a security chip
  • Psionic Roshambo @ Psionic Roshambo:
    Probably combined in one chip
  • K3Nv2 @ K3Nv2:
    They place married security chips onto boards iirc
  • Psionic Roshambo @ Psionic Roshambo:
    Damn Frontier is offering 5Gbps now lol
  • K3Nv2 @ K3Nv2:
    I honestly can't recommend any of the big 3 this years I'd say buy a rog ally z1 if we're being honest
  • Psionic Roshambo @ Psionic Roshambo:
    Honestly after the PS3 and 360 I just went full PC
  • K3Nv2 @ K3Nv2:
    Every games basically cross platform they only have about 6 titles making it worth the $600 price tag
  • Psionic Roshambo @ Psionic Roshambo:
    Didn't see much need for a console, all the advantages have kind of disappeared
  • ColdBlitz @ ColdBlitz:
    the ps3 used to support installing linux because the cpu was so powerful
  • K3Nv2 @ K3Nv2:
    Then the games are $70 and they want to reboot and refresh the same game every year
  • K3Nv2 @ K3Nv2:
    The ps3 was always Linux they just found a way to make it open source
  • ColdBlitz @ ColdBlitz:
    I'm avoiding buying from the big 3 at all atm
  • Psionic Roshambo @ Psionic Roshambo:
    At one point PC game pads where poorly supported, loading a game had setup, it was complicated. Now it's almost as easy as a console.
  • ColdBlitz @ ColdBlitz:
    nintendo needs to up their game soon
    ColdBlitz @ ColdBlitz: nintendo needs to up their game soon