OutdatedPP Subtle-aimbot & Triggerbot - PolyHack - Auto Updating

Posts 676–690 of 739 · Page 46 of 50
its doing nothing for me?
This is so cool!

I have edited it a bit, making the Sleep() values less so it has better accuracy.
See how my Thread looks now:

Code:
static DWORD WINAPI myFn(HANDLE)
{
	static INT nPlrId, nNewPlrId;
	static FLOAT fPlayerPos[3], fEnemyPos[3], fAimAngle[3], fCurAngle[3];

	while (TRUE)
	{
		Sleep(2);

		if (g_bON)
		{
			nPlrId = Player.GetCrosshairId();

			if (nPlrId >= 64 || nPlrId < 1 || !g_bON)
				continue;

			while (EntityList.GetTeam(nPlrId) != Player.GetTeam() && !EntityList.Dead(nPlrId) && g_bON)
			{
				nNewPlrId = Player.GetCrosshairId();

				if (g_bON && nNewPlrId < 64 && nNewPlrId > 0 && EntityList.GetTeam(nNewPlrId) != Player.GetTeam() && !EntityList.Dead(nNewPlrId))
					nPlrId = nNewPlrId;

				if (nPlrId >= 64 || nPlrId < 1 || !g_bON)
					break;

				Player.GetPosition(fPlayerPos);
				EntityList.GetBonePosition(nPlrId, fEnemyPos);
				VelocityComp(nPlrId, fEnemyPos);
				CompAng(fPlayerPos, fEnemyPos, fAimAngle);
				AngleNormalize(fAimAngle);
				Player.GetAngles(fCurAngle);
				AngleNormalize(fCurAngle);
				SmoothAngleSet(fAimAngle, fCurAngle);
			};
		};
	};
};

//

VOID main(VOID)
{
	atexit(OnExit);

	New();

	CreateThread(0, 0x1000, &myFn, 0, 0, 0);

DoSomeSleep:
	Sleep(30);

	if (GetAsyncKeyState(VK_F12) == -32767)
	{
		g_bON = g_bON ? false : true;

		PlaySound(g_bON ? "on.wav" : "off.wav", nullptr, SND_ASYNC);

		Sleep(100);
	};

	goto DoSomeSleep;
};
And there were a few memory leaks in functions:

Code:
static VOID OnExit(VOID)
{
	if (g_pTarget)
	{
		CloseHandle(g_pTarget);

		g_pTarget = nullptr;
	};
};

//

static HANDLE ProcHndByName(PCHAR pszName)
{
	PROCESSENTRY32 Entry;
	Entry.dwSize = sizeof(PROCESSENTRY32);
	HANDLE pSnap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);

	if (Process32First(pSnap, &Entry))
	{
		if (_stricmp(Entry.szExeFile, pszName) == 0)
		{
			CloseHandle(pSnap);

			return OpenProcess(PROCESS_ALL_ACCESS, FALSE, Entry.th32ProcessID);
		}

		else
		{
			while (Process32Next(pSnap, &Entry))
			{
				if (_stricmp(Entry.szExeFile, pszName) == 0)
				{
					CloseHandle(pSnap);

					return OpenProcess(PROCESS_ALL_ACCESS, FALSE, Entry.th32ProcessID);
				};
			};
		};
	};

	CloseHandle(pSnap);

	return nullptr;
};

//

	static DWORD FindPattern(DWORD dwStart, DWORD dwSize, CONST CHAR * pszSig, CONST CHAR * pszMask)
	{
		BYTE * pData = new BYTE[dwSize];

		if (!pData)
		{
			delete[] pszSig;
			pszSig = nullptr;

			return 0;
		};

		ULONG Bytes;
		if (!ReadProcessMemory(g_pTarget, (HANDLE)dwStart, pData, dwSize, &Bytes))
		{
			delete[] pData;
			pData = nullptr;

			delete[] pszSig;
			pszSig = nullptr;

			return 0;
		};

		for (DWORD dwI = 0; dwI < dwSize; dwI++)
		{
			if (DataCompare((CONST BYTE *)(pData + dwI), (CONST BYTE *)pszSig, pszMask))
			{
				delete[] pData;
				pData = nullptr;

				delete[] pszSig;
				pszSig = nullptr;

				return dwStart + dwI;
			};
		};

		delete[] pData;
		pData = nullptr;

		delete[] pszSig;
		pszSig = nullptr;

		return 0;
	};
Thank you so, so much!
I have this error please help me :3
Windows: 8.1
VS Installed: 2013 Windows Desktop ( The one that PP/Mercy asked in thread)

Photo:

@Merccy2
Quote Originally Posted by damnskoy View Post
I have this error please help me :3
Windows: 8.1
VS Installed: 2013 Windows Desktop ( The one that PP/Mercy asked in thread)

