GithubHelp home page GithubHelp logo

maki-chan / wudecrypt Goto Github PK

View Code? Open in Web Editor NEW
40.0 6.0 2.0 69 KB

Decrypts Wii U Disc Image files (.WUD) via the common key and the corresponding disc key for the image

License: GNU Affero General Public License v3.0

C 98.70% C++ 1.30%

wudecrypt's Introduction

wudecrypt Build Status Coverity Scan Build Status

What is wudecrypt?

wudecrypt (sometimes also written WUDecrypt) is a tool written in C, fully cross-platform compatible, to decrypt Wii U Disk images (.wud).

NOTE: In its current state, wudecrypt is pre-alpha quality. It could crash during the extraction of WUD images, it's not well optimized (will run slowly) and other unwanted side effects could occur. I'm not responsible for any damage wudecrypt will cause on your system.

How to build

Get the sources from Github and use Bakefile to generate a GNU makefile that should work natively on OSX and Linux, but also via MinGW for Windows builds. You could also try to use bakefile to generate project files for Visual Studio on Windows, though I did not test VS building.

For example, to get a working build, you could run the following commands in a shell (assuming you have bakefile working as a global command):

$ git clone https://github.com/maki-chan/wudecrypt.git
$ cd wudecrypt
$ bkl wudecrypt.bkl
$ make

This will create a working wudecrypt executable.

How to use

For wudecrypt to work, you will need a WUD image, the corresponding disc key and the Wii U common key. If you have all of these files, you can run wudecrypt via the following command:

wudecrypt path/to/image.wud /path/to/output /path/to/commonkey.bin /path/to/disckey.bin

wudecrypt has a fifth optional argument which can be SI, UP, GI or GM depending on which partition types you want to extract. To play the decrypted image, extracting only the GM type partitions should be enough. I mostly introduced this function as the extraction takes a very long time and it tries to avoid a whole lot of data you won't need.

License

wudecrypt is released under the GNU AGPLv3 license. More information can be found in the LICENSE file or on the original license page.

wudecrypt uses utarray, published by Troy D. Hanson, licensed under the revised BSD license

wudecrypt uses the SHA-1 implementation from mbed TLS, published by ARM Limited, licensed under the Apache License, Version 2.0

wudecrypt's People

Contributors

maki-chan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

boaf btc08gh

wudecrypt's Issues

Mismatched checksum

First of all: Thank you for your work in this nice tool :). I've waited for the day, that an wud decrypter get's avaiable for linux.

I've tested a dump of ALAPWR, all partitions get extracted correctly, but one file has a sha512 mismatch.

GM000500001014E000000000000000/code/LEGOEmmet.master.rpx should have a sha512 of 12c97157bceaf7708dd6502b369dcea280b5cbc1a4dbd48f9a8a73677fb162999b4af3f2cd1f777b1ef4ab0de4312100998886d1a03a0e8d6ee13a57f49aed57 but got 198842a4eb0a681c971e9407f2bb5be71758319f98831ab75f12295f731b3e79078e3848c46a6ee3d933c719e259ce2d0cd1ccd6cd047d6272c79b123ef265c9.

Tried to extract the partition multiple times with the same result.

Extracting the wud with VGMToolbox r1013 results to the correct sha512 (DiscU isn't able to extract the whole partition at all). Please note: VGMToolbox reported that:

Warning, unmatched partition found: 'GI4B3E9DDE1014E000000000000000'. If this is an original (good) disc image, this could be a bug with VGMToolbox.

File with the mismatching sha512sum is not playable.

Just let me know, if there is something I can do in helping to debug the issue.

Tried wudecrypt only on Archlinux x86_64.

Crashes at [GM] partition

Hi,
When I try to extract a wud file, the program crashes at the [GM] partition, because the offset to read is further than the file size. I'm on Windows 10 x64
log.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.