WC3 Account Name Changer (C++)

This is a discussion on WC3 Account Name Changer (C++) within the Development forum part of the Software/Hardware category; This finds your warcraft 3 saved account name in WC3 memory (from the bnet login screen), tells you your account's ...


+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 10 of 17

Thread: WC3 Account Name Changer (C++)

  1. TyranO is offline Advanced Hacker



    TyranO has much to be proud of TyranO has much to be proud of TyranO has much to be proud of TyranO has much to be proud of TyranO has much to be proud of TyranO has much to be proud of TyranO has much to be proud of TyranO has much to be proud of TyranO has much to be proud of
    Join Date
    Aug 2008
    Posts
    326
    Downloads
    7
    Uploads
    0
    Rep Power
    7
    Reputation
    1148

    WC3 Account Name Changer (C++)

    This finds your warcraft 3 saved account name in WC3 memory (from the bnet login screen), tells you your account's name and allows you to modify it.

    The only use it had was to change the account name while making my ultimate tool, for the auto-join to bnet bot part.

    Compiler: DevC++

    #include <windows.h>
    #include <iostream>
    #include <Tlhelp32.h>

    using namespace std;

    void EnableDebugPriv()
    {
    HANDLE hToken;
    LUID sedebugnameValue;
    TOKEN_PRIVILEGES tkp;
    OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES |TOKEN_QUERY, &hToken);
    LookupPrivilegeValue( NULL, SE_DEBUG_NAME, &sedebugnameValue);
    tkp.PrivilegeCount = 1;tkp.Privileges[0].Luid = sedebugnameValue;
    tkp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
    AdjustTokenPrivileges(hToken, false, &tkp, sizeof(tkp), NULL, NULL);
    CloseHandle(hToken);
    }

    int main(int argc, char *argv[])
    {
    SetConsoleTitle("account.exe");
    EnableDebugPriv();
    TCHAR War3Name[32] = TEXT("Warcraft III");
    HWND hWar3 = FindWindow(War3Name, NULL);

    if(!hWar3)
    {
    cout << "Warcraft 3 was not found." << endl;
    system( "pause" );
    return 1;
    }

    DWORD pid;
    GetWindowThreadProcessId( hWar3, &pid );
    HANDLE hOpen = OpenProcess( PROCESS_ALL_ACCESS, false, pid );
    if( !hOpen )
    {
    cout << "Can't open Warcraft III." << endl;system( "pause" );
    return 1;
    }

    // Static address of saved account names in DWORD.
    DWORD Address = 15413504;
    DWORD Buffer = 0;
    DWORD WINAPI GetLastError(void);
    SIZE_T BytesRead = 0;

    for(;;)

    {

    char Name[16];
    Name[15] = 0;

    for( unsigned int i = 0; i < 15; i++ )
    {
    ReadProcessMemory( hOpen, (LPVOID)( Address + i ), &Buffer, 1, &BytesRead );
    Name[i] = Buffer;
    }

    cout << "Your current account name is: " << Name << endl << endl << "Please type in a new account name and press enter." << endl << endl;

    SIZE_T BytesWritten = 0;
    char NewName[16];
    memset(NewName, 0, 16 );
    cin.getline (NewName,16);

    for( unsigned int j = 0; j < 15; j++ )
    {
    WriteProcessMemory( hOpen, (LPVOID)(Address + j), (LPCVOID)(NewName+ j), 1, &BytesWritten );
    }

    cout << "\n";
    cout << "Your new account name is: " << NewName << endl << endl;

    }
    }
    Last edited by TyranO; 11-06-2008 at 04:28 AM.


  2. xiN
    xiN is offline The Almighty Frenchie
    xiN is a jewel in the rough xiN is a jewel in the rough xiN is a jewel in the rough xiN is a jewel in the rough
    Join Date
    Feb 2007
    Location
    Six feet under
    Posts
    1,710
    Downloads
    25
    Uploads
    4
    Rep Power
    5
    Reputation
    330
    So you mean that you can change your nickname?
    That's weird.
    Will everybody see this? or only the user of your program?

  3. risker is offline Banned User
    risker is a splendid one to behold risker is a splendid one to behold risker is a splendid one to behold risker is a splendid one to behold risker is a splendid one to behold risker is a splendid one to behold
    Join Date
    Oct 2008
    Location
    Australia
    Posts
    2,852
    Downloads
    2
    Uploads
    2
    Rep Power
    0
    Reputation
    671
    Does it just spoof it or what?
    If this actually changes the name its epic o.o

  4. Stroh's Avatar
    Stroh is offline Narf Narf


    Stroh has a brilliant future Stroh has a brilliant future Stroh has a brilliant future Stroh has a brilliant future Stroh has a brilliant future Stroh has a brilliant future Stroh has a brilliant future Stroh has a brilliant future Stroh has a brilliant future Stroh has a brilliant future Stroh has a brilliant future
    Join Date
    Feb 2007
    Location
    Germany(Stuttgart)
    Posts
    2,481
    Downloads
    54
    Uploads
    41
    Rep Power
    12
    Reputation
    1653
    ^Just spoofes

  5. xiN
    xiN is offline The Almighty Frenchie
    xiN is a jewel in the rough xiN is a jewel in the rough xiN is a jewel in the rough xiN is a jewel in the rough
    Join Date
    Feb 2007
    Location
    Six feet under
    Posts
    1,710
    Downloads
    25
    Uploads
    4
    Rep Power
    5
    Reputation
    330
    Better rename it to WC3 Name Spoofer.

  6. UrS
    UrS is offline Addict
    UrS is on a distinguished road
    Join Date
    Feb 2007
    Location
    Russia
    Posts
    59
    Downloads
    13
    Uploads
    0
    Rep Power
    3
    Reputation
    14
    X-FreeLoOsE-x ,
    It's not name spoofer, it changes name in the bnet login screen, where you have to put Account\Password. Read first post more carefully.

  7. oMBra is offline Wannabe Member
    oMBra is an unknown quantity at this point
    Join Date
    Nov 2008
    Posts
    18
    Downloads
    4
    Uploads
    0
    Rep Power
    2
    Reputation
    9
    What's the point of this then?

  8. UrS
    UrS is offline Addict
    UrS is on a distinguished road
    Join Date
    Feb 2007
    Location
    Russia
    Posts
    59
    Downloads
    13
    Uploads
    0
    Rep Power
    3
    Reputation
    14
    oMBra
    The only use it had was to change the account name while making my ultimate tool, for the auto-join to bnet bot part.

  9. xiN
    xiN is offline The Almighty Frenchie
    xiN is a jewel in the rough xiN is a jewel in the rough xiN is a jewel in the rough xiN is a jewel in the rough
    Join Date
    Feb 2007
    Location
    Six feet under
    Posts
    1,710
    Downloads
    25
    Uploads
    4
    Rep Power
    5
    Reputation
    330
    Quote Originally Posted by UrS View Post
    X-FreeLoOsE-x ,
    It's not name spoofer, it changes name in the bnet login screen, where you have to put Account\Password. Read first post more carefully.
    Damnit, so it is another "Battle.Net joiner".

  10. risker is offline Banned User
    risker is a splendid one to behold risker is a splendid one to behold risker is a splendid one to behold risker is a splendid one to behold risker is a splendid one to behold risker is a splendid one to behold
    Join Date
    Oct 2008
    Location
    Australia
    Posts
    2,852
    Downloads
    2
    Uploads
    2
    Rep Power
    0
    Reputation
    671
    Oh.. All that excitement for nothing lol

+ Reply to Thread
Page 1 of 2
1 2 LastLast

Similar Threads

  1. Rate my WC3 Account?
    By Velocity in forum Warcraft 3 forum
    Replies: 11
    Last Post: 09-07-2007, 10:03 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts