Jump to content

Sanchez

Premium
  • Posts

    576
  • Joined

  • Days Won

    43
  • Feedback

    0%

Posts posted by Sanchez

  1. These codes are not added to any function, and you're not added the self to GetMD5.

        LIBMD5Hash1 = GetMD5('lib/__future__.pyc')
        LIBMD5Hash3 = GetMD5('lib/copy_reg.pyc')
        LIBMD5Hash4 = GetMD5('lib/linecache.pyc')
        LIBMD5Hash5 = GetMD5('lib/ntpath.pyc')
        LIBMD5Hash6 = GetMD5('lib/os.pyc')
        LIBMD5Hash7 = GetMD5('lib/site.pyc')
        LIBMD5Hash8 = GetMD5('lib/stat.pyc')
        LIBMD5Hash9 = GetMD5('lib/string.pyc')
        LIBMD5Hash10 = GetMD5('lib/traceback.pyc')
        LIBMD5Hash11 = GetMD5('lib/types.pyc')
        LIBMD5Hash12 = GetMD5('lib/UserDict.pyc')
         
        if not ((LIBMD5Hash1 != '02466c5102c7297f86a35b80d42cd982') or (LIBMD5Hash3 != 'dd30745c8cade086fadb51b38ac23f6d') or (LIBMD5Hash4 != '267732ad69e101b0993959e3e881cb1d') or (LIBMD5Hash5 != 'e5d99efbf612906aa70335265b51282e') or (LIBMD5Hash6 != '2e34b81cabfe5d0a88d6cd8d8733a582') or (LIBMD5Hash7 != '15f7138e8288ba302ee63d371867a1d3') or (LIBMD5Hash8 != '48285790f4f34b75aca5092c4465a552') or (LIBMD5Hash9 != '09d8d9d8e2e4830a9de0d3a69f500a29') or (LIBMD5Hash10 != 'f653314ecbee3ec7be2507624d8ef964') or (LIBMD5Hash11 != 'c85f4be83dd4a287f04d5760cc1d713f') or (LIBMD5Hash12 != '751fce06804a850e5247f1d1ffcc567180118ea3')):
            dbg.LogBox('Versuchte Modifikation am Lib-Ordner festgestellt..nBitte patche noch einmal !!')
            app.Exit() 
    
  2. Just replace this in char_item.cpp:

    LPCHARACTER owner = funcFindOwnership.owner;
    

    With this:

    LPCHARACTER owner = funcFindOwnership.owner;
    
    // Owner does not exist, so don't allow to run remaining codes.
    if (!owner)
    	return false;
    

    The next line of the code will set me as owner of the item if the owner is currently nobody. And sure, it's nobody because no one is the owner of the item from my group.

    • Love 4
  3. Fix for the newly released lagger/kicker:
     
    Replace the ACMD(do_messenger_auth) method with this:

    	if (ch->GetArena())
    	{
    		ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("´ë·ĂŔ忡Ľ­ »çżëÇĎ˝Ç Ľö ľř˝Ŕ´Ď´Ů."));
    		return;
    	}
    
    	char arg1[256], arg2[256];
    	two_arguments(argument, arg1, sizeof(arg1), arg2, sizeof(arg2));
    
    	if (!*arg1 || !*arg2)
    		return;
    
    	char answer = LOWER(*arg1);
    
    	if (!MessengerManager::instance().AuthToAdd(ch->GetName(), arg2, answer == 'y' ? false : true))
    		return;
    
    	if (answer != 'y')
    	{
    		LPCHARACTER tch = CHARACTER_MANAGER::instance().FindPC(arg2);
    
    		if (tch)
    			tch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("%s ´ÔŔ¸·Î şÎĹÍ ÄŁ±¸ µî·ĎŔ» °ĹşÎ ´çÇß˝Ŕ´Ď´Ů."), ch->GetName());
    	}

    In messenger_manager.cpp replace the AuthToAdd method with this :

    bool MessengerManager::AuthToAdd(MessengerManager::keyA account, MessengerManager::keyA companion, bool bDeny)
    {
    	DWORD dw1 = GetCRC32(companion.c_str(), companion.length());
    	DWORD dw2 = GetCRC32(account.c_str(), account.length());
    
    	char buf[64];
    	snprintf(buf, sizeof(buf), "%u:%u", dw1, dw2);
    	DWORD dwComplex = GetCRC32(buf, strlen(buf));
    
    	if (m_set_requestToAdd.find(dwComplex) == m_set_requestToAdd.end())
    	{
    		sys_log(0, "MessengerManager::AuthToAdd : request not exist %s -> %s", companion.c_str(), account.c_str());
    		return false;
    	}
    
    	m_set_requestToAdd.erase(dwComplex);
    
    	if (!bDeny)
    	{
    		AddToList(companion, account);
    		AddToList(account, companion);
    	}
    
    	return true;
    }
    

    In messenger_manager.h replace this:

    void	AuthToAdd(keyA account, keyA companion, bool bDeny);
    

    With this:

    bool	AuthToAdd(keyA account, keyA companion, bool bDeny);
    • Love 17
  4. It's easy to bind application to hardware.

     

    #define _WIN32_WINNT 0x0400
    
    #include <windows.h>
    #include <stdio.h>
    
    int main()
    {
    	HW_PROFILE_INFO hwProfileInfo;
    
    	if(GetCurrentHwProfile(&hwProfileInfo) != NULL){
    		printf("Hardware GUID: %sn",	 hwProfileInfo.szHwProfileGuid);
    		printf("Hardware Profile: %sn", hwProfileInfo.szHwProfileName);
    	}else{
    		return 0;
    	}
    
    	getchar();
    }
    
    source:

    http://skilinium.com/blog/?p=323

    anyway, i have program which check your hardware id, connect to server on my ip, check version & licence and send information to client (everything via encrypted packet)

    This is good way to check license i think.

     

     

    Never use GUID! It's not unique and every Windows 8+ computer have the same id.

    • Love 2
×
×
  • 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.