Rust (+WebAssembly) port of Wilbrand, a program used to build the mailbox bomb exploit for the Wii system menu.
I noticed that the web version of Wilbrand runs on PHP, and executes the binary to generate the exploit.
I thought it would be fun to port the C++ code to Rust, then compile it into WebAssembly, which makes it possible to generate the exploit payload from your browser; no servers needed.
Requirements:
# show cli usage help
cargo run -- --help
# example
# cargo run <MAC_ADDRESS> <DATE> <SYS_VERSION> <OUT_DIR>
cargo run aa-bb-cc-dd-ee-ff 02-05-2022 4.3e /path/to/sdcardRequirements:
volta and wasm-pack are required to build the UI
# running the CLI
cargo run
# running the UI
just dev
# or alternatively
cd wasm && wasm-pack build
cd ui && npm install && npm run devcli: cli runner (WIP)lib: core library to construct the cdb payloadwasm: WebAssembly bindingsui: UI code for the websitedata:loader.binandenvelope.bindocs: documentation for misc stuff, likeenvelope.bin
- Test on 4.3E, bit identical binary produced, runs on my RVL-001 and boots HackMii installer
- Implement
clapargs parser incli - Binary diff all supported versions with original Wilbrand impl
- Check padding of
loader.binwhen being included in the exploit
I am not responsible for your console bricking, or any form of software/hardware damage that may be caused by the software provided. Use at your own risk!
- giantpune - mailboxbomb as the reference implementation for porting to Rust, as well the original person who discovered the exploit
- HackMii team - savezelda's loader.bin is used
- emilydaemon - web version of Wilbrand
- leahanderson1 - for extracting the image from
envelope.bin