UDPIH: USB Host Stack exploit + Recovery Menu

It's been a while without any major exploits in the Wii U scene, so I present to you:

USB Descriptor Parsing Is Hard (UDPIH)

An exploit for the Wii U's USB Host Stack. Pronounced like "mud pie" without the M.

The write-up can be found here!

What does this mean?​

Since the USB Stack is running before anything on the PPC side of the Wii U is booted, this allows unbricking things like CBHC bricks without any soldering!


Requirements​

  • A Wii U
  • One of the devices listed below
    Note: Any other linux device capable of USB device emulation should work as well.
    Prebuilt releases are only available for the Pico and Zero.
    I will add more devices below which are confirmed to work.

Supported devices:​

  • A Raspberry Pi Pico or Zero
  • A Nintendo Switch capable of running udpih_nxpayload

Instructions​

Pico​

  • Download the latest udpih.uf2 from the releases page.
  • Hold down the BOOTSEL button on the board and connect the Pico to your PC.
    Your PC will detect the Pi as a storage device.
  • Copy the .uf2 file to the Pico. It will disconnect after a few seconds.
The Pico is now flashed and can be used for udpih. Continue with "Booting the recovery_menu" below.

Raspberry Pi Zero (Linux)​

  • Install the required dependencies:
    Bash:
    sudo apt install build-essential raspberrypi-kernel-headers
  • Clone the repo:
  • Bash:
    git clone https://github.com/GaryOderNichts/udpih.git
    cd udpih
  • Download the latest arm_kernel.bin.h from the releases page and copy it to the arm_kernel directory.
  • Now build the kernel module:
  • Bash:
    cd linux
    make
  • You can now run sudo insmod udpih.ko to insert the kernel module into the kernel.
The Zero is now ready to be used for udpih.
Note that you'll need to insert the module again after rebooting the Zero. You will need 2 USB cables, one for powering the Zero and one which can be connected to the Wii U.

Continue with "Booting the recovery_menu" below.

Booting the recovery_menu​

warning
Important notes for this to work:
  • Make sure no other USB Devices are attached to the console.
  • Only use USB ports on the front of the console, the back ports will not work.
  • If your console has standby mode enabled, pull the power plug and turn it on from a full coldboot state.
  • Copy the latest release of the recovery_menu to the root of your FAT32 formatted SD Card.
  • Insert the SD Card into the console and power it on.
  • As soon as you see the "Wii U" logo on the TV or Gamepad plug in your Zero/Pico.
    This timing is important. If you're already in the menu, the exploit won't work..
  • After a few seconds you should be in the recovery menu.
So what's this recovery menu? The recovery menu allows you to fix several bricks:
screenshot

Wii U Recovery Menu

A simple recovery menu running on the IOSU for unbricking.

Options​

Set Coldboot Title
Allows changing the current title the console boots to.
Useful for unbricking CBHC bricks.
Possible options are:
  • Wii U Menu (JPN) - 00050010-10040000
  • Wii U Menu (USA) - 00050010-10040100
  • Wii U Menu (EUR) - 00050010-10040200
On non-retail systems the following additional options are available:
  • System Config Tool - 00050010-1F700500
  • DEVMENU (pre-2.09) - 00050010-1F7001FF
  • Kiosk Menu - 00050010-1FA81000
Dump Syslogs
Copies all system logs to a logs folder on the root of the SD Card.

Dump OTP + SEEPROM
Dumps the OTP and SEEPROM to otp.bin and seeprom.bin on the root of the SD Card.

Start wupserver
Starts wupserver which allows connecting to the console from a PC using wupclient.

Load Network Configuration
Loads a network configuration from the SD, and temporarily applies it to use wupserver.
The configurations will be loaded from a network.cfg file on the root of your SD.
For using the ethernet adapter, the file should look like this:
Code:
type=eth

For using wifi:
Code:
type=wifi
ssid=ssidhere
key=wifikeyhere
key_type=WPA2_PSK_AES

