How do you make weapon hack?

Posts 1–12 of 12 · Page 1 of 1
How do you make weapon hack?
Whats the code for weapon hack

I would have though this would work, but it doesn't

Code:
#include <windows.h>

#define WeaponMgr 0xA68F80


void doHack()
{
    DWORD CShell = NULL;
    bool Weapon = true;
    // Get handle to CShell.dll
    while(CShell==NULL)
    {
        CShell = (DWORD)GetModuleHandleA("CShell.dll");
        Sleep(100);
    }
    DWORD* Weapon1 = (DWORD*)(*(DWORD*)((CShell + WeaponMgr)+25*4)); //25=M16
    DWORD* Weapon2 = (DWORD*)(*(DWORD*)((CShell + WeaponMgr)+72*4)); //72=M4 Custom
    while(1)
    {
        if (Weapon)
        {
            if ((Weapon1 != NULL) && (Weapon2 != NULL))
            {
                *Weapon1 = *Weapon2;
            }
        }
    }
}

extern "C" __declspec(dllexport) BOOL APIENTRY DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
    if(fdwReason==DLL_PROCESS_ATTACH)
    {
        DisableThreadLibraryCalls(hinstDLL);
        CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)doHack, NULL, NULL, NULL);
        char Msg[] = {'H', 'a', 'c', 'k', ' ', 'b', 'y', ' ', '_', 'c', 'o', 'r', 'n', '_', '\0'};
        char Title[] = {'I', 'n', 'j', 'e', 'c', 't', 'e', 'd', '\0'};
        MessageBox(NULL, Msg, Title, MB_OK);
    }
    return TRUE; // succesful
}
try this
by
@Assassin's Creed
Code:
#include <windows.h>

#define WeaponMgr 0xA68F80


void doHack()
{
    DWORD CShell = NULL;
    bool Weapon = true;
    // Get handle to CShell.dll
    while(CShell==NULL)
    {
        CShell = (DWORD)LoadLibraryA("CShell.dll");
        
    }
    DWORD* Weapon1 = (DWORD*)(*(DWORD*)((CShell + WeaponMgr)+25*4)); //25=M16
    DWORD* Weapon2 = (DWORD*)(*(DWORD*)((CShell + WeaponMgr)+72*4)); //72=M4 Custom

            if (Weapon)
            {
                *Weapon1 = *Weapon2;
            }
    
}

extern "C" __declspec(dllexport) BOOL APIENTRY DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
    if(fdwReason==DLL_PROCESS_ATTACH)
    {
        DisableThreadLibraryCalls(hinstDLL);
        CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)doHack, NULL, NULL, NULL);
        char Msg[] = {'H', 'a', 'c', 'k', ' ', 'b', 'y', ' ', '_', 'c', 'o', 'r', 'n', '_', '\0'};
        char Title[] = {'I', 'n', 'j', 'e', 'c', 't', 'e', 'd', '\0'};
        MessageBox(NULL, Msg, Title, MB_OK);
    }
    return TRUE; // succesful
}
dude some posting alot of post people will call u a leecher...u have posted many thread and people will tell u lurn C++
just do...

if (weaponhack)
{
*m16 = *m4
}
i made diferent

Credits : @A$IAN

memcpy((unsigned long*)((*(unsigned long*)(((unsigned long)GetModuleHandleA("CShell.dll") + 0xA68F80))+YourIDWep*4)),(unsigned long*)((*(unsigned long*)(((unsigned long)GetModuleHandleA("CShell.dll") + 0xA68F90))+WantIDWep*4)),4);
Quote Originally Posted by LoveyMush View Post
i made diferent

Credits : @A$IAN

memcpy((unsigned long*)((*(unsigned long*)(((unsigned long)GetModuleHandleA("CShell.dll") + 0xA68F80))+YourIDWep*4)),(unsigned long*)((*(unsigned long*)(((unsigned long)GetModuleHandleA("CShell.dll") + 0xA68F90))+WantIDWep*4)),4);
unsigned long is almost the same as DWORD....
Quote Originally Posted by LoveyMush View Post
i made diferent

Credits : @A$IAN

memcpy((unsigned long*)((*(unsigned long*)(((unsigned long)GetModuleHandleA("CShell.dll") + 0xA68F80))+YourIDWep*4)),(unsigned long*)((*(unsigned long*)(((unsigned long)GetModuleHandleA("CShell.dll") + 0xA68F90))+WantIDWep*4)),4);
The credits go to NoJustice, not to me
Quote Originally Posted by Assassin's Creed View Post

unsigned long is almost the same as DWORD....
unsigned long is DWORD, it won't slow the program down
Quote Originally Posted by LoveyMush View Post
i made diferent

Credits : @A$IAN

memcpy((unsigned long*)((*(unsigned long*)(((unsigned long)GetModuleHandleA("CShell.dll") + 0xA68F80))+YourIDWep*4)),(unsigned long*)((*(unsigned long*)(((unsigned long)GetModuleHandleA("CShell.dll") + 0xA68F90))+WantIDWep*4)),4);
Doesn't work for me.
my code:

Code:
void doHack()
{
    DWORD CShell = NULL;
    DWORD cWeaponMgr = NULL;
    bool Weapon = true;
    // Get handle to CShell.dll
    while(CShell==NULL)
    {
        CShell = (DWORD)GetModuleHandleA("CShell.dll");
        Sleep(100);
    }
    while(1)
    {
        cWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
        if (Weapon)
        {
            if(cWeaponMgr != NULL)
            {
                memcpy((unsigned long*)((*(unsigned long*)(((unsigned long)GetModuleHandleA("CShell.dll") + 0xA68F80))+25*4)),(unsigned long*)((*(unsigned long*)(((unsigned long)GetModuleHandleA("CShell.dll") + 0xA68F90))+72*4)),4);
            }
        }
    }
}
Quote Originally Posted by LoveyMush View Post
i made diferent

Credits : @A$IAN

memcpy((unsigned long*)((*(unsigned long*)(((unsigned long)GetModuleHandleA("CShell.dll") + 0xA68F80))+YourIDWep*4)),(unsigned long*)((*(unsigned long*)(((unsigned long)GetModuleHandleA("CShell.dll") + 0xA68F90))+WantIDWep*4)),4);
hey thanks i got it working thanks everyone. Solved.


---------- Post added at 06:08 PM ---------- Previous post was at 06:07 PM ----------

Quote Originally Posted by A$IAN View Post

The credits go to NoJustice, not to me
@NoJustice Thanks for the memcpy weaponhack idea!!!!!!!!!!!!!!!!! Made my day!

Simplified Version:
Code:
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD WeaponClass = *(DWORD*)(CShell + 0xA69120);
int szd = sizeof(DWORD);
memcpy((DWORD*)(WeaponClass+25*szd),(DWORD*)(WeaponClass+72*szd),szd);
hahaha , i forgot this
derh.acker not exactly DWORD google it there are lot results
Posts 1–12 of 12 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us