Hacking [Semi-working] NFS2ISO2NFS - convert nfs to iso and back

Tock46

Active Member
Newcomer
Joined
Aug 21, 2017
Messages
35
Trophies
0
Age
29
XP
102
Country
Germany
No idea how to make it not use admin privileges^^. Here have fun compiling it yourself if you want to :P

Code:
#include <stdio.h>
#include <stdlib.h>

int main()
{

    unsigned char length1; // Length of section 1 bytse //
    unsigned char length2; // Length of section 2 bytse //
    unsigned char length3; // Length of section 3 bytse //
    unsigned char length4; // Length of section 4 bytse //
    unsigned char length5; // Length of section 5 bytse //
    unsigned char length6; // Length of section 6 bytse //
    unsigned char length7; // Length of section 7 bytse //
    unsigned char length8; // Length of section 8 bytse //
    unsigned int Filelength; // Length of the file to be loaded o really? //
    unsigned int counter;

    FILE *oldSavegame;
    FILE *Content;

    length1 = 0x00;
    length2 = 0x00;
    length3 = 0x00;
    length4 = 0x00;
    length5 = 0x00;
    length6 = 0x00;
    length7 = 0x00;
    length8 = 0x00;
    counter = 0x00;

    oldSavegame=fopen("fw.img","rb");
    Content=fopen("newfw.img","wb");

    fseek(oldSavegame,0,SEEK_END);

    Filelength = ftell(oldSavegame);

    fseek(oldSavegame,0,SEEK_SET);

    while (ftell(oldSavegame) != Filelength)
    {
    fread (&length1,1,1,oldSavegame);

    if (length8 == 0xD0 && length7 == 0x01 && length6 == 0x20 && length5 == 0x00 && length4 == 0xE0 && length3 == 0x00 && length2 == 0x20 && length1 == 0x07)
    {
        length1 = 0x00;
        counter++;
    }
    length8 = length7;
    length7 = length6;
    length6 = length5;
    length5 = length4;
    length4 = length3;
    length3 = length2;
    length2 = length1;

    fwrite (&length1,1,1,Content);

    }

    if (counter > 1)
    {
        printf("found more than one location. Maybe it won't work. Tell Tock about the game.\nPress enter to exit.");
        getchar();
    }

    return 0;
}
 

piratesephiroth

I wish I could read
Member
Joined
Sep 5, 2013
Messages
3,453
Trophies
1
Age
102
XP
3,186
Country
Brazil
No idea how to make it not use admin privileges^^. Here have fun compiling it yourself if you want to :P

Code:
#include <stdio.h>
#include <stdlib.h>

int main()
{

    unsigned char length1; // Length of section 1 bytse //
    unsigned char length2; // Length of section 2 bytse //
    unsigned char length3; // Length of section 3 bytse //
    unsigned char length4; // Length of section 4 bytse //
    unsigned char length5; // Length of section 5 bytse //
    unsigned char length6; // Length of section 6 bytse //
    unsigned char length7; // Length of section 7 bytse //
    unsigned char length8; // Length of section 8 bytse //
    unsigned int Filelength; // Length of the file to be loaded o really? //
    unsigned int counter;

    FILE *oldSavegame;
    FILE *Content;

    length1 = 0x00;
    length2 = 0x00;
    length3 = 0x00;
    length4 = 0x00;
    length5 = 0x00;
    length6 = 0x00;
    length7 = 0x00;
    length8 = 0x00;
    counter = 0x00;

    oldSavegame=fopen("fw.img","rb");
    Content=fopen("newfw.img","wb");

    fseek(oldSavegame,0,SEEK_END);

    Filelength = ftell(oldSavegame);

    fseek(oldSavegame,0,SEEK_SET);

    while (ftell(oldSavegame) != Filelength)
    {
    fread (&length1,1,1,oldSavegame);

    if (length8 == 0xD0 && length7 == 0x01 && length6 == 0x20 && length5 == 0x00 && length4 == 0xE0 && length3 == 0x00 && length2 == 0x20 && length1 == 0x07)
    {
        length1 = 0x00;
        counter++;
    }
    length8 = length7;
    length7 = length6;
    length6 = length5;
    length5 = length4;
    length4 = length3;
    length3 = length2;
    length2 = length1;

    fwrite (&length1,1,1,Content);

    }

    if (counter > 1)
    {
        printf("found more than one location. Maybe it won't work. Tell Tock about the game.\nPress enter to exit.");
        getchar();
    }

    return 0;
}
yeah you know, "I trust everyone. I just don't trust the devil inside them", heheh
 

piratesephiroth

I wish I could read
Member
Joined
Sep 5, 2013
Messages
3,453
Trophies
1
Age
102
XP
3,186
Country
Brazil
No idea how to make it not use admin privileges^^. Here have fun compiling it yourself if you want to :P

Code:
#include <stdio.h>
#include <stdlib.h>

int main()
{

    unsigned char length1; // Length of section 1 bytse //
    unsigned char length2; // Length of section 2 bytse //
    unsigned char length3; // Length of section 3 bytse //
    unsigned char length4; // Length of section 4 bytse //
    unsigned char length5; // Length of section 5 bytse //
    unsigned char length6; // Length of section 6 bytse //
    unsigned char length7; // Length of section 7 bytse //
    unsigned char length8; // Length of section 8 bytse //
    unsigned int Filelength; // Length of the file to be loaded o really? //
    unsigned int counter;

    FILE *oldSavegame;
    FILE *Content;

    length1 = 0x00;
    length2 = 0x00;
    length3 = 0x00;
    length4 = 0x00;
    length5 = 0x00;
    length6 = 0x00;
    length7 = 0x00;
    length8 = 0x00;
    counter = 0x00;

    oldSavegame=fopen("fw.img","rb");
    Content=fopen("newfw.img","wb");

    fseek(oldSavegame,0,SEEK_END);

    Filelength = ftell(oldSavegame);

    fseek(oldSavegame,0,SEEK_SET);

    while (ftell(oldSavegame) != Filelength)
    {
    fread (&length1,1,1,oldSavegame);

    if (length8 == 0xD0 && length7 == 0x01 && length6 == 0x20 && length5 == 0x00 && length4 == 0xE0 && length3 == 0x00 && length2 == 0x20 && length1 == 0x07)
    {
        length1 = 0x00;
        counter++;
    }
    length8 = length7;
    length7 = length6;
    length6 = length5;
    length5 = length4;
    length4 = length3;
    length3 = length2;
    length2 = length1;

    fwrite (&length1,1,1,Content);

    }

    if (counter > 1)
    {
        printf("found more than one location. Maybe it won't work. Tell Tock about the game.\nPress enter to exit.");
        getchar();
    }

    return 0;
}
I just added a few more messages, a title and this one doesn't require admin privileges (didn't really test the patched vc yet)
 

Attachments

  • wiivcsigpatcher.zip
    5 KB · Views: 267

Tock46

Active Member
Newcomer
Joined
Aug 21, 2017
Messages
35
Trophies
0
Age
29
XP
102
Country
Germany
Thanks^^. You could always include it into the nfs2iso2nfs patcher after you confirmed it working.

Also just to make sure: you guys still need to extract the fake signed ticket and tmd from the ISO.

Edit: You used "now found" instead of not found for the fw.img file^^.
 
Last edited by Tock46,

piratesephiroth

I wish I could read
Member
Joined
Sep 5, 2013
Messages
3,453
Trophies
1
Age
102
XP
3,186
Country
Brazil
Thanks^^. You could always include it into the nfs2iso2nfs patcher after you confirmed it working.

Also just to make sure: you guys still need to extract the fake signed ticket and tmd from the ISO.

Edit: You used "now found" instead of not found for the fw.img file^^.
lol, fixed now
 

VinsCool

Persona Secretiva Felineus
Global Moderator
Joined
Jan 7, 2014
Messages
14,523
Trophies
3
Location
Another World
Website
www.gbatemp.net
XP
24,141
Country
Canada
  • Like
Reactions: ploggy
D

Deleted User

Guest
What about syscheck?
What does it say now?
And does running the HBC through a save exploit do the same thing?
I don't think you could load homebrew with sploits. It seems that there is some sort of lock down... Hang on let me see if I can load anything with smashstack (besides the hbc installer because that doesn't work)
 
General chit-chat
Help Users
    SylverReZ @ SylverReZ: Hope they made lots of spaget