[Info] source en/de code .loc file by html1

Results 1 to 10 of 10
  1. #1
    Account Upgraded | Title Enabled! nguyenhuy is offline
    MemberRank
    May 2006 Join Date
    Việt NamLocation
    744Posts

    [Info] source en/de code .loc file by html1

    here is 1/2 source to encode and decode .loc file .Wanna to have it ,contact me or html1(copyright by him) .
    // locFile.cpp : Defines the entry point for the console application.
    // locFile module for Audition
    // Author: Nguyen Truong Tho. Email: thont@live.com
    // Explaination:
    // Each byte in this file is crypted by xoring with 0x64
    // To see that, set break point at where Kernel.ReadFile is called,
    // then Set hardware break point at any byte in file buffer.
    // F9 and u will catch the ecrypt function
    // Welcome new moderator for Audition forum ^_^

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>

    int main(int argc, char *argv[])
    {
    FILE *fi = fopen(argv[0], "rb");
    FILE *fo = fopen(argv[1], "wb");
    // Read the file size
    fseek(fi, 0, SEEK_END);
    long fiSize = ftell(fi);

    ............


  2. #2
    Account Upgraded | Title Enabled! nguyenhuy is offline
    MemberRank
    May 2006 Join Date
    Việt NamLocation
    744Posts

    Re: source en/de code .loc file by html1

    oh yeh here's full code . This is a gift html1 for you :
    // locFile.cpp : Defines the entry point for the console application.
    // locFile module for Audition
    // Author: Nguyen Truong Tho. Email: thont@live.com
    // Explaination:
    // Each byte in this file is crypted by xoring with 0x64
    // To see that, set break point at where Kernel.ReadFile is called,
    // then Set hardware break point at any byte in file buffer.
    // F9 and u will catch the ecrypt function
    // Welcome new moderator for Audition forum ^_^

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>

    int main(int argc, char *argv[])
    {
    FILE *fi = fopen(argv[0], "rb");
    FILE *fo = fopen(argv[1], "wb");
    // Read the file size
    fseek(fi, 0, SEEK_END);
    long fiSize = ftell(fi);
    fseek(fi, 0, SEEK_SET);
    // Other way: long fiSize = filelength(fileno(fi));

    char buff[fiSize];
    fread(buff, 1, fiSize, fi);

    // decrypt
    for (int i = 0; i < fiSize; i++) *(buff + i) ^= 0x64;

    fwrite(buff, fiSize, 1, fo);
    // free the memory
    delete [] buff;

    fclose(fi);
    fclose(fo);
    return 0;
    }

  3. #3
    Member HTML1 is offline
    MemberRank
    Feb 2007 Join Date
    98Posts

    Re: source en/de code .loc file by html1

    Good job Nguyen Huy.
    Hope all of u enjoy some simple code i wrote.
    Welcome new moderator!

  4. #4
    Omega iNs@nE is offline
    MemberRank
    Jun 2006 Join Date
    HereLocation
    9,537Posts

    Re: source en/de code .loc file by html1

    Good Work. Keep sharing.

    But please remember to add topic tags. That will make it very easy for members to differentiate between posts and saves a lot of times.

    Thank YOu.

  5. #5
    OLDER BRO matrixane is offline
    MemberRank
    Nov 2005 Join Date
    ArgentinaLocation
    1,187Posts

    Re: [Info] source en/de code .loc file by html1

    and the finish tools guys..where? :P ..cant open tt..program MS.DOS. T_T .. try at all OS

  6. #6
    Account Upgraded | Title Enabled! nguyenhuy is offline
    MemberRank
    May 2006 Join Date
    Việt NamLocation
    744Posts

    Re: [Info] source en/de code .loc file by html1

    Quote Originally Posted by matrixane View Post
    and the finish tools guys..where? :P ..cant open tt..program MS.DOS. T_T .. try at all OS
    oh my god....... it's code ,not packed tool -_-"

  7. #7
    Member HTML1 is offline
    MemberRank
    Feb 2007 Join Date
    98Posts

    Re: [Info] source en/de code .loc file by html1

    I wrote this tool in Visual C++, u need it to complie, or just change some line, u can complie it with turbo c++.
    in pascal, i can rewrite it like this :D

    const
    _fi = "in";
    _fo= "out";
    var fi, fo: file of char;
    ch:char;
    begin
    assign(fi,_fi);reset(fi);
    assign(fo, _fo);rewrite(fo);
    while not eof(f){
    read(fi, ch);
    ch := ch xor 0x64;
    write(fo,ch);
    }
    close(fi);close(fo);
    end.


  8. #8
    Omega iNs@nE is offline
    MemberRank
    Jun 2006 Join Date
    HereLocation
    9,537Posts

    Re: [Info] source en/de code .loc file by html1

    and the finish tools guys..where? :P ..cant open tt..program MS.DOS. T_T .. try at all OS
    Run Turbo or Visual C ++. Check for errors. Compile it. Test the result.

    Then execute it and save as an executable. Voila! You have your running MS-DOS program.

  9. #9
    Account Upgraded | Title Enabled! nguyenhuy is offline
    MemberRank
    May 2006 Join Date
    Việt NamLocation
    744Posts

    Re: [Info] source en/de code .loc file by html1

    @mod : i think u should a download&guide topic and sticky it

  10. #10
    Omega iNs@nE is offline
    MemberRank
    Jun 2006 Join Date
    HereLocation
    9,537Posts

    Re: [Info] source en/de code .loc file by html1

    Yes. I am looking for the best guide out there. If I do not find one, then I will personally write one and then sticky it up.

    Currenlty one for the 1.6 version is already stickied - I'll soon post up a 1.7 one too.



Advertisement