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,

nelgin

New Member
Newbie
Joined
Jul 23, 2013
Messages
1
Trophies
0
Age
53
XP
64
Country
United States
I don't have a Pi Zero but I do have a Pi 3A+. I've installed the software onto the sdcard and configured the udphi to insert at boot time so I don't have to mess with it. I login and tail /var/log/syslog and dmesg -Tw

Now, the WiiU has the no sync, no display issue. I tried the recover_menu_dc_init but I see nothing in the logs when I connect the Rpi to the WiiU. I do it just as the disk completes spitting (it seems to spin twice).

I know the HDMI and Power cable work because I've tried them with a working Wii U.

I'll test the USBA-Male to Male cable tomorrow but I got it new from Amazon so it should be ok.

Right now, I'm open to other suggestions but I feel I'm at the point where I'm going to have to search for a bad component on the board if I'm ever going to get this working again. It was at some point. I also tried the "move the battery" trick and pretty much everything else.

I forgot to add, the curious thing is, powering on the Wii U will also turn on the gamepad even though it thinks they're not paired.

Finally. any special sort of cable needed? I got a USB A Male to Male connector from Amazon but I see nothing in syslog or dmesg. I went in and added the dwc2 module in both config.txt and in the /etc/modules file per previous postings on the subject.
 
Last edited by nelgin,

PCR25

New Member
Newbie
Joined
Nov 18, 2022
Messages
4
Trophies
0
Age
37
XP
84
Country
Brazil
Does anyone know where I can get valid WUPs for me to use in the recovery menu, because the menus in WUP that I get in the wizard, nuspli, do not recognize my wii U with semi brick, remembering that I follow the rules, I put the WUP in any subfolder in the install folder but still not reading please someone who manages to install WUP on Wii u using the recovery menu help me I will be grateful.
 

GaryOderNichts

Well-Known Member
OP
Member
Joined
Aug 9, 2018
Messages
792
Trophies
1
XP
5,514
Country
Germany
Does anyone know where I can get valid WUPs for me to use in the recovery menu, because the menus in WUP that I get in the wizard, nuspli, do not recognize my wii U with semi brick, remembering that I follow the rules, I put the WUP in any subfolder in the install folder but still not reading please someone who manages to install WUP on Wii u using the recovery menu help me I will be grateful.
The WUPs from JNUSTool (with -dlEncrypted) work.
 
  • Like
Reactions: PCR25

fadafwet

Well-Known Member
Member
Joined
May 22, 2015
Messages
100
Trophies
0
XP
755
Country
Canada
Any idea on why it does not show anything on my gamepad
the only thing it does is dislay white garbage on my tv when I have the proper timing
 

Sombersnow

Member
Newcomer
Joined
Jan 29, 2023
Messages
12
Trophies
0
Age
24
XP
47
Country
France
Directly after you see the Wii u logo. That worked for me the whole time.

EDIT: See this or this for the "correct" timing.
My console won't display on the monitor, and the gamepad goes to the quick start menu. But when I turn on the gamepad the console turns on too, but my gamepad and console can't connect to each other. Weird.
 

Sombersnow

Member
Newcomer
Joined
Jan 29, 2023
Messages
12
Trophies
0
Age
24
XP
47
Country
France
Pull the power plug out from the console for a few seconds and then try it again. And remove all usb devices that are attached to the console.
I did that
Post automatically merged:

But the same thing happens, i have no idea if i'm doing the timing wrong or that it does'nt work
 

ariaden

New Member
Newbie
Joined
Feb 26, 2023
Messages
3
Trophies
0
Age
37
XP
19
Country
El Salvador
I need help I bricked a japanese WII u I was able to acces to the recovery but after selecting the right coldboot and restarting isnt working, I'd like to add tha I was testing AROMA and tried to cange the language with FTPserver
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,180
Country
United States
I did that
Post automatically merged:

But the same thing happens, i have no idea if i'm doing the timing wrong or that it does'nt work
It's very specific, the timing. I've had issues with it before, but it does indeed work.
I need help I bricked a japanese WII u I was able to acces to the recovery but after selecting the right coldboot and restarting isnt working, I'd like to add tha I was testing AROMA and tried to cange the language with FTPserver
Undo what you did. Aroma gives you a safeguard.
 

ariaden

New Member
Newbie
Joined
Feb 26, 2023
Messages
3
Trophies
0
Age
37
XP
19
Country
El Salvador
I have no access to FTP, I restarted the WIIu and got an error screen with the code 160 01 01, I managed to access to the recovery using a raspberry pico but I don't how to fix it from there.
 

ariaden

New Member
Newbie
Joined
Feb 26, 2023
Messages
3
Trophies
0
Age
37
XP
19
Country
El Salvador
I managed to use WUP client and restore MLC files to the defaults but I'm still getting the same 160 01 01 error, please help me understand what to, I´m sharing the logs
 

Attachments

  • logs.rar
    263.2 KB · Views: 25
Last edited by ariaden,

Sombersnow

Member
Newcomer
Joined
Jan 29, 2023
Messages
12
Trophies
0
Age
24
XP
47
Country
France
It's very specific, the timing. I've had issues with it before, but it does indeed work.
At what time should I insert it, i've tried so many times. The game pad takes me to the quick start menu, the console has no display on the TV, but the disk drives start's up twice.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Thanks for signing up at LinusTechTips
  • QuarterCut @ QuarterCut:
    holey shmoley!
  • BigOnYa @ BigOnYa:
    Your credit card has been charged. Thank you.
  • K3Nv2 @ K3Nv2:
    Your screwdriverPlus will arrive in three weeks
    +1
  • QuarterCut @ QuarterCut:
    K64_Waddle_Dee_Artwork_1.jpg

    my reaction to such information
    +2
  • BigOnYa @ BigOnYa:
    Press 1 for English. Press 2 for Pig Latin. Or press 3 to speak to a representative.
  • BakerMan @ BakerMan:
    guys, i need help, i got into an argument about what genre radioactive is, and i forgot who made it
  • Sicklyboy @ Sicklyboy:
    @BakerMan, Imagine Dragons
  • Sicklyboy @ Sicklyboy:
    Dragon deez nuts across yo face GOTEEM
  • Sicklyboy @ Sicklyboy:
    lmao now I realize that was probably the joke in the first place
    +1
  • BakerMan @ BakerMan:
    IMAGINE DRAGON DEEZ NUTS ACROSS YO- FUCK HE BEAT ME TO IT
  • BigOnYa @ BigOnYa:
    You have selected 4 - Death by Snu Snu, please stand by...
    +1
  • BakerMan @ BakerMan:
    lucky bastard
    +1
  • Sicklyboy @ Sicklyboy:
    hahahaha I'm half way through a bag off my Volcano and my tolerance is way down because I haven't been smoking much lately, so I was a little slow to catch that that was what your angle was 🤣🤣
    +1
  • Sicklyboy @ Sicklyboy:
    Also I was just excited to know a music reference for once (I am the LAST person in the world that you want on your trivia team)
    +2
  • K3Nv2 @ K3Nv2:
    Bummer webos 7.4 isnt working with dejavuln-autoroot
  • Sicklyboy @ Sicklyboy:
    PS4 right? I think that's what mine's on. Or 5.6, maybe.
  • K3Nv2 @ K3Nv2:
    [!] Installation failed (devmode_enabled not recognized)
  • K3Nv2 @ K3Nv2:
    0.5 seemed to work whatever lol i wont bitch
  • Alysh_Graham @ Alysh_Graham:
    Hehehe
    Alysh_Graham @ Alysh_Graham: Hehehe