Photo:

@Merccy2

You're using wrong Visual Studio.

Look video in first post. Setup true visual studio.
Quote Originally Posted by damnskoy View Post
I have this error please help me :3
Windows: 8.1
VS Installed: 2013 Windows Desktop ( The one that PP/Mercy asked in thread)

Photo:

@Merccy2
u're using wrong Visual Studio.
Install Visual Studio 2015 CTP 6 if you're on Windows 8 or above.
And BTW, this is the content of TlHelp32.h

Code:
/*****************************************************************************\
*                                                                             *
* tlhelp32.h -  WIN32 tool help functions, types, and definitions             *
*                                                                             *
* Version 1.0                                                                 *
*                                                                             *
* NOTE: windows.h/winbase.h must be #included first                           *
*                                                                             *
* Copyright (c) Microsoft Corp.  All rights reserved.                         *
*                                                                             *
\*****************************************************************************/

#ifndef _INC_TOOLHELP32
#define _INC_TOOLHELP32

#if _MSC_VER > 1000
#pragma once
#endif

#ifdef __cplusplus
extern "C" {            /* Assume C declarations for C++ */
#endif  /* __cplusplus */

#define MAX_MODULE_NAME32 255

/****** Shapshot function **********************************************/

HANDLE
WINAPI
CreateToolhelp32Snapshot(
    DWORD dwFlags,
    DWORD th32ProcessID
    );

//
// The th32ProcessID argument is only used if TH32CS_SNAPHEAPLIST or
// TH32CS_SNAPMODULE is specified. th32ProcessID == 0 means the current
// process.
//
// NOTE that all of the snapshots are global except for the heap and module
//      lists which are process specific. To enumerate the heap or module
//      state for all WIN32 processes call with TH32CS_SNAPALL and the
//      current process. Then for each process in the TH32CS_SNAPPROCESS
//      list that isn't the current process, do a call with just
//      TH32CS_SNAPHEAPLIST and/or TH32CS_SNAPMODULE.
//
// dwFlags
//
#define TH32CS_SNAPHEAPLIST 0x00000001
#define TH32CS_SNAPPROCESS  0x00000002
#define TH32CS_SNAPTHREAD   0x00000004
#define TH32CS_SNAPMODULE   0x00000008
#define TH32CS_SNAPMODULE32 0x00000010
#define TH32CS_SNAPALL      (TH32CS_SNAPHEAPLIST | TH32CS_SNAPPROCESS | TH32CS_SNAPTHREAD | TH32CS_SNAPMODULE)
#define TH32CS_INHERIT      0x80000000
//
// Use CloseHandle to destroy the snapshot
//

/****** heap walking ***************************************************/

typedef struct tagHEAPLIST32
{
    SIZE_T dwSize;
    DWORD  th32ProcessID;   // owning process
    ULONG_PTR  th32HeapID;      // heap (in owning process's context!)
    DWORD  dwFlags;
} HEAPLIST32;
typedef HEAPLIST32 *  PHEAPLIST32;
typedef HEAPLIST32 *  LPHEAPLIST32;
//
// dwFlags
//
#define HF32_DEFAULT      1  // process's default heap
#define HF32_SHARED       2  // is shared heap

BOOL
WINAPI
Heap32ListFirst(
    HANDLE hSnapshot,
    LPHEAPLIST32 lphl
    );

BOOL
WINAPI
Heap32ListNext(
    HANDLE hSnapshot,
    LPHEAPLIST32 lphl
    );

typedef struct tagHEAPENTRY32
{
    SIZE_T dwSize;
    HANDLE hHandle;     // Handle of this heap block
    ULONG_PTR dwAddress;   // Linear address of start of block
    SIZE_T dwBlockSize; // Size of block in bytes
    DWORD  dwFlags;
    DWORD  dwLockCount;
    DWORD  dwResvd;
    DWORD  th32ProcessID;   // owning process
    ULONG_PTR  th32HeapID;      // heap block is in
} HEAPENTRY32;
typedef HEAPENTRY32 *  PHEAPENTRY32;
typedef HEAPENTRY32 *  LPHEAPENTRY32;
//
// dwFlags
//
#define LF32_FIXED    0x00000001
#define LF32_FREE     0x00000002
#define LF32_MOVEABLE 0x00000004

BOOL
WINAPI
Heap32First(
    LPHEAPENTRY32 lphe,
    DWORD th32ProcessID,
    ULONG_PTR th32HeapID
    );

BOOL
WINAPI
Heap32Next(
    LPHEAPENTRY32 lphe
    );

BOOL
WINAPI
Toolhelp32ReadProcessMemory(
    DWORD   th32ProcessID,
    LPCVOID lpBaseAddress,
    LPVOID  lpBuffer,
    SIZE_T  cbRead,
    SIZE_T *lpNumberOfBytesRead
    );

/***** Process walking *************************************************/

typedef struct tagPROCESSENTRY32W
{
    DWORD   dwSize;
    DWORD   cntUsage;
    DWORD   th32ProcessID;          // this process
    ULONG_PTR th32DefaultHeapID;
    DWORD   th32ModuleID;           // associated exe
    DWORD   cntThreads;
    DWORD   th32ParentProcessID;    // this process's parent process
    LONG    pcPriClassBase;         // Base priority of process's threads
    DWORD   dwFlags;
    WCHAR   szExeFile[MAX_PATH];    // Path
} PROCESSENTRY32W;
typedef PROCESSENTRY32W *  PPROCESSENTRY32W;
typedef PROCESSENTRY32W *  LPPROCESSENTRY32W;

BOOL
WINAPI
Process32FirstW(
    HANDLE hSnapshot,
    LPPROCESSENTRY32W lppe
    );

BOOL
WINAPI
Process32NextW(
    HANDLE hSnapshot,
    LPPROCESSENTRY32W lppe
    );

typedef struct tagPROCESSENTRY32
{
    DWORD   dwSize;
    DWORD   cntUsage;
    DWORD   th32ProcessID;          // this process
    ULONG_PTR th32DefaultHeapID;
    DWORD   th32ModuleID;           // associated exe
    DWORD   cntThreads;
    DWORD   th32ParentProcessID;    // this process's parent process
    LONG    pcPriClassBase;         // Base priority of process's threads
    DWORD   dwFlags;
    CHAR    szExeFile[MAX_PATH];    // Path
} PROCESSENTRY32;
typedef PROCESSENTRY32 *  PPROCESSENTRY32;
typedef PROCESSENTRY32 *  LPPROCESSENTRY32;

BOOL
WINAPI
Process32First(
    HANDLE hSnapshot,
    LPPROCESSENTRY32 lppe
    );

BOOL
WINAPI
Process32Next(
    HANDLE hSnapshot,
    LPPROCESSENTRY32 lppe
    );

#ifdef UNICODE
#define Process32First Process32FirstW
#define Process32Next Process32NextW
#define PROCESSENTRY32 PROCESSENTRY32W
#define PPROCESSENTRY32 PPROCESSENTRY32W
#define LPPROCESSENTRY32 LPPROCESSENTRY32W
#endif  // !UNICODE

/***** Thread walking **************************************************/

typedef struct tagTHREADENTRY32
{
    DWORD   dwSize;
    DWORD   cntUsage;
    DWORD   th32ThreadID;       // this thread
    DWORD   th32OwnerProcessID; // Process this thread is associated with
    LONG    tpBasePri;
    LONG    tpDeltaPri;
    DWORD   dwFlags;
} THREADENTRY32;
typedef THREADENTRY32 *  PTHREADENTRY32;
typedef THREADENTRY32 *  LPTHREADENTRY32;

BOOL
WINAPI
Thread32First(
    HANDLE hSnapshot,
    LPTHREADENTRY32 lpte
    );

BOOL
WINAPI
Thread32Next(
    HANDLE hSnapshot,
    LPTHREADENTRY32 lpte
    );

/***** Module walking *************************************************/

typedef struct tagMODULEENTRY32W
{
    DWORD   dwSize;
    DWORD   th32ModuleID;       // This module
    DWORD   th32ProcessID;      // owning process
    DWORD   GlblcntUsage;       // Global usage count on the module
    DWORD   ProccntUsage;       // Module usage count in th32ProcessID's context
    BYTE  * modBaseAddr;        // Base address of module in th32ProcessID's context
    DWORD   modBaseSize;        // Size in bytes of module starting at modBaseAddr
    HMODULE hModule;            // The hModule of this module in th32ProcessID's context
    WCHAR   szModule[MAX_MODULE_NAME32 + 1];
    WCHAR   szExePath[MAX_PATH];
} MODULEENTRY32W;
typedef MODULEENTRY32W *  PMODULEENTRY32W;
typedef MODULEENTRY32W *  LPMODULEENTRY32W;

BOOL
WINAPI
Module32FirstW(
    HANDLE hSnapshot,
    LPMODULEENTRY32W lpme
    );

BOOL
WINAPI
Module32NextW(
    HANDLE hSnapshot,
    LPMODULEENTRY32W lpme
    );


typedef struct tagMODULEENTRY32
{
    DWORD   dwSize;
    DWORD   th32ModuleID;       // This module
    DWORD   th32ProcessID;      // owning process
    DWORD   GlblcntUsage;       // Global usage count on the module
    DWORD   ProccntUsage;       // Module usage count in th32ProcessID's context
    BYTE  * modBaseAddr;        // Base address of module in th32ProcessID's context
    DWORD   modBaseSize;        // Size in bytes of module starting at modBaseAddr
    HMODULE hModule;            // The hModule of this module in th32ProcessID's context
    char    szModule[MAX_MODULE_NAME32 + 1];
    char    szExePath[MAX_PATH];
} MODULEENTRY32;
typedef MODULEENTRY32 *  PMODULEENTRY32;
typedef MODULEENTRY32 *  LPMODULEENTRY32;

//
// NOTE CAREFULLY that the modBaseAddr and hModule fields are valid ONLY
// in th32ProcessID's process context.
//

BOOL
WINAPI
Module32First(
    HANDLE hSnapshot,
    LPMODULEENTRY32 lpme
    );

BOOL
WINAPI
Module32Next(
    HANDLE hSnapshot,
    LPMODULEENTRY32 lpme
    );

#ifdef UNICODE
#define Module32First Module32FirstW
#define Module32Next Module32NextW
#define MODULEENTRY32 MODULEENTRY32W
#define PMODULEENTRY32 PMODULEENTRY32W
#define LPMODULEENTRY32 LPMODULEENTRY32W
#endif  // !UNICODE


#ifdef __cplusplus
}
#endif

