Download Noob Telekill :D

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

Loset

Newbie
Full Member
Jan 13, 2016
46
363
1
C++:
// dllmain.cpp : Defines the entry point for the DLL application.
#define _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_DEPRECATE
#include "stdafx.h"
#include "C:\Program Files (x86)\Microsoft Research\Detours Express 3.0\src\detours.h"
#include "stdafx.h"
#include <windows.h> 
#include <stdio.h>
#include <mmsystem.h>
#include <sstream> //for std::stringstream 
#include <string>  //for std::string
#include "classes.h"
#include <iostream>

#pragma comment(lib,"c:/c++Libs/detours.lib")
using namespace std;

PVOID base = GetModuleHandleA("ac_client.exe");

//this function should have the same calling method, return value and parameters as our original too:
static HANDLE hConsoleWrite;
static HANDLE hConsoleRead;
PVOID offset = (PVOID)0x109B74;
PVOID playerPtr = (PVOID)((int)base + (int)offset);
Player * myPlayer = (Player*)playerPtr;

PVOID startoffset = (PVOID)0x5BD6D;
PVOID endOffset = (PVOID)0x5BD79;

PVOID addressStart = (PVOID)((int)base + (int)startoffset);
PVOID addressEnd = (PVOID)((int)base + (int)endOffset);
void CreateConsole()
{
	AllocConsole();
	hConsoleWrite = GetStdHandle(STD_OUTPUT_HANDLE);
	hConsoleRead = GetStdHandle(STD_INPUT_HANDLE);
	freopen("CONOUT$", "w", stdout);
}

void __declspec(naked) teleKill()
{
	_asm{
		PUSH EAX;
		PUSH EBP;
		MOV EAX, DWORD PTR DS : [0x509B74]; //static address to playerbase
		cmp EAX, ESI; //check if the current entity is me
		JE original; // jmp original if the entity is me.. else jmp to hook
		JMP hook;
		
	hook:
		
		MOV EBP, EAX; //mov playerbase to ebp
		MOV EAX, [EBP + 0x4]; // move player x to eax
		MOV [ESI + 0x4], EAX; //move player x to enemy x
		MOV EAX, [EBP + 0x8]; // mov player y to eax
		MOV ECX, [ESI + 0x3C]; // dont mind this.. part of original code
		MOV[ESI + 0x8], EAX; //mov player y to enemy y
		MOV EAX, [EBP + 0xC]; // mov player z to eax
		MOV[ESI + 0xC], EAX; //mov player z to enemy z
		POP EBP; // restore register
		POP EAX; // restore register
		jmp addressEnd; //jmp back to rest of original function

	original:
		MOV [ESI + 0x4], ECX;
		MOV ECX, [ESI + 0x3C];
		MOV [ESI + 0x8], EDX;
		MOV[ESI + 0xC], ECX;
		POP EBP;
		POP EAX;
		jmp addressEnd;
	}


}

void HookFunctions()
{
	//Just so we don't hook twice lol
	static bool once = true;
	if (once) {
		once = false;
		//Tell it where the function is: (make sure address is right)
		//Encrypt = (oEncrypt)(address);
	
		DetourTransactionBegin();
		DetourUpdateThread(GetCurrentThread());
		//We attach our hooked function the the original
		DetourAttach(&(PVOID&)addressStart, teleKill);

		//Do this shit.
		DetourTransactionCommit();
	}

}


DWORD WINAPI testInject(LPVOID lpParam)
{
	//MessageBoxA(NULL, "Injected", "Injected",NULL);
	//CreateConsole();
	HookFunctions();
	return 0;
}



BOOL APIENTRY DllMain(HMODULE hModule,
	DWORD  ul_reason_for_call,
	LPVOID lpReserved
	)
{
	switch (ul_reason_for_call)
	{
	case DLL_PROCESS_ATTACH:
		DisableThreadLibraryCalls(GetModuleHandle(NULL));
		CreateThread(NULL, 0, testInject, NULL, 0, 0);
	case DLL_THREAD_ATTACH:
	case DLL_THREAD_DETACH:
	case DLL_PROCESS_DETACH:
		break;
	}
	return TRUE;
}
teleports enemies to you .. DOESN'T WORK ONLINE
 
Last edited:

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,118
78,998
2,392
Thanks for sharing! I slapped some C++ tags on it for you

I'm curious, what function did you hook?
 

Loset

Newbie
Full Member
Jan 13, 2016
46
363
1
Rake;41068 said:
Thanks for sharing! I slapped some C++ tags on it for you

I'm curious, what function did you hook?
ac_client.exe+5BD40

I only knew that its changing the pos and I didnt know what were the arguments for this function or what typedef to use..
except that its getting playerbase for each player/bot

so I used mid function hooking
 

Nazalas

Coder
Dank Tier VIP
Dank Tier Donator
May 20, 2015
99
3,963
3
Very nice!!

Just so you know, you #include "stdafx.h" twice.
 

Loset

Newbie
Full Member
Jan 13, 2016
46
363
1
Rake;41068 said:
Thanks for sharing! I slapped some C++ tags on it for you

I'm curious, what function did you hook?
seems this wont work online because it only teleports me to players once they are dead.. meaning the function only process them when they die?
I guess I need to iterate over all the players to do it properly..
 
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.

Similar threads

Community Mods