Solved can? .. Help me

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

Supplier-

Newbie
Sep 2, 2014
3
102
0
C++:
#include <Windows.h>
#include "stdio.h"
#include <time.h>
#include "Main.h"
#include "ShotBot.h"

FILE* pFile;

void AddressesPrinter()
{
time_t rawtime;
struct tm * timeinfo;
time (&rawtime);
timeinfo = localtime (&rawtime);
fprintf(pFile, "Current local time and date: %s\n\n", asctime(timeinfo));
fprintf(pFile, "GetModuleHandleA : %.8X\n", m_CodeBase);
fprintf(pFile, "GetModuleHandleA + 0x48F2B5 : %.8X\n", m_CodeLength);
fprintf(pFile, "SerialKey : %.8X\n", SerialKey);
fprintf(pFile, "ZCombatInterface::SetPickTarget : %.8X\n", SetPickTarget);
fprintf(pFile, "ZProtection : %.8X\n", ZProtection);

if(*(BYTE*)(void*)ZProtection == 0xC3)
fprintf(pFile, "\n\nAnti-Hack Successfully Bypassed!");
else
{
fprintf(pFile, "\n\nAnti-Hack Unsuccessfully Bypassed!\nExitProcess...\nBye!");
ExitProcess(0);
}

fclose(pFile);
}

bool APIENTRY DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
Sleep(7100);

WriteProcessMemory(GetCurrentProcess(), (void*)ZProtection, "\xC3", 1, 0);    
VirtualProtectEx(GetCurrentProcess(), (void*)ZProtection, 1, 0, 0);

pFile = fopen("FGunz.ini", "w");
AddressesPrinter();

g_CrosshairLockHook = new CDetour((void*)SetPickTarget, ShotBotThread);
}
return true;
}

Main.h

Cita:
bool CompareByteArrays(BYTE* data1, BYTE* data2, int len)
{
if (data1==NULL && data2==NULL)
return true;
if (data1==NULL || data2==NULL)
return false;

for (int i=0; i < len; i++)
{
if (data1[i] != data2[i])
if(data2[i] != 0xEE)
return false;
}

return true;
}

DWORD m_CodeBase = (DWORD)GetModuleHandleA(NULL) + 0x001000;
DWORD m_CodeLength = (DWORD)GetModuleHandleA(NULL) + 0x48F2B5;

DWORD SigSearch(BYTE* Signature, int SigLength) 
{
BYTE* test = NULL;
for(unsigned int i = 0; i < (m_CodeLength-SigLength); i++) 
{
if(CompareByteArrays((BYTE*)((DWORD)m_CodeBase + i), Signature,SigLength)) 
{
return (DWORD)m_CodeBase + i;
}
}
return 0;
}

BYTE SerialKeyBytes[] = {0x3D, 0xFF, 0xFF, 0x00, 0x00};
DWORD SerialKey = SigSearch(SerialKeyBytes, sizeof(SerialKeyBytes));

BYTE ZCombatInterface__SetPickTargetBytes[] = {0x55, 0x8B, 0xEC, 0x81, 0xEC, 0x90, 0x00, 0x00, 0x00, 0x56, 0x89, 0x4D, 0x80};
DWORD SetPickTarget = SigSearch(ZCombatInterface__SetPickTargetBytes, sizeof(ZCombatInterface__SetPickTargetBytes));

BYTE ZProtectionBytes[] = {0x55 ,0x8B ,0xEC ,0x81 ,0xEC ,0x88 ,0x04 ,0x00 ,0x00 ,0xA1 ,0xE8 ,0x09 ,0xEE ,0xEE ,0x33 ,0xC5 ,0x89 ,0x45 ,0xFC ,0x53, 0x56, 0x57, 0x6A, 0xFE, 0xE8};
DWORD ZProtection = SigSearch(ZProtectionBytes, sizeof(ZProtectionBytes));

ShotBot.h

Cita:
#include "Detour.h"

const int State[]= {MOUSEEVENTF_LEFTDOWN, MOUSEEVENTF_LEFTUP};
bool bShotbot = false, bRepeat = false;

void StartShotBot(bool bStart)
{
if(bStart)
{
INPUT ip;
ip.type= INPUT_MOUSE;
ip.mi.dx = 0;
ip.mi.dy = 0;
ip.mi.dwExtraInfo = 0;

if(!bRepeat)
bShotbot = true;

if((bShotbot) || bRepeat)
{
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
Sleep(10);

ip.mi.dwFlags = State[bRepeat];
SendInput(1, &ip, sizeof(INPUT));

bRepeat =! bRepeat;
}
}
}

void __stdcall ShotBotThread(bool bPick, DWORD Param2)
{
DWORD pClass;
__asm
{
mov pClass,ecx
}

StartShotBot(bPick);

void* FuncAddress = g_CrosshairLockHook->Tramp;
__asm
{
push Param2
push bPick
mov ecx,pClass
mov eax,FuncAddress
call eax
}
}

Detour.h

Cita:
#include "detours.h"
#pragma comment(lib, "detours.lib")

class CDetour
{
public:
void* Tramp;
void* Target;
void* Det;

CDetour(void* From, void* To)
{
DetourTransactionBegin();
DetourUpdateThread(GetCurrentThread());
DetourAttachEx(&From, To, (DETOUR_TRAMPOLINE**)&Tramp, &Target, &Det);
DetourTransactionCommit();
}
};
CDetour* g_CrosshairLockHook;
 
Last edited by a moderator:

Cryslacks

<>>>
Dank Tier Donator
Nobleman
Dec 10, 2013
132
1,198
8
What do you need help with?
please specify language and problems+ errors
 

Cryslacks

<>>>
Dank Tier Donator
Nobleman
Dec 10, 2013
132
1,198
8
So the problem is something you dont even know?
what is a shotbot? is it an aimbot or a triggerbot or what? :/
please sir give more info about the code, if you dont know anything about it i highly suggest you too not copy and paste code and start learning it instead!
 

squeenie

Hacker
Meme Tier VIP
Dank Tier Donator
Mar 6, 2013
677
5,478
37
I think I see what your problem is, you see, you have copied some code you don't understand and that's just not how it works.

SOLUTION:
Do what everybody else here did and put in some effort to learn or go to some magical place where people just pull hax out of their asses for free.
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods