[Source] Respawn Hack Base(*Fixes Not Posted)

Posts 1–14 of 14 · Page 1 of 1
[Source] Respawn Hack Base(*Fixes Not Posted)
Well, this is my "Project Life Giver" source code. Instead of me just giving you the source so you can just compile it and take credits, I'm going to give you the source that is not fully completed. You need to manually add the respawn addy i am giving you into the source... PS: I marked where :P

Respawn Address: 0x3774B7BC


I annotated it for you... Good luck getting started
[PHP]//================================================== ==
//=== Copy Right Breach 2010. All Rights Reserved. ===
//=== DO NOT LEECH THIS - FOR BREACH MEMEBERS ONLY ===
//=== Helicopter12, Acid_Burn, and PowerFear ONLY! ===
//================================================== ==


#include <windows.h> //Needed Header
HANDLE Hthread; //For Respawn Hack
HANDLE Gthread; //For Another Hack
int hack1 = 0x01; //Set respawn hack to "1" (Hex)
int hack2 = 0x00; //Set to "0"
bool getkey() //This executes when called..
{
if(GetAsyncKeyState(VK_F10)&0x8000){ //If F10 is pressed...
return true; //Turn the hack on
}
return false; //If its on turn it off
}
void memhack(PVOID address, int value, int size){ //When this is called it will set the addy to a value (Older func, we have upgraded)
DWORD d,ds;
VirtualProtect(address, size, PAGE_EXECUTE_READWRITE, &d);
memset(address, value, size);
VirtualProtect(address,size,d,&ds);
}
void freeze()
{
while(true){
memhack((PVOID)0x377315A8,hack1,1); //Put the Respawn Addy her
Sleep(20); //Pause for 20 milisecs.
}
}
bool IsGameReadyForHook(void) //See if CA has loaded the dll "CShell", it will crash if this is taken out because respawn is located here.
{
if(GetModuleHandle("CShell.dll") != NULL)
return true;

return false;
}
void main() //The Main function
{
while (!IsGameReadyForHook()) //Only do the following when the DLL has loaded
Sleep(20);
//MessageBox(NULL,"Hack was injected! Use F10 to enable/disabled the hack; Box ESP","Combat Arms Public Hack by Helicopter12 and PowerFear",MB_OK);
int threadID2;
Gthread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&freeze, NULL, 0, (LPDWORD)&threadID2); //Create the thread, C+P this below if you are adding another hack
while(true){
if(getkey()){ //Calls the GetKey function declared above
if(hack1 == 0x01){ //If the hack is then turn it off, and vice versa
hack1 = 0x00; //Hack off
} else {
hack1 = 0x01; //Hack on
}
if(hack2 == 0x01){ //If you have another hack
hack2 = 0x00; // New Values
}else{
hack2 = 0x01; // New Values
}
}
Sleep(20);
}
}

//Just leave this here, not going to waste my time explaining what it all does, just know its needed for injecting/threading
BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
int threadID;
Hthread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&main, NULL, 0, (LPDWORD)&threadID);
break;
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}[/PHP]

Creds:
Power
Me
Someone else...
Haha, awesome

Are you releasing the updated respawn hack today? o_O
Quote Originally Posted by CRUSTY View Post
Haha, awesome

Are you releasing the updated respawn hack today? o_O

Hmmm... IDK, why don't you

Get some creds for it.
Nice annotation Heli. Don't see much of that now days which is a shame because its good for learning. Just wanted to point out one thing as well here:
Code:
void freeze()
{
    while(true){
        memhack((PVOID)0x377315A8,hack1,1); //Put the Respawn Addy  her
        Sleep(20); //Pause for 20 milisecs.
    }
}
Here the size is set to one, but an integer is 4 bytes in size on 32 processor so that size should be set to four. If you really want to entertain urself try figuring out how yours worked when you were only writing to a quarter of an int or simply one byte. It deal with the fact that flat memory is arranged so that the least significant bytes are at the lowest positions in memory for each particular data type. And so you have to reverse the order of the individual bytes if you were to view a hard coded value in disassembly.

For example: 12033h say this was an integer value (4bytes) which is the size of a dword then:
33,20,01,00

it would look like so in memory. with the least significant byte at the address of the memory location for the integer value.

Lol. wanted to make sure VirtualProtect didn't not do something funky with the size of the memory so I double checked myself with MSDN and it is indeed in bytes: http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx
Quote Originally Posted by why06 View Post
Nice annotation Heli. Don't see much of that now days which is a shame because its good for learning. Just wanted to point out one thing as well here:
Code:
void freeze()
{
    while(true){
        memhack((PVOID)0x377315A8,hack1,1); //Put the Respawn Addy  her
        Sleep(20); //Pause for 20 milisecs.
    }
}
Here the size is set to one, but an integer is 4 bytes in size on 32 processor so that size should be set to four. If you really want to entertain urself try figuring out how yours worked when you were only writing to a quarter of an int or simply one byte. It deal with the fact that flat memory is arranged so that the least significant bytes are at the lowest positions in memory for each particular data type. And so you have to reverse the order of the individual bytes if you were to view a hard coded value in disassembly.

For example: 12033h say this was an integer value (4bytes) which is the size of a dword then:
33,20,01,00

it would look like so in memory. with the least significant byte at the address of the memory location for the integer value.

Lol. wanted to make sure VirtualProtect didn't not do something funky with the size of the memory so I double checked myself with MSDN and it is indeed in bytes: VirtualProtect Function (Windows)

Thanks for pointing that out ^^

Ill have a look at the page also.
Thank you Helicopter for this! Helped alot, thanks
Quote Originally Posted by Zoom View Post
Thank you Helicopter for this! Helped alot, thanks
Glad it helped someone lol

I might release some more, i'm nost sure =\
Nice source Man!
is this source undetected?
This is great for someone who knows the basics of C++, and with the comments, I've picked up TONS of new syntax. Thanks a lot!
Quote Originally Posted by ppl2pass View Post
is this source undetected?
Yup. Will work 100%

Quote Originally Posted by Code Thug View Post
This is great for someone who knows the basics of C++, and with the comments, I've picked up TONS of new syntax. Thanks a lot!
Hahah glad it helped
Also, a question while you're 'here'. Is the only way to find addies by using CE/ MHS, or can you manually dig through the files? :P
Quote Originally Posted by Code Thug View Post
Also, a question while you're 'here'. Is the only way to find addies by using CE/ MHS, or can you manually dig through the files? :P
Yeh MHS is undetected still... So just use the search button!
i saw some error when trying to do something with it on VB , i fixed them and writed new thing like new values (for the hack xD) and some lines doseant work
Posts 1–14 of 14 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us