To detour Script_GetGUIDFromToken but did not succeed menu

User Tag List

Results 1 to 4 of 4
  1. #1
    34D's Avatar Member
    Reputation
    4
    Join Date
    May 2020
    Posts
    57
    Thanks G/R
    10/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    To detour Script_GetGUIDFromToken but did not succeed

    Code:
    typedef bool(__fastcall* token2guid)(const char*, unsigned int, ObjectGuid*, bool);
    token2guid TokenGUIDFunc = (token2guid)(void*)offsets::GetGUIDFromToken;//(rebase)
    
    bool __fastcall testFunc(const char* token, unsigned int Unknown1, ObjectGuid* guid, bool Unknown2)
    {
    	return TokenGUIDFunc(token, Unknown1, guid, Unknown2);
    }
    
    void Hook()
    {
    	DetourTransactionBegin();
    	DetourUpdateThread(GetCurrentThread());
    	DetourAttach(&(PVOID&)TokenGUIDFunc, testFunc);
    	DetourTransactionCommit();
    }
    I tried detours4.01 but there is No effect

    then I want to rewrite some, but can’t write memory Error.

    Code:
    bool Hook(void* toHook, void* hk_func, int len) {
    	if (len < 13)
    		return false;
    
    	DWORD curProtection;
    	VirtualProtect(toHook, len, PAGE_EXECUTE_READWRITE, &curProtection);
    
    	memset(toHook, 0x90, len);
    	unsigned char patch[] = {
    		0x50, 0x48, 0xb8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    		0xFF, 0xE0
    	};
    	*(DWORD64*)&patch[3] = (DWORD64)hk_func;
    	memcpy((void*)toHook, patch, sizeof(patch));
    	DWORD temp;
    	VirtualProtect(toHook, len, curProtection, &temp);
    	return true;
    }

    To detour Script_GetGUIDFromToken but did not succeed
  2. #2
    Jadd's Avatar 🐸 Premium Seller
    Reputation
    1511
    Join Date
    May 2008
    Posts
    2,432
    Thanks G/R
    81/333
    Trade Feedback
    1 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

  3. #3
    34D's Avatar Member
    Reputation
    4
    Join Date
    May 2020
    Posts
    57
    Thanks G/R
    10/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the reply, the simple road will not work anymore

  4. #4
    GlittPrizes's Avatar Active Member CoreCoins Purchaser Authenticator enabled
    Reputation
    58
    Join Date
    Nov 2019
    Posts
    104
    Thanks G/R
    53/33
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by 34D View Post
    Thanks for the reply, the simple road will not work anymore
    I know it's not ideal, but the time spent trying to maintain a working CRC spoof might be better spent just making a handler to register your own versions of functions that would normally be used by GUIDFromToken if you wanted to use this function in a different manner such as the object pointer. There is some info here regarding patching the debugger features which would get you started on writing a client hook, but it's also known that this is a red flag, so even if you can accomplish it you might jeopardize your bot because a rogue client will be a bigger target than an unknown process/dll.

    Maybe there is some OC wizard that has been able to dump Warden from memory and use reflection to fool it's signature scanner, but there are so many moving parts in that equation that it's beyond most people's ability. For me, I will just have to be content with re-registering a shit ton of functions

Similar Threads

  1. Have access to someones email but no sqa/cd key, not a problem
    By numbchuckz in forum WoW Scam Prevention
    Replies: 7
    Last Post: 02-21-2009, 10:40 AM
  2. not sure where to post this but i was able to import a custom city by festigo
    By igud2 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 07-19-2008, 01:38 AM
  3. Possible Enchanting Scam (Not Very Likely to Come up... but maybe)
    By Real Goons Shoot in forum WoW Scam Prevention
    Replies: 0
    Last Post: 01-20-2008, 12:41 PM
  4. Not related to model editing but I need a file, please read
    By kody in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 07-26-2007, 01:40 PM
All times are GMT -5. The time now is 05:41 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search