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.

    C++ defined function help


    ww11111
     Share

    Recommended Posts

    i need all or most of the defined functions for C++ i have writealong, but i need the other, example writealong is

     

    void Writelong(long addy, long value)
    {
    memory();
    WriteProcessMemory(hProcess, (LPVOID*)(DWORD) addy, &value, sizeof(value), NULL);
    
    }
    void WritePointerFloat(long addy, short offset, float value)
    {
    long maddy;
    long saddy;
    memory();
    ReadProcessMemory(hProcess, (LPVOID*)(DWORD) addy, &maddy, sizeof(maddy), NULL);
    saddy = maddy + offset;
    WriteProcessMemory(hProcess, (LPVOID*)(DWORD) saddy, &value, sizeof(value), NULL);
    }

    so if u can send or post writeafloat, writeabyte, readalong,readabyte,readalong ect...

    Link to comment
    Share on other sites

    You can use the normal writealong for floats.

     

    WriteAlong( ( void* )( ( ReadPointer( ) ) + 0x178 ), 2000, sizeof( float ) );

     

    This is the readpointerfunction:

     

    unsigned long ReadPointer( )

    {

    DWORD dzy, dzRead = 0;

    if( ReadProcessMemory( ( HANDLE )hGameHandle( ), ( void* )0x13783A0, &dzy, sizeof( DWORD ), &dzRead ) == TRUE )

    {

    return dzy;

    }

    return 0;

    }

     

    Here I've shown how you can use ReadProcessMemory.

    Link to comment
    Share on other sites

    void *memcpy_ex( void* pvAddress, void* pvBuffer, unsigned long stSize )
    {
    DWORD Dummy = 0;
    if( WriteProcessMemory( (HANDLE)GetHandle( ), pvAddress, pvBuffer, stSize, &Dummy ) == TRUE )
    {
    	return pvAddress;
    }
    return NULL;
    }

     

    can be used for BYTES ( nop eg ) and normal values!

     

    you dont need to do different functions for each size just do aat size

    sizeof( float ) 
    or
    
    float valuetowrite = 1.00f;
    
    sizeof( valuetowrite )

    Link to comment
    Share on other sites

    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

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