Pair Gamepad
Displays the Gamepad Pin and allows pairing a Gamepad to the system. Also bypasses any region checks while pairing.
The numeric values represent the following symbols: ♠ = 0, ♥ = 1, ♦ = 2, ♣ = 3.
Note that rebooting the system might be required to use the newly paired gamepad.

Install WUP
Installs a valid signed WUP from the install folder on the root of your SD Card.
Don't place the WUP into any subfolders.

Edit Parental Controls
Displays the current Parental Controls pin configuration.
Allows disabling Parental Controls.

Debug System Region
Fixes bricks caused by setting productArea and/or gameRegion to an invalid value. Symptoms include being unable to launch System Settings or other in-region titles.

System Information
Displays info about several parts of the system.
Including serial number, manufacturing date, console type, regions, memory devices...

Credits​

Special thanks to Maschell, rw-r-r-0644, QuarkTheAwesome, vgmoose, exjam, dimok789, and everyone else who contributed to the Wii U scene!
 
Last edited by GaryOderNichts,

Zm1231

Well-Known Member
Member
Joined
Jun 11, 2007
Messages
207
Trophies
1
Age
30
Location
Charlotte, North Carolina
XP
1,676
Country
United States
Couldn't a laptop USB controller run in USB emulation mode with a Linux distro booted?

I've got a laptop that has nothing but USB C connectors on it and could theoretically could use the USB cable that comes with a PS5 controller. USB C on the laptop USB A on the opposite end to plug into the Wii u
 

remlei

Well-Known Member
Member
Joined
Mar 26, 2013
Messages
184
Trophies
1
Age
34
XP
624
Country
esp32-s2 can probably also be used for UDPIH specially that this thing had option for USB timeout where you can time the simulation of plug and unplugging the USB device. Maybe useful for coldboot hacks.
 

Spider_Man

Well-Known Member
Member
Joined
May 28, 2015
Messages
3,930
Trophies
0
Age
38
XP
5,190
Country
United States
Its been ages since I've touched my wii u, used to use Web exploit to boot hombrew loader and install utik format games.

Tried booting the other day, when booting the web exploit it would give an error saying cant find fat32 or something.

I assumed everything on the consoles sd card was what I used last time to install my games.

But its been that long since I've even been on my wii u, I cant remember.
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,180
Country
United States
Its been ages since I've touched my wii u, used to use Web exploit to boot hombrew loader and install utik format games.

Tried booting the other day, when booting the web exploit it would give an error saying cant find fat32 or something.

I assumed everything on the consoles sd card was what I used last time to install my games.

But its been that long since I've even been on my wii u, I cant remember.
Just need homebrew launcher folder in wiiu/apps
 
  • Like
Reactions: Spider_Man

darkgunsou86

Well-Known Member
Member
Joined
Sep 3, 2007
Messages
108
Trophies
1
Age
38
Location
Kuala Lumpur
Website
Visit site
XP
1,327
Country
Malaysia
my friend bricked his wii u by pulling the plug when it was taking a long time to update.
it was using the haxchi and i installed some games including mario kart 8.
he said the wii u had an update message when he inserted a mario kart 8 disc and it took a long time so he pulled the plug.
naturally, there's no nand backup as it was using haxchi.
hope this new method can fix the wii U.
 

Maschell

Well-Known Member
Member
Joined
Jun 14, 2008
Messages
1,097
Trophies
2
XP
4,735
Country
Germany
Took long enough, holy shit. We can finally restore our NAND backups Incase of a brick???
Depends on the type of brick. If the brick causes IOSU/IOS-USB to not boot properly this exploit won't save you. It's NOT a brick protection. I have two bricked console where this exploit doesn't work.

If you see an error message on boot chances at pretty high you are getting at least code execution with this new exploit. The MLC still might be already corrupted and about to do die completely "soon"
 
  • Like
Reactions: GaryOderNichts

abal1000x

Well-Known Member
Member
Joined
Jun 5, 2022
Messages
1,070
Trophies
0
XP
1,401
Country
Gaza Strip
I have Wii U with 160-1402 error.
I might try to use this. I have pico from seeeduino, gonna try this on weekend.
 

Kopimist

Well-Known Member
Member
Joined
Nov 6, 2019
Messages
357
Trophies
0
Age
36
XP
995
Country
United States
this might sound dumb as i havent read the whole thing, but does it work with tiramisu?

EDIT: nvm i only have a windows pc
You could run a live version of Linux off a USB on your Windows PC and still use this exploit
 

Ondrashek06

Well-Known Member
Member
Joined
Dec 27, 2019
Messages
1,171
Trophies
0
XP
3,342
Country
Czech Republic
afaik, on the switch scene, hekate is able to do usb host emulation (usm). Many modified wiiu users possess a vulnerable switch too. Perhaps it could be used instead of a rpi.
A RPI pico is $5 in an authorized store here. Why would I want to solder and do all the stuff to homebrew my switch and then do things a $5 chip can already do?

And why would I solder to avoid soldering? If I solder a microchip in my switch, I would just do the solderful method to unbrick Wii Us.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Minox @ Minox:
    I'll stick with my kimchi thank you
  • K3Nv2 @ K3Nv2:
    Triglycerides almost 900
  • Minox @ Minox:
    No idea what any of those things you mention are
    +1
  • K3Nv2 @ K3Nv2:
    Cholesterol and Triglycerides? Basically a way they measure fatty cells in your blood
  • AncientBoi @ AncientBoi:
    Cholesterol is sorta high, according to my doc
    +1
  • K3Nv2 @ K3Nv2:
    I've been taking fiber pills, eating more grapes, switched to wheat bread in hopes to lower it
    +1
  • BigOnYa @ BigOnYa:
    I like wheat bread, I even like the chunky wheat bread with pieces of whole grain in it.
  • K3Nv2 @ K3Nv2:
    Been getting this honey wheat bread from aldis pretty decent not very sweet to out do it
  • K3Nv2 @ K3Nv2:
    Me making any food at home is an improvement to how I use to be
    +1
  • BigOnYa @ BigOnYa:
    I have an bread machine and use it alot, better than breads you buy, but don't last as long, cause no bs preservatives
  • K3Nv2 @ K3Nv2:
    I got compliments about my weight loss and thought well guess I can pig out again now I'm the piggy
  • BigOnYa @ BigOnYa:
    My biggest prob is alcohol, definitely is fattening
  • K3Nv2 @ K3Nv2:
    I know when to stop at least honestly don't get those that go and go with food
  • BigOnYa @ BigOnYa:
    Or those that order 2 big macs , large fry, ice cream sundie, then a diet coke
  • K3Nv2 @ K3Nv2:
    I might get downing two big macs but nah that's it
  • BigOnYa @ BigOnYa:
    Ok that will be $15.99, cash or charge?
  • K3Nv2 @ K3Nv2:
    My go to orders usually a mcdouble and a mcchicken and I'm happy rarely mess with fries
  • K3Nv2 @ K3Nv2:
    Pro tip ask for that clowns jizzmac sauce on your mcdouble
    +1
  • BigOnYa @ BigOnYa:
    Do they charge extra when you add sauce,etc? I know burger king used to not, but don't know nowadays
  • K3Nv2 @ K3Nv2:
    They may squrit it for free if you ask nice
    +1
  • K3Nv2 @ K3Nv2:
    Last time I got bk it was 35c per sauce fuck you king of my nutsack
    +1
  • K3Nv2 @ K3Nv2:
    I'll buy a bottle of baby rays BBQ for $2 and add it from home out of spite
    +1
  • BigOnYa @ BigOnYa:
    I like baby rays, my favorite is KC masterpiece tho. Figured all you could buy is that there.
  • K3Nv2 @ K3Nv2:
    The metro doesn't discriminate good sauce
    +1
    K3Nv2 @ K3Nv2: The metro doesn't discriminate good sauce +1