Register for your free account! | Forgot your password?

Go Back   elitepvpers > Shooter > WarRock
You last visited: Today at 15:02

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[C++ Source Code]Position Logger.

Discussion on [C++ Source Code]Position Logger. within the WarRock forum part of the Shooter category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2010
Posts: 71
Received Thanks: 134
[C++ Source Code]Position Logger.

Hallo Community,
ich Release hier den Source Code meines Position Loggers den ich in C++ Programmiert habe
Wenn man damit ingame Numpad 0 drückt speichert er die Aktuelle Position ( X , Y , Z ) in einer Datei Namens 'Positions.txt'
Sehr nützlich für z.B. Tele. to Ammo / Tele. to Health / Tele. to Bomb etc.


Brain.cpp:
Code:
#include <windows.h>
#include <stdio.h>
#include "Log.h"

#define Playerpointer 0xC62388

#define X 0x000102D4
#define Y 0x000102DC
#define Z 0x000102D8


float fX_1;
float fY_1;
float fZ_1;

char cX_1[32];
char cY_1[32];
char cZ_1[32];

VOID LogPosition(VOID)
{
	Writelog("//------------------------------------------//");
	Writelog("///Position Logger by BlacK_Data///");
	Writelog("//------------------------------------------//");
	for(;;)
	{
		DWORD Player = *(DWORD*)Playerpointer;
		if(GetAsyncKeyState(VK_NUMPAD0)&1)
		{
			fX_1 = *(float*)(Player+X);
			fY_1 = *(float*)(Player+Y);
			fZ_1 = *(float*)(Player+Z);

			sprintf_s(cX_1,"X: %f",fX_1);
			sprintf_s(cY_1,"Y: %f",fY_1);
			sprintf_s(cZ_1,"Z: %f",fZ_1);

			Writelog(cX_1);
			Writelog(cY_1);
			Writelog(cZ_1);
			Writelog("");
		}
	}
}


BOOL __stdcall DllMain( HMODULE hDll , DWORD Reason , LPVOID lpReserved )
{
if(Reason==DLL_PROCESS_ATTACH)
{
	logging(hDll);
	CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)LogPosition, NULL, NULL, NULL); 
}
return TRUE;
}
Log.cpp:
Code:
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <fstream>
#include <stdio.h>

#pragma warning(disable:4996)

using namespace std;

ofstream ofile;
char dlldirectory[320];

char *GetDirectoryFile(char *filename)
{
static char path[320];
strcpy(path, dlldirectory);
strcat(path, filename);
return path;
}

void __cdecl Writelog(const char *fmt, ...)
{
if(ofile != NULL)
{
if(!fmt) { return; }
va_list va_alist;
char logbuf[256] = {0};
va_start (va_alist, fmt);
_vsnprintf (logbuf+strlen(logbuf), sizeof(logbuf) - strlen(logbuf), fmt, va_alist);
va_end (va_alist);
ofile << logbuf << endl;
}}

void logging(HMODULE hDll){
DisableThreadLibraryCalls(hDll);
GetModuleFileName(hDll, dlldirectory, 512);
for(int i = strlen(dlldirectory); i > 0; i--) { if(dlldirectory[i] == '\\') { dlldirectory[i+1] = 0; break; } }
ofile.open(GetDirectoryFile("Positions.txt"), ios::app);
}
Log.h:
Code:
char *GetDirectoryFile(char *filename);
void __cdecl Writelog (const char * fmt, ...);
void logging(HMODULE hDll);
Credits:
BlacK_Data
Pheron (log)
BlacK_Ðata is offline  
Thanks
3 Users
Old 11/05/2010, 17:11   #2
 
TheMiddle™'s Avatar
 
elite*gold: 0
Join Date: Oct 2010
Posts: 1,140
Received Thanks: 493
Was bringt der?
TheMiddle™ is offline  
Old 11/05/2010, 17:20   #3
 
elite*gold: 0
Join Date: Oct 2010
Posts: 71
Received Thanks: 134
Quote:
Wenn man damit ingame Numpad 0 drückt speichert er die Aktuelle Position in einer Datei Namens 'Positions.txt':
^This.

~BlacK_Data
BlacK_Ðata is offline  
Old 11/05/2010, 17:22   #4

 
xxfabbelxx's Avatar
 
elite*gold: 900
Join Date: Apr 2009
Posts: 14,981
Received Thanks: 11,403
Hmm schön und gut, scheint aber nichts wirkliches zu bringen

