The new Wii's encryption method changed?

Discussion in 'Wii - Hacking' started by thiefstar, Mar 23, 2010.

Mar 23, 2010
  1. thiefstar
    OP

    Newcomer thiefstar Member

    Joined:
    Sep 13, 2009
    Messages:
    48
    Country:
    Japan
    hi,
    I have compiled these


    CODE#include "stdafx.h"
    #include "stdlib.h"
    #include "memory.h"

    static int __sysconf_buffer_txt_decrypted = 0; // When 0, perfect decryption, when 1, 2 byte reencryption.
    static char __sysconf_txt_buffer[0x101];

    int __SYSCONF_EndOfTextOffset(void){
    ÂÂÂÂint i;
    ÂÂÂÂint offset = 0;
    ÂÂÂÂ
    ÂÂÂÂfor (i = 0; i < 0x100; i++)
    ÂÂÂÂÂÂÂÂif (!memcmp(__sysconf_txt_buffer+i, "\r\n", 2)) // searching for wrong line break?
    ÂÂÂÂÂÂÂÂÂÂÂÂoffset = i;
    ÂÂÂÂÂÂÂÂ
    ÂÂÂÂoffset += 2; //Only 2 bytes that the function returns.
    ÂÂÂÂreturn offset;
    }

    void __SYSCONF_DecryptEncryptTextBuffer(void)
    {
    ÂÂÂÂunsigned long key = 0x73B5DBFA; // Magic stuffz here zomg
    ÂÂÂÂint i;
    ÂÂÂÂchar *end = (char*)__sysconf_txt_buffer;
    ÂÂÂÂ
    ÂÂÂÂif (__sysconf_buffer_txt_decrypted)
    ÂÂÂÂÂÂÂÂend += __SYSCONF_EndOfTextOffset();
    ÂÂÂÂ
    ÂÂÂÂfor(i=0; i
     
  2. giantpune

    Member giantpune GBAtemp Addict

    Joined:
    Apr 10, 2009
    Messages:
    2,860
    Country:
    United States
    nope. it looks like you just arent telling it to decrypt the full buffer. something is stopping before it does the full size. make sure to tell it to use 0x100 just to be safe.
     
  3. thiefstar
    OP

    Newcomer thiefstar Member

    Joined:
    Sep 13, 2009
    Messages:
    48
    Country:
    Japan

    Thanks, got it working. [​IMG]
     

Share This Page