my first hack

Posts 16–27 of 27 · Page 2 of 2
noone has any idea why the hack does not inject?



Thank you
last try if anyone wanna give me an idea why the hack does not inject

Thank you
Quote Originally Posted by A$IAN View Post
The WeaponWeight addy is same as ur Speed hack addy...
lmao thats funny
1>------ Build started: Project: Crossfire Test Hack, Configuration: Debug Win32 ------
1> stdafx.cpp
1> Crossfire Test Hack.cpp
1> dllmain.cpp
1>dllmain.obj : error LNK2005: _DllMain@12 already defined in Crossfire Test Hack.obj
1>e:\users\yaso\documents\visual studio 2010\Projects\Crossfire Test Hack\Debug\Crossfire Test Hack.dll : fatal error LNK1169: one or more multiply defined symbols found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Quote Originally Posted by frenci8 View Post
still does not work, i tried to build it as debug and release, still did not work with any of the builds above



Thank you for the reply, but they looks like they are not the same... 0x1f88 and 0x21d8

Code:
#define WeaponWeight    0x1F88
#define SpeedHack       0x21D8


to me too, it does not show up, i do not know why .... this is the same base that everyone uses
maybe, the injectors at the cf injectors section do not work...


--------------------------------------------------------------------------



i edited the hack, but still this new version does not work...

Code:

#include "stdafx.h"

#include <windows.h>

#define grenades ((i==6)||(i==7)||(i==8)||(i==64)||(i==100)||(i==126)||(i==135)||(i==209)||(i==210)||(i==240)||(i==263)||(i==272)||(i==338)||(i==382)||(i==383)||(i==384))


#define WeaponMgr       0xA2A7E8
#define NoReload        0x2424
#define WeaponDamage    0x07f8
#define WeaponWeight    0x21DC
#define SpeedHack       0x21D8
#define NoChangeDelay   0x2428

float Hithard = 999.0f;
float FragDmg = 0.0f;
float weapweight = 0.0f;

DWORD WINAPI Hacks(LPVOID)
{
    bool onehit = false,
         reload = false,
         fragdmg = false,
	     weweight = false,
		 spehack = false,
		 changedelay = false;
	     

    while(1)
    {
        DWORD CShell     = (DWORD)GetModuleHandleA("CShell.dll");
	DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);

	//hotkeys toggle + beep sounds
	if(GetAsyncKeyState(VK_F7)  || GetAsyncKeyState(VK_NUMPAD0) &1) { changedelay = true; Beep(512, 100); }
	if(GetAsyncKeyState(VK_F8)  || GetAsyncKeyState(VK_NUMPAD1) &1) { spehack = true; Beep(512, 100); }
	if(GetAsyncKeyState(VK_F9)  || GetAsyncKeyState(VK_NUMPAD2) &1) { onehit = true; Beep(512, 100); }
	if(GetAsyncKeyState(VK_F10) || GetAsyncKeyState(VK_NUMPAD3) &1) { reload = true; Beep(512, 100); }
	if(GetAsyncKeyState(VK_F11) || GetAsyncKeyState(VK_NUMPAD4) &1) { fragdmg = true; Beep(512, 100); }
	if(GetAsyncKeyState(VK_F12) || GetAsyncKeyState(VK_NUMPAD5) &1) { weweight = true; Beep(512, 100); }

	//one hit kill
	if(onehit)
	{
	    if (pWeaponMgr)
	    {
	        for(int i=0; i<445; i++)
		{
		    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
		        *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + WeaponDamage) = Hithard;
		}
	    }
	}

	//no reload
	if(reload)
	{
	    if (pWeaponMgr)
	    {
	        for(int i=0; i<445; i++)
		{
		    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
		        *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoReload) = 100;
		}
	    }
	}

	//no weapon weight
	if(weweight)
	{
	    if (pWeaponMgr)
	    {
	        for(int i=0; i<445; i++)
		{
		    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
		        *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + WeaponWeight) = weapweight;
		}
	    }
	}

	//speed hack
	if(spehack)
	{
	    if (pWeaponMgr)
	    {
	        for(int i=0; i<445; i++)
		{
		    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
		        *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + SpeedHack) = -0,18;
		}
	    }
	}

	//no change delay
	if(changedelay)
    {
        if (pWeaponMgr)
        {
            for(int i=0; i<445; i++)
        {
            if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
                *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+ (4*i))) + NoChangeDelay) = 9999;
        }
        }
    }

	

	//no grenade damage
	if(fragdmg)
	{
	    if (pWeaponMgr)
	    {
	        for(int i=0; i<445; i++)
		{
		    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL && (grenades))
		        *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + WeaponDamage) = FragDmg;
		}
	    }
	}
	Sleep(100);
    }
}