Vielleicht kann das irgendein Coder ja zu ner Hackfunktion umfunktionieren ^^
xxfabbelxx is offline  
Old 11/05/2010, 17:22   #5
 
Xatar™'s Avatar
 
elite*gold: 98
Join Date: Nov 2009
Posts: 2,587
Received Thanks: 874
Releases gehören hier hin:

moverequest
Xatar™ is offline  
Old 11/05/2010, 17:22   #6
 
Tyrarius's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 1,310
Received Thanks: 502
kann man den auch in einen nomenu mit einfügen? es sind ja 2 .cpp dateien

Edit: Achso, ich dachte zuerst an Teleport Save und Teleport Hack. Mit der Source speichert man nur die Koordinaten, mehr nicht?
Tyrarius is offline  
Old 11/05/2010, 17:38   #7
 
Willi35's Avatar
 
elite*gold: 9
Join Date: Oct 2010
Posts: 395
Received Thanks: 812
Lol Leecheg from WarHax.

HIer:

Jetzt komm ja nicht das bist du, sonst bekomme ich einen lach Krampf.
Willi35 is offline  
Old 11/05/2010, 17:41   #8
 
lovemusic's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 445
Received Thanks: 126
Haha Fail.
C&P.
Thx´s Abstauber.

€: Mit nem blauen Auge davon gekommen..
lovemusic is offline  
Old 11/05/2010, 17:43   #9
 
elite*gold: 0
Join Date: Oct 2010
Posts: 71
Received Thanks: 134
Das bin ich!
Kanns auch gern in Topic schreiben
+ aufm screen sieht man deutlich das im code by BlacK_Data steht!
@willi: bitte post editieren!
@lovemusic: bitte post editieren!
BlacK_Ðata is offline  
Thanks
1 User
Old 11/05/2010, 17:46   #10
 
ShaD :)'s Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 285
Gibt viel einfache Formen ;X
ShaD :) is offline  
Old 11/05/2010, 17:49   #11

 
xxfabbelxx's Avatar
 
elite*gold: 900
Join Date: Apr 2009
Posts: 14,981
Received Thanks: 11,403
Quote:
Originally Posted by Xatar™ View Post
Releases gehören hier hin:

moverequest
Darum wäre ich für nen CodingSubforum
xxfabbelxx is offline  
Thanks
3 Users
Old 11/05/2010, 17:51   #12
 
Lucky Strike™'s Avatar
 
elite*gold: 2
Join Date: May 2010
Posts: 2,913
Received Thanks: 1,565
Quote:
Originally Posted by xxfabbelxx View Post
Hmm schön und gut, scheint aber nichts wirkliches zu bringen

Vielleicht kann das irgendein Coder ja zu ner Hackfunktion umfunktionieren ^^
Das zeigt, dass du nicht verstehst, um was es geht

Hast du nicht irgendwo geschrieben, du willst demnächst deinen D3D bzw "Menü-Hack" releasen?

Dann solltest du wissen, was ein Posi-Logger bringt ^^

Außerdem, was meinst du mit "zu ner Hackfunktion umfunktionieren", wenn es "aber nichts wirkliches zu bringen scheint"? ^^
Lucky Strike™ is offline  
Reply


Similar Threads Similar Threads
[Source] SRO BOT Source Code(AutoIt)
09/16/2011 - SRO Hacks, Bots, Cheats & Exploits - 34 Replies
I am finally going to release the source code to srobot.. it is a autoit bot.. ( befor you flame on auto it... check it out ) this is a very very advanced autoit script with read/write memory options. all this bot needs is to be updated with the new offsets and such. so please do not update this and just put your name on it.. as iv seen someone else in this forum has did.. not saying any names he knows who he is... after we spent a get bit of time on this script he wants to rip the source and...
[RELEASE] [OPEN SOURCE] CE 5.5 Pointer to AutoIt Source-Code
02/13/2011 - AutoIt - 6 Replies
Habe heute erst gemerkt, dass es hier eine AutoIt Sektion gibt xD also poste ich mal mein Programm mit rein. Funktionsweise: 1. in CE Rechtsklick auf den Pointer und auf "Copy" klicken 2. in meinem Programm auf "Code generieren" klicken 3. In euer Scite gehen und einfügen Hier ist der Source Code vom Programm:



All times are GMT +1. The time now is 15:02.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.