Hacking Wii U Hacking & Homebrew Discussion

  • Thread starter Thread starter filfat
  • Start date Start date
  • Views Views 5,119,878
  • Replies Replies 21,104
  • Likes Likes 29
I can already tell you of a 85% possibility of a 5.7.0 release before december of 2015. Maybe even earlier
It's December. Where's my hax?
Can someone compile this and host it for me please? I'm kind of n00b at this stuff but I really want to try this generator.
Don't you say enough bullshit without needing that generator? :P
 
Can someone compile this and host it for me please? I'm kind of n00b at this stuff but I really want to try this generator.
Well, I tried! ^^
The compiler spits out a strange operator error about this one: "<<" but I don't even use them! :P

I'm not interested to continue, but maybe someone else wants to?

Code:
#include "loader.h"

// Save this file as $(libwiiu_root)/examples/helloworld/src/loader.c

const char* Month[] = {
    "January",
    "February",
    "March",
    "April",
    "May",
    "June",
    "July",
    "August",
    "September",
    "October",
    "November",
    "December",
};

unsigned int rand()
{
    unsigned int coreinit_handle;
    unsigned int (*OSScreenGetBufferSizeEx)(int bufferNum);

    OSDynLoad_Acquire("coreinit.rpl", &coreinit_handle);
    OSDynLoad_FindExport(coreinit_handle, 0, "OSScreenGetBufferSizeEx", &OSScreenGetBufferSizeEx);

    return 0;//(unsigned int)( ( (coreinit_handle / &OSScreenGetBufferSizeEx * 2) - 0xC2588633) );
}

void _start()
{
    unsigned int coreinit_handle;
    unsigned int snprintf_handle;

    char buffer[200];

    int (*snprintf)(char* buf, int n, char* format, ... );

    OSDynLoad_Acquire("coreinit.rpl", &coreinit_handle);
    OSDynLoad_FindExport(snprintf_handle, 0, "__os_snprintf", &snprintf);

    snprintf(
        buffer,
        sizeof(buffer),
        "I can already tell you of a %u%% possibility of a 5.%u.0 release before %s of %u. Maybe even earlier.\n",
            rand() % 100, 4 + rand() % 5,
            Month[rand() % 12],
            2015 + rand() % 10
    );

// Draw to the TV
    drawString(0, 0, buffer);

// Draw to the GamePad
    drawString(1, 0, buffer);
}

Please ignore my attempt at writing my own rand function! ^^
There must be some rand function in the OS' RPLs right?
Maybe an implementation of those'd make more sense!
;)
 
Well, I tried! ^^
The compiler spits out a strange operator error about this one: "<<" but I don't even use them! :P

I'm not interested to continue, but maybe someone else wants to?

Code:
#include "loader.h"

// Save this file as $(libwiiu_root)/examples/helloworld/src/loader.c

const char* Month[] = {
    "January",
    "February",
    "March",
    "April",
    "May",
    "June",
    "July",
    "August",
    "September",
    "October",
    "November",
    "December",
};

unsigned int rand()
{
    unsigned int coreinit_handle;
    unsigned int (*OSScreenGetBufferSizeEx)(int bufferNum);

    OSDynLoad_Acquire("coreinit.rpl", &coreinit_handle);
    OSDynLoad_FindExport(coreinit_handle, 0, "OSScreenGetBufferSizeEx", &OSScreenGetBufferSizeEx);

    return 0;//(unsigned int)( ( (coreinit_handle / &OSScreenGetBufferSizeEx * 2) - 0xC2588633) );
}

void _start()
{
    unsigned int coreinit_handle;
    unsigned int snprintf_handle;

    char buffer[200];

    int (*snprintf)(char* buf, int n, char* format, ... );

    OSDynLoad_Acquire("coreinit.rpl", &coreinit_handle);
    OSDynLoad_FindExport(snprintf_handle, 0, "__os_snprintf", &snprintf);

    snprintf(
        buffer,
        sizeof(buffer),
        "I can already tell you of a %u%% possibility of a 5.%u.0 release before %s of %u. Maybe even earlier.\n",
            rand() % 100, 4 + rand() % 5,
            Month[rand() % 12],
            2015 + rand() % 10
    );

// Draw to the TV
    drawString(0, 0, buffer);

// Draw to the GamePad
    drawString(1, 0, buffer);
}

Please ignore my attempt at writing my own rand function! ^^
There must be some rand function in the OS' RPLs right?
Maybe an implementation of those'd make more sense!
;)
so you actually really wanted to make the bullshitinator a real thing, and to add insult to injury you would make it run on the wiiu so those asking the question wouldnt be able to run it to get their answer :P
 
