[Guide] Compile Payloads for 5.5.0/5.5.1 and run them

Discussion in 'Wii U - Hacking & Backup Loaders' started by josamilu, Jan 16, 2016.

  1. josamilu
    OP

    josamilu GBAtemp Fan

    Member
    383
    213
    Feb 1, 2015
    Gambia, The
    Saturn is better than Jupiter :P
    If you want to start developing Homebrew for 5.5.0/5.5.1, this guide is the guide you were looking for!

    Compiling homebrew for 5.5.0/5.5.1 is a bit different, than compiling for 5.3.2 or lower.

    Setup :
    • Install Cygwin
    • Python (2 or 3)
    • DevkitPro (with DevkitPPC)
    • Download my fork of libwiiu. https://github.com/TheJosamilu/libwiiu (Made a pull request for the main branch) And extract it somewhere.
    Building :

    Before you can actually build something, you have to compile libwiiu. For that, open Cygwin and 'cd' into the extracted 'libwiiu' folder, and then in the other 'libwiiu' folder. When you are in there, you can compile libwiiu with the 'make' command.
    After that is done, you can compile some examples. The easiest to compile is the Hello World example, so cd into the 'examples' folder, then the 'helloworld' one and run 'make'. If everything goes right, you can go into the /bin/ folder and you should see your code550.bin now.
    Congratulations, you just compiled your first 5.5.0/5.5.1 payload!

    You can't compile the 5.5.0/5.5.1 payloads using build.py, because it is only for 5.3.2 or older.

    Running :

    Now, to run the payload, you need to host the Browserhax somewhere. Either you have your own website, where you can upload it at, or you host a local webserver on your computer. Grab the 'wiiuhaxx.zip' I attached at the bottom of the post, and host the contents of it on the webserver. Then copy the code550.bin over to the directory of browserhax. Now, you have to edit the cfg file to match your setup.
    Code:
    <?php
    
    $wiiuhaxxcfg_payloadfilepath = "url of the payload";
    $wiiuhaxxcfg_loaderfilepath = "url of the loader";
    
    ?>
    
    Now get your Wii U ready, and open the .php page like this : wiiuhaxx.php?sysver=550
    PHP has to be enabled on your webserver to work!

    If you have done everything correctly, your compiled payload should load and run!
    If the videoplayer has frozen on your gamepad, you did a mistake. Try it again or recompile the payload. If it still not works reset the Wii U Browser.

    Conversion into mp4 :

    The conversion into a simpler to use .mp4 is easy. Just load up the exploit page, with your parameter, using your computer and save the video to your computer. You can do this by pressing CTRL+S.


    That's all, I hoped I help you! If you have any questions or trouble getting your payloads working, ask bellow.

    - josamilu
     

    Attached Files:

    Last edited by josamilu, Jan 16, 2016
  2. Voxel

    Voxel u wot

    Member
    GBAtemp Patron
    Voxel is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    5,218
    5,969
    Jun 27, 2015
    United Kingdom
    England, UK
    Awesome! Now poeple will understand how to compile my stuff. ;)
     
  3. Pioneer2k7

    Pioneer2k7 Member

    Newcomer
    39
    47
    Dec 20, 2015
    Australia
    Vienna
    vote 4 Sticky
     
  4. memomo

    memomo ( ͡° ͜ʖ ͡°)

    Member
    1,072
    548
    Nov 30, 2013
    is there a webserver app for android that support PHP ?

    thanks
     
  5. josamilu
    OP

    josamilu GBAtemp Fan

    Member
    383
    213
    Feb 1, 2015
    Gambia, The
    Saturn is better than Jupiter :P
    memomo likes this.
  6. NexoCube

    NexoCube stop using piracy :(

    Member
    1,184
    588
    Nov 3, 2015
    France
    Stack Pointer
    You forgot to PM me but i don't care. Thanxs for this awesome guide. Worth it.
     
    josamilu likes this.
  7. d4mation

    d4mation GBAtemp Regular

    Member
    171
    35
    Aug 3, 2013
    United States
    Wait, compiling for 5.5.1? Does this mean updating to 5.5.1 is safe now?
     
  8. josamilu
    OP

    josamilu GBAtemp Fan

    Member
    383
    213
    Feb 1, 2015
    Gambia, The
    Saturn is better than Jupiter :P
    Yeah the payloads work on 5.5.1 but I don't know if you lose anything if you update on 5.5.1. I will stay on 5.5.0 until it is clear.
     
    AboodXD likes this.
  9. Shmario

    Shmario Advanced Member

    Newcomer
    78
    17
    Jan 14, 2016
    Brazil
    nice job
     
    josamilu likes this.
  10. eliboa

    eliboa Member

    Newcomer
    49
    56
    Jan 13, 2016
    France
    Thank you for this. Just got my first custom Hello World!
     
    josamilu likes this.
  11. H3llbender

    H3llbender Cancer

    Member
    152
    155
    Jun 1, 2014
    United States
    New Jersey
    Worked like a charm, its great that devs like you are making user friendly tools, for others to develop and run their own code.
     
    josamilu likes this.
  12. OriginalHamster

    OriginalHamster UStealthy

    Member
    3,381
    642
    Nov 2, 2008
    Cote d'Ivoire
    Can you run gecko codes yet? On 5.5.1
    I mean recompile it to make it work on 5.5.1
     
    Last edited by OriginalHamster, Jan 16, 2016
  13. RaphGamer1256

    RaphGamer1256 Advanced Member

    Newcomer
    81
    6
    Jun 21, 2015
    France
    Blois, France
    anyone can host the mp4 file ?
    im not a developper.
     
  14. Bkool999

    Bkool999 GBAtemp Regular

    Member
    263
    111
    Oct 3, 2014
    United States
    I can't get it to run. Every time I go to the folder (in this case, a recently released Mii Maker launcher for 5.5.0) I keep getting "Error Code: 112-1500 Could not display page"

    Thoughts?

    Also, here's my cfg file. It's only renamed to .txt for the purpose of being able to upload it to the site. Not sure if it's set up right. And yes, I'm running a server. I'm using mongoose. I did research, and it's supposed to be .PHP compatible.
     

    Attached Files:

  15. josamilu
    OP

    josamilu GBAtemp Fan

    Member
    383
    213
    Feb 1, 2015
    Gambia, The
    Saturn is better than Jupiter :P
    If you want to host an mp4 for others, you can get some free webspace and upload it there.

    I think nobody has done this yet.

    — Posts automatically merged - Please don't double post! —

    Can you visit the site with your computer?
     
    ant888 and OriginalHamster like this.
  16. Bkool999

    Bkool999 GBAtemp Regular

    Member
    263
    111
    Oct 3, 2014
    United States
    Only if I rename my index.php file to something else. In this case, index.php.bak

    EDIT: Same goes for my Wii U. Only difference is it actually gives me an error message.
     
    Last edited by Bkool999, Jan 16, 2016
  17. josamilu
    OP

    josamilu GBAtemp Fan

    Member
    383
    213
    Feb 1, 2015
    Gambia, The
    Saturn is better than Jupiter :P
    Try it naming not index.php or try another webserver.
     
  18. H3llbender

    H3llbender Cancer

    Member
    152
    155
    Jun 1, 2014
    United States
    New Jersey

    1. Make sure you edit the contents in the file to your directories.
    Ex.
    $wiiuhaxxcfg_payloadfilepath = "http://localhost/code550.bin";
    $wiiuhaxxcfg_loaderfilepath = "http://localhost/wiiuhaxx_loader.bin";

    2. If Apache is running port 8080 make sure you use that in the paths.

    3. Make sure you are using "http://website/wiiuhaxx.php?sysver=550.
     
    josamilu likes this.
  19. Bkool999

    Bkool999 GBAtemp Regular

    Member
    263
    111
    Oct 3, 2014
    United States
    I'm supposed to run this in the browser, then run the Mii maker launcher, right? Because I did all those things, and it's still not working.
     
  20. H3llbender

    H3llbender Cancer

    Member
    152
    155
    Jun 1, 2014
    United States
    New Jersey
    You don't need to run Mii Maker, just the file.