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.

    Base 9 C++


    Im V!rus
     Share

    Recommended Posts

    Sorry for double post but I edited my last post and don't think the person who I want to reply it knows. O.o

    Link to comment
    Share on other sites

    • 4 weeks later...

    This still doesn't work.

     

    I can only get crosshairs to work and nothing else.

     

    No wireframe, wallhack no chams.. nothing.

     

    I'm testing with crossfire.

    Link to comment
    Share on other sites

    Thanks for sharing this. I tried your code Windows 7 RC and I got ACCESS VIOLATIONS. I don't know if this happens to people with Vista too.

     

    I added a line to your DetourCreate function, to make the allocated memory executable:

     

    VirtualProtect(jmp, len+5+1, PAGE_EXECUTE_READWRITE, NULL);

     

    The resulting function is:

     

    void *DetourCreate(BYTE *src, const BYTE *dst, int minlen)
    {
    BYTE	*jmp, *org;
    DWORD	dwBack;
    int		len;
    
    len=DetourASMlen(src,(minlen<6)?6:minlen);
    if (len==0 && minlen>=6)  len=minlen;
    if (len==0) return 0;
    
    org=jmp = (BYTE*)malloc(len+5+1);		// room for nobytes + jmplen + size byte
    VirtualProtect(jmp, len+5+1, PAGE_EXECUTE_READWRITE, NULL);
       jmp[0]=len;								// save length in first byte
       jmp++;
    
    VirtualProtect(src, len, PAGE_EXECUTE_READWRITE, &dwBack);
    memcpy(jmp, src, len);	
    jmp += len;
    jmp[0] = 0xE9;
    *(DWORD*)(jmp+1) = (DWORD)(src+len - jmp) - 5;
    
    src[0] = 0x68;							// different hook,  push address   ret
    *(DWORD*)(src+1) = (DWORD)(dst);
    src[5] = 0xc3;
    for (int i=6; i	VirtualProtect(src, len, dwBack, &dwBack);
    
    return &org[1];							// return entry point, byte 0 = length
    }

     

    With this small fix it's working perfectly. Hope it helps.

    Link to comment
    Share on other sites

    • 1 month later...
    • 4 weeks later...
    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...