Please ignore my attempt at writing my own rand function! ^^
There must be some rand function in the OS' RPLs right?
Maybe an implementation of those'd make more sense!
;)

If there's not, you could probably ask the Wii U for the current time or ticks, and then use that as a seed for whatever RNG algorithm you prefer. That assumes we know of such a function though.
 
so you actually really wanted to make the bullshitinator a real thing, and to add insult to injury you would make it run on the wiiu so those asking the question wouldnt be able to run it to get their answer :P
He asked for a payload file, so... ^^

--------------------- MERGED ---------------------------

If there's not, you could probably ask the Wii U for the current time or ticks, and then use that as a seed for whatever RNG algorithm you prefer. That assumes we know of such a function though.
Yeah, that's what I wanted to try! Couldn't find anything in the wiki though! :(
 
Well, I tried! ^^
The compiler spits out a strange operator error about this one: "<<" but I don't even use them! :P

I'm not interested to continue, but maybe someone else wants to?

Code:
#include "loader.h"

// Save this file as $(libwiiu_root)/examples/helloworld/src/loader.c

const char* Month[] = {
    "January",
    "February",
    "March",
    "April",
    "May",
    "June",
    "July",
    "August",
    "September",
    "October",
    "November",
    "December",
};

unsigned int rand()
{
    unsigned int coreinit_handle;
    unsigned int (*OSScreenGetBufferSizeEx)(int bufferNum);

    OSDynLoad_Acquire("coreinit.rpl", &coreinit_handle);
    OSDynLoad_FindExport(coreinit_handle, 0, "OSScreenGetBufferSizeEx", &OSScreenGetBufferSizeEx);

    return 0;//(unsigned int)( ( (coreinit_handle / &OSScreenGetBufferSizeEx * 2) - 0xC2588633) );
}

void _start()
{
    unsigned int coreinit_handle;
    unsigned int snprintf_handle;

    char buffer[200];

    int (*snprintf)(char* buf, int n, char* format, ... );

    OSDynLoad_Acquire("coreinit.rpl", &coreinit_handle);
    OSDynLoad_FindExport(snprintf_handle, 0, "__os_snprintf", &snprintf);

    snprintf(
        buffer,
        sizeof(buffer),
        "I can already tell you of a %u%% possibility of a 5.%u.0 release before %s of %u. Maybe even earlier.\n",
            rand() % 100, 4 + rand() % 5,
            Month[rand() % 12],
            2015 + rand() % 10
    );

// Draw to the TV
    drawString(0, 0, buffer);

// Draw to the GamePad
    drawString(1, 0, buffer);
}

Please ignore my attempt at writing my own rand function! ^^
There must be some rand function in the OS' RPLs right?
Maybe an implementation of those'd make more sense!
;)
Thanks, does it work online though? And if not, when will online support start?
 
If there's not, you could probably ask the Wii U for the current time or ticks, and then use that as a seed for whatever RNG algorithm you prefer. That assumes we know of such a function though.

OSGetTick() in coreinit.rpl returns (as far I remember) the system tick count.
 
  • Like
Reactions: daxtsu
If there's not, you could probably ask the Wii U for the current time or ticks, and then use that as a seed for whatever RNG algorithm you prefer. That assumes we know of such a function though.

randNum = (214013 * oldRandNum + 2541011) mod 2^32

There you go, MS Visual's random number function. Most easy to implement like... ever. First oldRandNum is the seed used for initialising the generator; You may use OSGetTick() there (credits to MN1 for that).
...Also, dont use the RNG for anything remotely secure.

M-maybe its best to just leave it be though, and not try to implement THAT printf >_<
 
Last edited by oPolo,
As nice as that sounds and as much as I would like that, there are a number of reasons why they shouldn't that have been stated in the past.

Let's first have a Userland + Kernel + IOSU combo that have all been patched in the latest firmware, and for which the devs are reasonably sure they have been patched intentionally (sometimes it happens that a "patch" is a result from a code change that wasn't done to stop the exploit but just done a different way, changed to some 3rd party code, etc).
 
Well I use can get my hands on an Arduino Uno from work, and have a Wii U on 5.3.2
Although I don't know about that Ethernet shield thing, what is it?

It's a thing you connect to your arduino, which has a ethernet port and a micro SD card slot, so it can read files without being connected to a PC.
 

Site & Scene News

Popular threads in this forum