bool Ready2Hook()
{
    if(GetModuleHandleA("CShell.dll")   != NULL
    && GetModuleHandleA("ClientFx.fxd") != NULL)
        return 1;
    return 0;
}

DWORD WINAPI Wait(LPVOID)
{
    while(!Ready2Hook()) Sleep(200);
	CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hacks, NULL, NULL, NULL);
    return 0;
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
	DisableThreadLibraryCalls(hDll);

	if ( dwReason == DLL_PROCESS_ATTACH )
	{

		MessageBoxA(0, "Made by DjOnce","Injected !", 0);
		

		CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0,0);
	}
	return 1;
}
1>------ Build started: Project: Crossfire Test Hack, Configuration: Debug Win32 ------
1> stdafx.cpp
1> Crossfire Test Hack.cpp
1> dllmain.cpp
1>dllmain.obj : error LNK2005: _DllMain@12 already defined in Crossfire Test Hack.obj
1>e:\users\yaso\documents\visual studio 2010\Projects\Crossfire Test Hack\Debug\Crossfire Test Hack.dll : fatal error LNK1169: one or more multiply defined symbols found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
It debugged fine for me.
Quote Originally Posted by JusCaus View Post
It debugged fine for me.
Have you tried this code ? try it and then tell me if there error or no

Code:
#include "stdafx.h"

#include <windows.h>

#define grenades ((i==6)||(i==7)||(i==8)||(i==64)||(i==100)||(i==126)||(i==135)||(i==209)||(i==210)||(i==240)||(i==263)||(i==272)||(i==338)||(i==382)||(i==383)||(i==384))


#define WeaponMgr       0xA2A7E8
#define NoReload        0x2424
#define WeaponDamage    0x07f8
#define WeaponWeight    0x21DC
#define SpeedHack       0x21D8
#define NoChangeDelay   0x2428

float Hithard = 999.0f;
float FragDmg = 0.0f;
float weapweight = 0.0f;

DWORD WINAPI Hacks(LPVOID)
{
    bool onehit = false,
         reload = false,
         fragdmg = false,
	     weweight = false,
		 spehack = false,
		 changedelay = false;
	     

    while(1)
    {
        DWORD CShell     = (DWORD)GetModuleHandleA("CShell.dll");
	DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);

	//hotkeys toggle + beep sounds
	if(GetAsyncKeyState(VK_F7)  || GetAsyncKeyState(VK_NUMPAD0) &1) { changedelay = true; Beep(512, 100); }
	if(GetAsyncKeyState(VK_F8)  || GetAsyncKeyState(VK_NUMPAD1) &1) { spehack = true; Beep(512, 100); }
	if(GetAsyncKeyState(VK_F9)  || GetAsyncKeyState(VK_NUMPAD2) &1) { onehit = true; Beep(512, 100); }
	if(GetAsyncKeyState(VK_F10) || GetAsyncKeyState(VK_NUMPAD3) &1) { reload = true; Beep(512, 100); }
	if(GetAsyncKeyState(VK_F11) || GetAsyncKeyState(VK_NUMPAD4) &1) { fragdmg = true; Beep(512, 100); }
	if(GetAsyncKeyState(VK_F12) || GetAsyncKeyState(VK_NUMPAD5) &1) { weweight = true; Beep(512, 100); }

	//one hit kill
	if(onehit)
	{
	    if (pWeaponMgr)
	    {
	        for(int i=0; i<445; i++)
		{
		    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
		        *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + WeaponDamage) = Hithard;
		}
	    }
	}

	//no reload
	if(reload)
	{
	    if (pWeaponMgr)
	    {
	        for(int i=0; i<445; i++)
		{
		    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
		        *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoReload) = 100;
		}
	    }
	}

	//no weapon weight
	if(weweight)
	{
	    if (pWeaponMgr)
	    {
	        for(int i=0; i<445; i++)
		{
		    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
		        *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + WeaponWeight) = weapweight;
		}
	    }
	}

	//speed hack
	if(spehack)
	{
	    if (pWeaponMgr)
	    {
	        for(int i=0; i<445; i++)
		{
		    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
		        *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + SpeedHack) = -0,18;
		}
	    }
	}

	//no change delay
	if(changedelay)
    {
        if (pWeaponMgr)
        {
            for(int i=0; i<445; i++)
        {
            if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
                *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+ (4*i))) + NoChangeDelay) = 9999;
        }
        }
    }

	

	//no grenade damage
	if(fragdmg)
	{
	    if (pWeaponMgr)
	    {
	        for(int i=0; i<445; i++)
		{
		    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL && (grenades))
		        *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + WeaponDamage) = FragDmg;
		}
	    }
	}
	Sleep(100);
    }
}

