Jump to content

Check MD5 Client from Game src.


Recommended Posts

  • Premium

Hello, who can help me with the md5 verification for the client from game src.

Is it possible to read the code md5 and the client name from a text file? without recompiling the whole game source again?

 

I found only this but is wihout md5:

void CInputProcessor::Version(LPCHARACTER ch, const char* c_pData)
{
  if (!ch)
  {
    return;
  }

  TPacketCGClientVersion * p = (TPacketCGClientVersion *) c_pData;

  if (strcmp(p->filename, "LANCHER.exe") && ch->GetGMLevel() != GM_IMPLEMENTOR)
  {
    DBManager::instance().Query("INSERT INTO log.wait_hack SET login='%s', nickname='%s', ip='%s', time=NOW(), map_index=%d, server='%s';",
    ch->GetDesc()->GetAccountTable().login, ch->GetName(), ch->GetDesc()->GetHostName(), ch->GetMapIndex(), g_stHostname.c_str());
    ch->GetDesc()->DelayedDisconnect(3);
  }

  sys_log(0, "VERSION: %s %s %s", ch->GetName(), p->timestamp, p->filename);
  ch->GetDesc()->SetClientVersion(p->timestamp);
}

UPDATE CODE

@ Team M2Dev

Edited by DemOnJR

plague.png.1f5de75b42146262dcd655a5a8078

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.