C++ Help

Posts 1–15 of 15 · Page 1 of 1
C++ Help
Hi all, if someone can help me i will thank a lot him.. so i'm trying to make my first memory hack for Combat Arms (my first hack ever was a D3D if you remember BOSCHACK.dll)... I've no error but when i Inject it, it doesn't work, i don't know why...
Here the source:


#include "stdafx.h"
#include <iostream>
#include <windows.h>

using namespace std;

#define lolasd 0x006D452C //Boxes
#define asdlol 0x37577868 //Unlimited Respawn


int main()
{ int *pb=(int *)lolasd;
int *pu=(int *)asdlol;



*pb = 1;
*pu = 1;

return 0;
}

maybe it doesn't work because the instruction for change the vaulue of adress is only one time... so i decided to make a infinite DO cycle, but nothing, pls, someone help me!



Sry WarPathSin, i didn't know that you had moved my post... I've reposted it because i wasn't able to found it... sry
Quote Originally Posted by Sixx93 View Post
Hi all, if someone can help me i will thank a lot him.. so i'm trying to make my first memory hack for Combat Arms (my first hack ever was a D3D if you remember BOSCHACK.dll)... I've no error but when i Inject it, it doesn't work, i don't know why...
Here the source:


#include "stdafx.h"
#include <iostream>
#include <windows.h>

using namespace std;

#define lolasd 0x006D452C //Boxes
#define asdlol 0x37577868 //Unlimited Respawn


int main()
{ int *pb=(int *)lolasd;
int *pu=(int *)asdlol;



*pb = 1;
*pu = 1;

return 0;
}

maybe it doesn't work because the instruction for change the vaulue of adress is only one time... so i decided to make a infinite DO cycle, but nothing, pls, someone help me!



Sry WarPathSin, i didn't know that you had moved my post... I've reposted it because i wasn't able to found it... sry
is that your full source?
Im new to combat arms hack programming, But where is your hackthread
Seems like your missing that lol
Dll's have DllMain, not main..
Did you actually try injecting an executable into Combat Arms?
yeh that wouldn't do anything. Windows does not allow you to point to other memory segements outside. Your programs defined space. One way to access another memory space is a .DLL that would share memory space with the target program, or using windows messege system to interact with it. This is rather pathetic really. I'm not sure how you were able to make a D3D hack which is more complicated then a simple memory hack.
Quote Originally Posted by why06 View Post
yeh that wouldn't do anything. Windows does not allow you to point to other memory segements outside. Your programs defined space. One way to access another memory space is a .DLL that would share memory space with the target program, or using windows messege system to interact with it. This is rather pathetic really. I'm not sure how you were able to make a D3D hack which is more complicated then a simple memory hack.
Actually he was trying to write a dll (based on how he worded his post), he just failed miserably.
do have a working bypass?
Quote Originally Posted by xxridgexx View Post
do have a working bypass?
There's nothing to bypass in this, this aint even a dll o__O
how did he make a d3d hack when he cant make a simple memory hack?
Lol
Quote Originally Posted by ac1d_buRn View Post
how did he make a d3d hack when he cant make a simple memory hack?
Lol
He meant, he copy and pasted. He didn't actually make it.
Everyone should know by now that:
Code:
if(OnMPGH)
{
    iWrote = iCopiedPasted;
}
lol
Quote Originally Posted by B1ackAnge1 View Post
Everyone should know by now that:
Code:
if(OnMPGH)
{
    iWrote = iCopiedPasted;
}
lol
haha. lol
Quote Originally Posted by Void View Post
He meant, he copy and pasted. He didn't actually make it.
nono, dear.... i've made it by me at all.... i've tryed to make a memory hack because at school i've just made the pointer so i've tryed to make it....
Maybe this will get you started, however you still need some sort of bypass and a UD injector.

Code:
	#include <windows.h>
	#include <stdio.h>
	 
	int *Addy = (int*)0x2D624604; //Adress
	
	DWORD ThreadID;
	 
	DWORD WINAPI Action(LPVOID lParam) {

	 long ammo=30; //Value to write
        DWORD Protection;
     while(1==1){
	 Sleep(10);
	 if(GetAsyncKeyState('Z') == -32767){ //Check for hotkey
	
VirtualProtect(Addy, 4, PAGE_READWRITE, &Protection);
memcpy(Addy, &t , sizeof(t));
VirtualProtect(Addy, 4, Protection, &Protection);
	
			}
			}
	          
	 ExitThread(0);
	}
	  
	BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{ 
	 if(fdwReason == DLL_PROCESS_ATTACH) {
				MessageBox(0, "CA = Injected ", "Notice", MB_ICONEXCLAMATION | MB_OK);
	             CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&Hack, 0, 0, &ThreadID);
	 }
	     
	 return 0;
	}
Should be DWORD WINAPI Hack(LPVOID lParam) btw.
I may be blind but.. you're copying what ever is in "t" into Addy but I don't see "t" being declared anywhere.

Off topic: ctpsolo, you can just edit posts, with the little edit button on the bottom right of your post. Don't double post.
Posts 1–15 of 15 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us