Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    diggah123

    Members
    • Posts

      8
    • Joined

    • Last visited

    Posts posted by diggah123

    1. hans211 im doing my best to find out how to unhook something but i just dont get it

       

      im using theese funktion:

      void  DetourRemove(BYTE *src, BYTE *restore, const int len=0);
      
      BOOL DetourRemove(LPVOID lpDetourCreatePtr);
      
      
      
      BOOL DetourRemove(LPVOID lpDetourCreatePtr)
      {
      PBYTE pbMallocPtr = NULL;
      DWORD dwFuncOrig = NULL;
      DWORD dwProt = NULL;
      int i=0;
      
      if((pbMallocPtr = (PBYTE)lpDetourCreatePtr) == NULL)
      	return FALSE;
      
      // Find the orig jmp32 opcode sig
      for(i=0; i<=DETOUR_MAX_SRCH_OPLEN; i++)
      {
      	if(pbMallocPtr[i] == SIG_OP_0 
      		&& pbMallocPtr[i+1] == SIG_OP_1
      		&& pbMallocPtr[i+2] == SIG_OP_2)
      		break;
      
      	if(i == DETOUR_MAX_SRCH_OPLEN)
      		return FALSE;
      }
      
      // Calculate the original address
      pbMallocPtr += (i-JMP32_SZ+1); // Inc to jmp
      dwFuncOrig = *(DWORD*)pbMallocPtr; // Get 32bit jmp
      pbMallocPtr += BIT32_SZ; // Inc to end of jmp
      dwFuncOrig += (DWORD)pbMallocPtr; // Add this addr to 32bit jmp
      dwFuncOrig -= (i-JMP32_SZ); // Dec by detour len to get to start of orig
      
      // Write the overwritten bytes back to the original
      VirtualProtect((LPVOID)dwFuncOrig, (i-JMP32_SZ), PAGE_READWRITE, &dwProt);
      memcpy((LPVOID)dwFuncOrig, lpDetourCreatePtr, (i-JMP32_SZ));
      VirtualProtect((LPVOID)dwFuncOrig, (i-JMP32_SZ), dwProt, new DWORD);
      
      return TRUE;
      }

       

       

      can you pleas tell me how to unhook Drawindexedprimitive as example

    ×
    ×
    • Create New...