bool Ready2Hook()
{
    if(GetModuleHandleA("CShell.dll")   != NULL
    && GetModuleHandleA("ClientFx.fxd") != NULL)
        return 1;
    return 0;
}

DWORD WINAPI Wait(LPVOID)
{
    while(!Ready2Hook()) Sleep(200);
	CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hacks, NULL, NULL, NULL);
    return 0;
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
	DisableThreadLibraryCalls(hDll);

	if ( dwReason == DLL_PROCESS_ATTACH )
	{

		MessageBoxA(0, "Made by DjOnce","Injected !", 0);
		

		CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0,0);
	}
	return 1;
}
Your hack works. But speed doesnt, and cant really tell if no weap works or not.

SpeedHack) = -0,18;

I take the ( , ) out and put a ( .)

I just logged on with your hack, works fine but a couple features.
Quote Originally Posted by Dark Side View Post
1>------ Build started: Project: Crossfire Test Hack, Configuration: Debug Win32 ------
1> stdafx.cpp
1> Crossfire Test Hack.cpp
1> dllmain.cpp
1>dllmain.obj : error LNK2005: _DllMain@12 already defined in Crossfire Test Hack.obj
1>e:\users\yaso\documents\visual studio 2010\Projects\Crossfire Test Hack\Debug\Crossfire Test Hack.dll : fatal error LNK1169: one or more multiply defined symbols found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



1>------ Build started: Project: Crossfire Test Hack, Configuration: Debug Win32 ------
1> stdafx.cpp
1> Crossfire Test Hack.cpp
1> dllmain.cpp
1>dllmain.obj : error LNK2005: _DllMain@12 already defined in Crossfire Test Hack.obj
1>e:\users\yaso\documents\visual studio 2010\Projects\Crossfire Test Hack\Debug\Crossfire Test Hack.dll : fatal error LNK1169: one or more multiply defined symbols found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


for the dllmain error, you should open the dll main file and rename the maindll to maindll2, this is what i do and it debugs fine...

Quote Originally Posted by JusCaus View Post
Your hack works. But speed doesnt, and cant really tell if no weap works or not.

SpeedHack) = -0,18;

I take the ( , ) out and put a ( .)

I just logged on with your hack, works fine but a couple features.
please, tell me what injector are you using?

Thank you
Quote Originally Posted by frenci8 View Post
for the dllmain error, you should open the dll main file and rename the maindll to maindll2, this is what i do and it debugs fine...



please, tell me what injector are you using?

Thank you
1337............
Quote Originally Posted by Royku View Post
Why the fuck you are Spamming your own thread ..
You just C+P SwiftDudes base and added some addys..
..
now its not working and ask us to make it work for you ..
sorry if I disturbed you, but I did not ask you to make it work, but I asked if it worked for you and what injector did you use for it so to make it work..

sorry anyway

Quote Originally Posted by JusCaus View Post
1337............
thank you very much
Why the fuck you are Spamming your own thread ..
You just C+P SwiftDudes base and added some addys..
..
now its not working and ask us to make it work for you ..
Posts 16–27 of 27 · Page 2 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us