Enable Serialkey For Gunz Source code

Page 1 of 2 12 LastLast
Results 1 to 25 of 26
  1. #1
    Account Upgraded | Title Enabled! razi46 is offline
    MemberRank
    Dec 2007 Join Date
    697Posts

    Enable Serialkey For Gunz Source code

    Hey, Ive been looking for the serialkey enabled code for gunz source. anyone care to share?


  2. #2
    Valued Member SandOfTime is offline
    MemberRank
    Mar 2011 Join Date
    112Posts

    Re: Enable Serialkey For Gunz Source code

    follow _Brazil build method

  3. #3
    Account Upgraded | Title Enabled! razi46 is offline
    MemberRank
    Dec 2007 Join Date
    697Posts

    Re: Enable Serialkey For Gunz Source code

    dude? those words won't be able to solve anything. can you imagine if you asked for a loading screen, and they give you a blank picture, you wouldn't like it right? so please make more sense out of what you say.

  4. #4
    Developer / Patch Finder Tankado is offline
    MemberRank
    Oct 2011 Join Date
    The NetherlandsLocation
    451Posts

    Re: Enable Serialkey For Gunz Source code

    do u want for kor ?

  5. #5
    Account Upgraded | Title Enabled! razi46 is offline
    MemberRank
    Dec 2007 Join Date
    697Posts

    Re: Enable Serialkey For Gunz Source code

    sure tankado.

  6. #6
    Developer / Patch Finder Tankado is offline
    MemberRank
    Oct 2011 Join Date
    The NetherlandsLocation
    451Posts

    Re: Enable Serialkey For Gunz Source code

    http://forum.ragezone.com/f245/add-k...7/#post7196042

    may i do stopid thing its good stuff but here.

  7. #7
    Fuck Army. sahar042 is offline
    MemberRank
    Jul 2009 Join Date
    833Posts

    Re: Enable Serialkey For Gunz Source code

    Quote Originally Posted by SandOfTime View Post
    follow _Brazil build method
    I don't have serial key enabled on BRZ & KOR.

  8. #8
    Valued Member SandOfTime is offline
    MemberRank
    Mar 2011 Join Date
    112Posts

    Re: Enable Serialkey For Gunz Source code

    Quote Originally Posted by sahar042 View Post
    I don't have serial key enabled on BRZ & KOR.
    use the dawson's source code, in BRZ have it.

  9. #9
    Doggie And Rice. Military is offline
    MemberRank
    Jun 2009 Join Date
    Here and AboutLocation
    3,302Posts

    Re: Enable Serialkey For Gunz Source code

    Quote Originally Posted by razi46 View Post
    dude? those words won't be able to solve anything. can you imagine if you asked for a loading screen, and they give you a blank picture, you wouldn't like it right? so please make more sense out of what you say.
    That's a common sense solution x_x.

  10. #10
    Currently Stoned ! Ronny786 is offline
    MemberRank
    Dec 2011 Join Date
    Lost WorldLocation
    984Posts

    Re: Enable Serialkey For Gunz Source code

    Take this and replace everything

    CGLEncryption.cpp :

    /**********************************************************************
    GunZ Launcher Enctiption

    file : CGLEncription.cpp
    desc : °ÇÁî ½ÇÇà¿¡ ÇÊ¿äÇÑ ½Ã¸®¾ó ۸¦ ¾Ïȣȭ ÇÑ´Ù.
    ***********************************************************************/



    #include "stdafx.h"
    #include "CGLEncription.h"
    #include "MCrypt.h"
    #include <Mmsystem.h>
    #include <math.h>

    #define DATA_MSG_INTERNATIONAL "I_hate_hacker"
    #define DATA_MSG_LAUNCHDEV "I_love_MAIET"
    #define DATA_MSG_TEST "Find_Me"

    /*
    // CreateSerialKey
    bool CGLEncription::CreateSerialKey()
    {
    // Create random seed
    unsigned char szSerialKey[ MAX_BUF];
    srand( (unsigned)time( NULL));
    for ( int i = 0; i < MAX_BUF; i++)
    szSerialKey[ i] = (unsigned char)( rand() % 256);


    // Get limited time
    DWORD dwLimitedTime = timeGetTime() + 60000;
    char szTime[ 20];
    memset( szTime, 0, sizeof(szTime));
    sprintf( szTime, "%X", dwLimitedTime);


    // Get Disk serial number
    char szDiskLabel[ 128];
    char szFileSysName[ 128];
    DWORD dwDiskSerial;
    DWORD dwMaxNameLength = 0;
    DWORD dwFileSystemFlags = 0;
    char szDirectory[ 256];
    GetCurrentDirectory( sizeof( szDirectory), szDirectory);
    szDirectory[ 3] = 0;
    GetVolumeInformation( szDirectory, szDiskLabel, sizeof(szDiskLabel)-1, &dwDiskSerial,
    &dwMaxNameLength,
    &dwFileSystemFlags,
    szFileSysName,
    sizeof( szFileSysName) - 1);
    char szDiskSerial[ 20];
    memset( szDiskSerial, 0, sizeof(szDiskSerial));
    sprintf( szDiskSerial, "%X", dwDiskSerial);


    // Set Data
    char szData[ 20];
    memset( szData, 0, sizeof(szData));
    strcpy( szData, DATA_MSG_LAUNCHDEV);


    // Mixing data
    int nPos = szSerialKey[ MAX_BUF - 1] % 10;
    for ( i = 0; i < 20; i++)
    {
    int nAbsPos = (int)((i / 10) * 10) + nPos;

    szSerialKey[ nAbsPos] = (unsigned char)szTime[ nAbsPos];
    szSerialKey[ 20 + nAbsPos] = (unsigned char)szDiskSerial[ nAbsPos];
    szSerialKey[ 40 + nAbsPos] = (unsigned char)szData[ nAbsPos];

    nPos = ( nPos + 7) % 10;
    }


    // Get CRC
    szSerialKey[ MAX_BUF - 2] = 0;
    for ( i = 0; i < 60; i++)
    szSerialKey[ MAX_BUF - 2] += szSerialKey[ i];


    // Encrypt
    MSeed cSeed;
    unsigned char byKey[ SEED_USER_KEY_LEN];
    memset( byKey, 0, sizeof( byKey));
    unsigned char byIV[ SEED_BLOCK_LEN];
    memset( byIV, 0, sizeof( byIV));
    for ( int i = 0; i < 20; i++)
    {
    if ( i < SEED_USER_KEY_LEN)
    byKey[ i] = szSerialKey[ 200 + i];
    if ( i < SEED_BLOCK_LEN)
    byIV[ i] = szSerialKey[ 220 + i];
    }
    if ( !cSeed.InitKey( byKey, byIV))
    return false;

    DWORD dwLength;
    unsigned char szCriptSerialKey[ MAX_BUF];
    if ( !cSeed.Encrypt( szSerialKey, 60, szCriptSerialKey, &dwLength))
    return false;

    memcpy( szSerialKey, szCriptSerialKey, dwLength);
    szSerialKey[ MAX_BUF - 3] = (unsigned char)dwLength;


    // Write to clip board
    bool bRetVal = false;
    if ( ::OpenClipboard( NULL))
    {
    HGLOBAL hMem;
    hMem = GlobalAlloc( GMEM_DDESHARE, MAX_BUF + 1);
    char* buffer = (char*)GlobalLock( hMem);
    memcpy( buffer, szSerialKey, MAX_BUF);
    GlobalUnlock( hMem);

    bRetVal = ( ::SetClipboardData( CF_GUNZLAUNCHER, hMem) == NULL) ? false : true;

    ::CloseClipboard();
    }


    return bRetVal;
    }
    */

    // atodw
    DWORD atodw( const char* szValue)
    {
    int nCount = 0;
    DWORD dwValue = 0;

    while ( *(szValue + nCount) != 0)
    {
    dwValue *= 16;

    if ( ( *(szValue + nCount) >= '0') && ( *(szValue + nCount) <= '9'))
    dwValue += *(szValue + nCount) - '0';
    else
    dwValue += *(szValue + nCount) - 'A' + 10;

    nCount++;
    }

    return dwValue;
    }


    // GetEncription
    int CGLEncription::Decription( void)
    {
    unsigned char szSerialKey[ MAX_BUF];
    memset( szSerialKey, 0, MAX_BUF);


    // Read from clipboard
    if ( ! ::OpenClipboard( NULL))
    {

    mlog( "Serialkey error : 201\n");
    MessageBox(NULL, "Please start from Launcher.", NULL, MB_OK | MB_ICONERROR);
    return false;
    }

    if ( !IsClipboardFormatAvailable( CF_GUNZLAUNCHER))
    {
    mlog( "Serialkey error : 202\n");
    MessageBox(NULL, "Please start from Launcher.", NULL, MB_OK | MB_ICONERROR);
    return false;
    }

    memcpy( szSerialKey, (unsigned char*)GetClipboardData( CF_GUNZLAUNCHER), MAX_BUF);

    ::CloseClipboard();


    // Variables;
    char szTime[ 20];
    memset( szTime, 0, sizeof( szTime));

    char szDiskSerial[ 20];
    memset( szDiskSerial, 0, sizeof( szDiskSerial));

    char szData[ 20];
    memset( szData, 0, sizeof( szData));


    // Decrypt
    MSeed cSeed;
    unsigned char byKey[ SEED_USER_KEY_LEN];
    memset( byKey, 0, sizeof( byKey));
    unsigned char byIV[ SEED_BLOCK_LEN];
    memset( byIV, 0, sizeof( byIV));
    for ( int i = 0; i < 20; i++)
    {
    if ( i < SEED_USER_KEY_LEN)
    byKey[ i] = szSerialKey[ 200 + i];
    if ( i < SEED_BLOCK_LEN)
    byIV[ i] = szSerialKey[ 220 + i];
    }
    if ( !cSeed.InitKey( byKey, byIV))
    {
    mlog( "Serialkey error : 203\n");
    MessageBox(NULL, "Please start from Launcher.", NULL, MB_OK | MB_ICONERROR);
    return false;
    }

    DWORD dwLength;
    unsigned char szCryptSerialKey[ MAX_BUF];
    if ( !cSeed.Decrypt( szSerialKey, szSerialKey[ MAX_BUF - 3], szCryptSerialKey, &dwLength))
    {
    mlog( "Serialkey error : 204\n");
    MessageBox(NULL, "Please start from Launcher.", NULL, MB_OK | MB_ICONERROR);
    return false;
    }

    memcpy( szSerialKey, szCryptSerialKey, dwLength);



    // Check CRC
    unsigned char byCRC = 0;
    for ( i = 0; i < 60; i++)
    byCRC += szSerialKey[ i];

    if ( byCRC != szSerialKey[ MAX_BUF - 2])
    {
    mlog( "Serialkey error : 205\n");
    MessageBox(NULL, "Please start from Launcher.", NULL, MB_OK | MB_ICONERROR);
    return false;
    }


    // Decoding
    int nPos = szSerialKey[ 60] % 10;
    for ( int i = 0; i < 20; i++)
    {
    int nAbsPos = (int)((i / 10) * 10) + nPos;

    szTime[ nAbsPos] = (char)szSerialKey[ nAbsPos];
    szDiskSerial[ nAbsPos] = (char)szSerialKey[ 20 + nAbsPos];
    szData[ nAbsPos] = (char)szSerialKey[ 40 + nAbsPos];

    nPos = ( nPos + 3) % 10;
    }


    // Check time
    DWORD dwTime = atodw( szTime);
    DWORD dwCurrTime = timeGetTime();
    if ( (DWORD)atodw( szTime) < timeGetTime())
    {
    mlog( "Serialkey error : 206\n");
    MessageBox(NULL, "Please start from Launcher.", NULL, MB_OK | MB_ICONERROR);
    return false;
    }


    // Check serial number
    char szDiskLabel[ 128];
    char szFileSysName[ 128];
    DWORD dwDiskSerial;
    DWORD dwMaxNameLength = 0;
    DWORD dwFileSystemFlags = 0;
    char szDirectory[ 256];
    GetCurrentDirectory( sizeof( szDirectory), szDirectory);
    szDirectory[ 3] = 0;
    GetVolumeInformation( szDirectory, szDiskLabel, sizeof(szDiskLabel)-1, &dwDiskSerial,
    &dwMaxNameLength,
    &dwFileSystemFlags,
    szFileSysName,
    sizeof( szFileSysName) - 1);

    if ( (DWORD)atodw( szDiskSerial) != dwDiskSerial)
    {
    mlog( "Serialkey error : 207\n");
    MessageBox(NULL, "Please start from Launcher.", NULL, MB_OK | MB_ICONERROR);
    return false;
    }


    // Check Data
    if ( strcmp( szData, DATA_MSG_INTERNATIONAL) == 0)
    return GLE_LAUNCH_INTERNATIONAL;
    else if ( strcmp( szData, DATA_MSG_LAUNCHDEV) == 0)
    return GLE_LAUNCH_DEVELOP;
    else if ( strcmp( szData, DATA_MSG_TEST) == 0)
    return GLE_LAUNCH_TEST;


    mlog( "Serialkey error : 208\n");
    MessageBox(NULL, "Please start from Launcher.", NULL, MB_OK | MB_ICONERROR);
    return false;
    }



    CGLEncryption.h :

    /**********************************************************************
    GunZ Launcher Enctiption

    file : CGLEncription.h
    desc : °ÇÁî ½ÇÇà¿¡ ÇÊ¿äÇÑ ½Ã¸®¾ó ۸¦ ¾Ïȣȭ ÇÑ´Ù.
    ***********************************************************************/


    #ifndef _GLENCRIPTION_
    #define _GLENCRIPTION_


    #define MAX_BUF 255
    #define CF_GUNZLAUNCHER 0x0562

    #define GLE_LAUNCH_INTERNATIONAL 0xFFFF
    #define GLE_LAUNCH_DEVELOP 0xFFFE
    #define GLE_LAUNCH_TEST 0xFFFD


    class CGLEncription
    {
    public:
    // bool CreateSerialKey();

    int Decription( void);
    };
    #endif

  11. #11
    Developer / Patch Finder Tankado is offline
    MemberRank
    Oct 2011 Join Date
    The NetherlandsLocation
    451Posts

    Re: Enable Serialkey For Gunz Source code

    @Ronny786 - there is a easyer way.
    hello,

    I found the way to add serialkey in KOR.
    I know lots of people try this and fail.
    Some People ask me for dont release it.

    Add KOR Serail Key
    Open: ZApplication.cpp

    Go To line: 218
    PHP Code:
    Change: case MC_KOREA:
    to//case MC_KOREA: 

    Go To line: 268
    PHP Code:
    add after MC_INDIA a enter 
    Now u on line: 269
    PHP Code:
    Put: case MC_KOREA
    And u done


    - Tankado

  12. #12
    Fuck Army. sahar042 is offline
    MemberRank
    Jul 2009 Join Date
    833Posts

    Re: Enable Serialkey For Gunz Source code

    Quote Originally Posted by Ronny786 View Post
    Take this and replace everything

    CGLEncryption.cpp :






    CGLEncryption.h :
    Not working on BRZ.

    Quote Originally Posted by Tankado View Post
    @Ronny786 - there is a easyer way.
    hello,

    I found the way to add serialkey in KOR.
    I know lots of people try this and fail.
    Some People ask me for dont release it.

    Add KOR Serail Key
    Open: ZApplication.cpp

    Go To line: 218
    PHP Code:
    Change: case MC_KOREA:
    to//case MC_KOREA: 

    Go To line: 268
    PHP Code:
    add after MC_INDIA a enter 
    Now u on line: 269
    PHP Code:
    Put: case MC_KOREA
    And u done


    - Tankado
    Not working.
    I have in this place "case MC_BRAZIL:"
    And i am using BRZ build it's not working.

  13. #13
    Account Upgraded | Title Enabled! razi46 is offline
    MemberRank
    Dec 2007 Join Date
    697Posts

    Re: Enable Serialkey For Gunz Source code

    Thanks for the solution guys! Now i got it working. thanks anyways alright.
    -close thread-

  14. #14
    Currently Stoned ! Ronny786 is offline
    MemberRank
    Dec 2011 Join Date
    Lost WorldLocation
    984Posts

    Re: Enable Serialkey For Gunz Source code

    Quote Originally Posted by razi46 View Post
    Thanks for the solution guys! Now i got it working. thanks anyways alright.
    -close thread-
    Always put credits of solution !!

  15. #15
    Developer / Patch Finder Tankado is offline
    MemberRank
    Oct 2011 Join Date
    The NetherlandsLocation
    451Posts

    Re: Enable Serialkey For Gunz Source code

    @sahar042 - OMG u ...., i have tell its for kor read my post

  16. #16
    Account Upgraded | Title Enabled! razi46 is offline
    MemberRank
    Dec 2007 Join Date
    697Posts

    Re: Enable Serialkey For Gunz Source code

    Thanks to Ronny786 . Your code worked!

  17. #17
    Proficient Member iDelta123 is offline
    MemberRank
    Apr 2012 Join Date
    The NetherlandsLocation
    154Posts

    Re: Enable Serialkey For Gunz Source code

    You guys are all wrong.

    ZApplication.cpp
    case MC_KOREA:

    Goodluck.

  18. #18
    Developer / Patch Finder Tankado is offline
    MemberRank
    Oct 2011 Join Date
    The NetherlandsLocation
    451Posts

    Re: Enable Serialkey For Gunz Source code

    @iDelta123 - i not wrong what u said is the same what i have 0-0

  19. #19
    Apprentice GeorgeQet is offline
    MemberRank
    Aug 2012 Join Date
    9Posts

    Re: Enable Serialkey For Gunz Source code

    Quote Originally Posted by tankado View Post
    @sahar042 - omg u ...., i have tell its for kor read my post
    Sahar said he put CASE_BRAZIL; and still not working on Brazil build.

  20. #20
    Currently Stoned ! Ronny786 is offline
    MemberRank
    Dec 2011 Join Date
    Lost WorldLocation
    984Posts

    Re: Enable Serialkey For Gunz Source code

    GUYS, PROBLEM IS FIXED !!!!!! NO POINT IN ARGuING NOW ! CLOSE THREAD ?

  21. #21
    Apprentice GeorgeQet is offline
    MemberRank
    Aug 2012 Join Date
    9Posts

    Re: Enable Serialkey For Gunz Source code

    Quote Originally Posted by Ronny786 View Post
    GUYS, PROBLEM IS FIXED !!!!!! NO POINT IN ARGuING NOW ! CLOSE THREAD ?
    You released a shit.
    Everyone want on BRZ Build and not KOR build.

  22. #22
    Currently Stoned ! Ronny786 is offline
    MemberRank
    Dec 2011 Join Date
    Lost WorldLocation
    984Posts

    Re: Enable Serialkey For Gunz Source code

    Quote Originally Posted by GeorgeQet View Post
    You released a shit.
    Everyone want on BRZ Build and not KOR build.
    It also works in BRZ mode.. I tested it !!! Its shit for you, but this shit helped the guy who wanted serialkey enabled , so i dont care bout others !!!!!

  23. #23
    Hi, I'm Omar! Vusion is offline
    MemberRank
    Jan 2011 Join Date
    HereLocation
    1,658Posts

    Re: Enable Serialkey For Gunz Source code

    Quote Originally Posted by GeorgeQet View Post
    You released a shit.
    Everyone want on BRZ Build and not KOR build.
    It's already on BRZ by default.

  24. #24
    Currently Stoned ! Ronny786 is offline
    MemberRank
    Dec 2011 Join Date
    Lost WorldLocation
    984Posts

    Re: Enable Serialkey For Gunz Source code

    Quote Originally Posted by Vusion View Post
    It's already on BRZ by default.
    <3 Vusion

  25. #25
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    Re: Enable Serialkey For Gunz Source code

    Quote Originally Posted by GeorgeQet View Post
    You released a shit.
    Everyone want on BRZ Build and not KOR build.
    Lol? GeorgeQet? Really? Whoever you are it's not me.



Page 1 of 2 12 LastLast

Advertisement