#endif // _INC_TOOLHELP32
wonder wats up with mercy he is usually really active not like him to not check his threads
Still ud and work ?
DWORD DwEntityList = 0x049ec244;
DWORD DwEnginePointer = 0x00559434;
DWORD DwLocalPlayer = 0x00a4a9bc;
DWORD DwViewAngle = 0x4CE0;

Should work, works for me.
Offsets can be used for the other hacks as well.
Quote Originally Posted by emberofafire View Post
DWORD DwEntityList = 0x049ec244;
DWORD DwEnginePointer = 0x00559434;
DWORD DwLocalPlayer = 0x00a4a9bc;
DWORD DwViewAngle = 0x4CE0;

Should work, works for me.
Offsets can be used for the other hacks as well.
Thanks man I'll try them out now see if they work.

--EDIT--

Unfortunately updating the offsets made no difference, maybe I did something wrong, gonna go investigate.
Quote Originally Posted by dcmty0 View Post
Thanks man I'll try them out now see if they work.

--EDIT--

Unfortunately updating the offsets made no difference, maybe I did something wrong, gonna go investigate.
Build Date : 21/4/2015 - 18:30:2

- - - - - - - - - - - -
- Tool by Y3t1y3t(uc) -
- - - - - - - - - - - -

- - - - - - -
- Entities' -
- - - - - - -

