Go Back   UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats > Anti-Cheat Software & Programming > Direct3D

- Sponsored Advertisement -
http://www.myfpscheats.com/

Welcome to the UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats.
You have to register before you can post and see and access any of the advanced forum features, please click the register link to proceed to the registration form. To start viewing threads or posts, select a forum that you want to visit from the selection below.
Direct3D
hacking programming reversing
You are Unregistered, please register to gain Full access.    
Reply
 
Thread Tools

Adding a Menu to a hack
Old 07-20-2010, 08:04 AM   #1
n00bie

DeadLinez's Avatar

Join Date: Jan 2010
Posts: 7
Reputation: 76
Rep Power: 26
DeadLinez is about to stop their Leeching
Adding a Menu to a hack

here is my full source for my combat arms hack, and i wanted to know how to add a menu to this, i tryed everything. can someone help me? if you help me your name will be on the menu, and in the credits.

Code:
#include <windows.h>
//*****************************************************************************

//*****************************************************************************
bool IsGameReadyForHook()
{
    if( GetModuleHandleA( "d3d9.dll"     ) != NULL 
        && GetModuleHandleA( "ClientFX.fxd" ) != NULL 
        && GetModuleHandleA( "CShell.dll"   ) != NULL )
        return true;
    return false;
}
//*****************************************************************************
void __cdecl PushToConsole(char* sVal)
{
    DWORD zAddress = 0x007D9200;
    void* szConsole = (void*)*(DWORD*)(zAddress);
    _asm
    {
        push sVal
            call szConsole
            add esp, 4
    }
}
//*****************************************************************************

//*****************************************************************************
bool Memoria( void * pDest, char * szPatch, size_t sSize )//NOP Function
{ 
    DWORD dwOrgProtect = NULL; 
    if ( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect ))
        return FALSE;

    Memoria( pDest, szPatch, sSize ); 
    VirtualProtect( pDest, sSize, dwOrgProtect, NULL ); 
    return TRUE; 
}
//*****************************************************************************
void main()
{

    while (!IsGameReadyForHook()){
        Sleep(20);
    }
    bool espbox = false;
    bool nofog = false;
    bool nxcham = false;
    bool fps = false;
    bool stat = false;
    bool freeeze = false;

    while(true){

        PushToConsole("ShowFps 1");


        if(GetAsyncKeyState(VK_NUMPAD1)<0){
            if(espbox){
                PushToConsole("ModelDebug_DrawBoxes 0");

                espbox = false;
            } else {
                PushToConsole("ModelDebug_DrawBoxes 1");
                espbox = true;
            }
        }
        Sleep(20);
        if(GetAsyncKeyState(VK_NUMPAD2)<0){
            if(nxcham){
                PushToConsole("SkelModelStencil 0" );

                nxcham = false;
            } else {
                PushToConsole("SkelModelStencil 1" );
                nxcham = true;
            }
        }
        Sleep(20);
        if(GetAsyncKeyState(VK_NUMPAD3)<0){
            if(nofog){
                PushToConsole("FogEnable 0" );
                nofog = false;
            } else {
                PushToConsole("FogEnable 1" );
                nofog = true;
            }
        }
        Sleep(20);
        if(GetAsyncKeyState(VK_NUMPAD4)<0){
            if(nofog){
                PushToConsole("ShowPerformanceStatistics 0");
                nofog = false;
            } else {
                PushToConsole("ShowPerformanceStatistics 1");
                nofog = true;
            }
        }
        Sleep(20);
        if(GetAsyncKeyState(VK_NUMPAD3)<0){
            if(freeeze){
                PushToConsole("FreezeTime 0");

                freeeze = false;
            } else {
                PushToConsole("FreezeTime 1");

                freeeze = true;
            }
        }
        Sleep(20);

    }
}

//*****************************************************************************
DWORD WINAPI dwHackThread(LPVOID)
{
    while( !IsGameReadyForHook() )
        Sleep(100);
    main();
    return 0;
}
//*****************************************************************************
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
    DisableThreadLibraryCalls(hDll);
    if ( dwReason == DLL_PROCESS_ATTACH )
    {
        CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
    }
    return TRUE;
}
__________________
~ signature too big ~
DeadLinez is offline

Reply With Quote


Old 07-20-2010, 02:26 PM   #2
Hacker Supreme

chuculun's Avatar

Join Date: Feb 2010
Posts: 240
Reputation: 6024
Rep Power: 89
chuculun DEFINES UNKNOWNCHEATSchuculun DEFINES UNKNOWNCHEATSchuculun DEFINES UNKNOWNCHEATSchuculun DEFINES UNKNOWNCHEATSchuculun DEFINES UNKNOWNCHEATSchuculun DEFINES UNKNOWNCHEATSchuculun DEFINES UNKNOWNCHEATSchuculun DEFINES UNKNOWNCHEATSchuculun DEFINES UNKNOWNCHEATSchuculun DEFINES UNKNOWNCHEATSchuculun DEFINES UNKNOWNCHEATS
Points: 5,097, Level: 7
Points: 5,097, Level: 7 Points: 5,097, Level: 7 Points: 5,097, Level: 7
Activity: 14.9%
Activity: 14.9% Activity: 14.9% Activity: 14.9%
Last Achievements
Hey m8 here u go Just read and i Bet you will have it Done in 15 minutes.. ok

D3D Base + D3D Menu With Folders
chuculun is online now

Reply With Quote
Reply  

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit



Tags
adding, hack, menu
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT +1. The time now is 06:50 AM.