-
HELP WITH MY BASE
ok this code is actually leeched, and its my first time doing something like this, so i pretty much took it and modified some things, but what I do not understand is.
1- how did they know that noReload is 0x26A4 and WeaponMgr is 0xAAC3D0
2- why the X-Trap pops up saying abnormal memory access?
#include <Windows.h>
void ShowMessage(char* string, DWORD CShell);//credits to DaRk For Message Box
#include <fstream>
#include <iostream>
#define NoReload 0x26A4
#define WeaponMgr 0xAAC3D0
#define NoRecoil1 0x051C
#define Norecoil2 0x0684
#define Norecoil3 0x1938
#define Norecoil4 0x1B14
#define Norecoil5 0x1FA0
#define Norecoil6 0x2108
void test1(void)
{
int szf = sizeof(float);
int szd = sizeof(DWORD);
bool norecoil = true;
bool noreload = false;
DWORD WeaponClass = NULL;
DWORD pWeaponMgr = NULL;
while(1)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
ShowMessage("Yatgari Hack V1",CShell);
while(1)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
if(GetAsyncKeyState(VK_F11)&1) {
noreload = !noreload;
}
{
if(norecoil)
{
for(int y = 0; y<10; y++)
{
*(float*)( NoRecoil1 + (0x051C + (szf*y))) = (float)0;
*(float*)( Norecoil2 + (0x0684 + (szf*y))) = (float)0;
*(float*)( Norecoil3 + (0x1938 + (szf*y))) = (float)0;
*(float*)( Norecoil4 + (0x1B14 + (szf*y))) = (float)0;
*(float*)( Norecoil5 + (0x1FA0 + (szf*y))) = (float)0;
*(float*)( Norecoil6 + (0x2108 + (szf*y))) = (float)0;
}
}
}
for(int i=0; i<600; i++)
{
pWeaponMgr = (*(DWORD*)(WeaponClass + (szd*i)));
if(pWeaponMgr != NULL)
{
if(pWeaponMgr){
if(noreload)
{
*(float*)(pWeaponMgr + 0x26A4) = (float)72;
}
}
}
}
}
}
}
DWORD WINAPI Yatagari11 (LPVOID)
{
test1();
return 1;
}
BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
if (dwReason == DLL_PROCESS_ATTACH)
{
}
if (GetModuleHandleA("CShell.dll") && GetModuleHandleA("ClientFx.Fxd") )
{
DisableThreadLibraryCalls(hDll);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)test1, NULL, NULL, NULL);
}
return TRUE;
}
void ShowMessage(char* string, DWORD CShell)
{
DWORD MsgBoxFunc = CShell + 0x838F0;
__asm
{
push string;
push 0;
push 0x70;
push 0x1C;
call MsgBoxFunc;
add esp, 16;
}
}
-
-
Your first question would be answered if you read this:
https://www.mpgh.net/forum/242-crossf...must-read.html
X-Trap pops up saying abnormal memory access because your base is DETECTED
-
ok I after reading it I figured out the new addys and offsets and made this.
and how do they detect a base??
this my new modified one
#include "windows.h"
#define WeaponMgr 0xAB2940
#define NoRecoil1 0x53C
#define NoRecoil2 0x6A4
#define NoRecoil3 0x1958
#define NoRecoil4 0x1964
#define NoRecoil5 0x1FC0
#define NoRecoil6 0x2128
#define NoRecoil7 0x2290
using namespace std;
DWORD WINAPI hack1(LPVOID param) {
bool noreload = true;
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD Wapenclass = *(PDWORD)(CShell + WeaponMgr);
int main();
if(noreload) {
for(int i=0 ; i<600 ; i++) {
for(int y = 0; y<10; y++)
{
DWORD curwapen = *(DWORD*)(Wapenclass +(4*i));
if (curwapen) {
*(float*)((((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil1) = 0.0f;
*(float*)((((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil2) = 0.0f;
*(float*)((((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil3) = 0.0f;
*(float*)((((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil4) = 0.0f;
*(float*)((((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil5) = 0.0f;
*(float*)((((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil6) = 0.0f;
*(float*)((((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil7) = 0.0f;
}
}
}
}
return true;
}
BOOL WINAPI runner(LPVOID) {
Sleep(9800);
try {
DWORD dllfile = (DWORD)GetModuleHandleA("CShell.dll");
if(dllfile == false) {
throw 1;
}
}
catch (int error) {
switch(error) {
case 1:
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)runner, NULL, NULL, NULL);
return false;
default:
return true;
}
}
Beep(1000,1000);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)hack1, NULL, NULL, NULL);
return true;
---------- Post added at 01:56 AM ---------- Previous post was at 01:53 AM ----------
u sure my code is fine o.O