> LocalPlayer 0xA4A9BC
> EntityList 0x49EC244

- - - - - - -
- RadarBase -
- - - - - - -

> RadarBase 0x4A20EEC
> RadarPointer 0x50
> RadarHealth 0x20
> RadarName 0x24
> RadarSize 0x1E0

- - - - - -
- NetVars -
- - - - - -

> m_flNextPrimaryAttack 0x159C
> m_hOwner 0x1594
> m_iState 0x15B4
> m_iClip1 0x15C0
> m_iClip2 0x15C4
> m_hActiveWeapon 0x12C0
> m_bSpotted 0x935
> m_hOwnerEntity 0x148
> m_vecOrigin 0x134
> m_iTeamNum 0xF0
> m_Local 0x1378
> m_vecViewOffset 0x104
> m_nTickBase 0x17CC
> m_vecVelocity 0x110
> m_vecBaseVelocity 0x11C
> m_lifestate 0x25B
> m_fFlags 0x100
> m_iHealth 0xFC
> m_iFOV 0x1598
> m_iFOVStart 0x159C
> m_flFlashMaxAlpha 0x1DA4
> m_flFlashDuration 0x1DA8
> m_angEyeAngles 0x23A4
> m_iAccount 0x2394
> m_iCrossHairID 0x2400
> m_fAccuracyPenalty 0x1668
> m_iWeaponID 0x1684
> m_vecPunch 0x13E8

- - - - -
- Other -
- - - - -

> BoneMatrix 0xA78
> GlobalVars 0x5590C0
> EnginePointer 0x559434
> EnginePosition 0x6048A4
> SetViewAngle 0x4CE0
> ViewMatrix1 0x49E17D4
> ViewMatrix2 0x49E18E4
These are all the new offsets, dont know why its not working for you
MINE IS KEEP ON SAYING "Something went wrong when compiling the randomized source" any help?
Posts 676–690 of 739 · Page 46 of 50
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us