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
Last edited by Sixx93; 01-11-2010 at 01:17 PM.
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.
"Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."- Dwight D. Eisenhower
how did he make a d3d hack when he cant make a simple memory hack?
Lol
Everyone should know by now that:
lolCode:if(OnMPGH) { iWrote = iCopiedPasted; }
Void (01-12-2010)
Maybe this will get you started, however you still need some sort of bypass and a UD injector.
Should be DWORD WINAPI Hack(LPVOID lParam) btw.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; }
Last edited by why06; 01-13-2010 at 09:59 AM.
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.