ThunderMS - Because fun is a part of your life

Would you like to react to this message? Create an account in a few clicks or log in to continue.
ThunderMS - Because fun is a part of your life

Our users have posted a total of 4569 messages in 679 topics!
We have 8916 registered users, the newest registered user is xkyuzaki.


+2
SLAYBELZ
Danny
6 posters

    [Fix] Login Hack

    Danny
    Danny


    Number of posts : 8
    Warning :
    [Fix] Login Hack Left_bar_bleue0 / 1000 / 100[Fix] Login Hack Right_bar_bleue

    Registration date : 2008-04-25

    [Fix] Login Hack Empty [Fix] Login Hack

    Post by Danny Sat Apr 26, 2008 3:46 pm

    How to fix


    Open up your MySQLM.cpp and add this function:

    Code:

    int MySQL::checkChar(int charid){

      MYSQL_RES *mres;

      MYSQL_ROW mrow;

      char query[255];

        sprintf_s(query, 255, "select userid from characters where ID='%d';", charid);

      mysql_real_query(&maple_db, query, strlen(query));

      printf(mysql_error(&maple_db));

      mres = mysql_store_result(&MySQL::maple_db);

      mrow = mysql_fetch_row(mres);

      printf(mysql_error(&maple_db));

      int ret = 0;

      printf(mysql_error(&maple_db));

      if(mysql_num_fields(mres) > 0){

          string mr = string((char*)mrow[0]);

          istringstream buffer(mr);

          buffer >> ret;

      }

      return ret;

    }



    Now open MySQLM.h and add this line:
    Code:

    static int checkChar(int charid);



    Now open Characters.cpp and replace your "Characters::connectGame" function with mine:
    Code:

    void Characters::connectGame(PlayerLogin* player, unsigned char *packet){

      int charid = getInt(packet);

      if(MySQL::checkChar(charid) != player->getUserid())

          return; 

      bool check=false;

      int ids[3];

      int num = player->getIDs(ids);

      for(int i=0; i<num; i++){

          if(ids[i] == charid){

            check=true;

            break;

          }

      }

      if(!check){

          // hacking

          return;

      }

      LoginPacket::connectIP(player, charid);

    }

    Thats all.

    Credits to
    rEakW0n

    This will stop all the Login Hackers (That thing of login in other Character and it isnt yours)

    GMDanny (i Wish... xD) jk..

    Sincerity,
    Danny


    Srry for my english i cant talk 100% english Razz
    avatar
    SLAYBELZ


    Number of posts : 7
    Warning :
    [Fix] Login Hack Left_bar_bleue0 / 1000 / 100[Fix] Login Hack Right_bar_bleue

    Registration date : 2008-04-26

    [Fix] Login Hack Empty Re: [Fix] Login Hack

    Post by SLAYBELZ Sat Apr 26, 2008 4:36 pm

    Sweeeeeeet! Now we can REALLY cut down on hackers!
    Mystery
    Mystery


    Number of posts : 484
    Age : 30
    Location : London Hightbury
    Warning :
    [Fix] Login Hack Left_bar_bleue0 / 1000 / 100[Fix] Login Hack Right_bar_bleue

    Character Name : Mystery
    Registration date : 2008-04-24

    [Fix] Login Hack Empty Re: [Fix] Login Hack

    Post by Mystery Sun Apr 27, 2008 12:24 pm

    Hope, there will be a hack, which deactivate PE Very Happy
    That would be so damn cute.
    avatar
    Salazar


    Number of posts : 38
    Location : Sandiego.
    Warning :
    [Fix] Login Hack Left_bar_bleue0 / 1000 / 100[Fix] Login Hack Right_bar_bleue

    Registration date : 2008-04-27

    [Fix] Login Hack Empty Re: [Fix] Login Hack

    Post by Salazar Sun Apr 27, 2008 9:50 pm

    hahaha this is a goog idea. i been waiting for something like that. MS was full of HACKERS.! but anyways. i ll have time to forget those times HERE! haha tHX guys
    avatar
    CokeJob


    Number of posts : 18
    Warning :
    [Fix] Login Hack Left_bar_bleue0 / 1000 / 100[Fix] Login Hack Right_bar_bleue

    Registration date : 2008-04-27

    [Fix] Login Hack Empty Re: [Fix] Login Hack

    Post by CokeJob Mon Apr 28, 2008 1:13 am

    fack the person who released that hack....
    avatar
    fabian


    Number of posts : 12
    Warning :
    [Fix] Login Hack Left_bar_bleue0 / 1000 / 100[Fix] Login Hack Right_bar_bleue

    Registration date : 2008-04-25

    [Fix] Login Hack Empty Re: [Fix] Login Hack

    Post by fabian Tue Apr 29, 2008 9:53 am

    lol...

    Sponsored content


    [Fix] Login Hack Empty Re: [Fix] Login Hack

    Post by Sponsored content


      Current date/time is Sat May 18, 2024 11:35 pm