The new Wii's encryption method changed?

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

  1. thiefstar
    OP

    thiefstar Member

    Newcomer
    1
    Sep 13, 2009
    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

    giantpune GBAtemp Addict

    Member
    2
    Apr 10, 2009
    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

    thiefstar Member

    Newcomer
    1
    Sep 13, 2009

    Thanks, got it working. [​IMG]
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice