Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 23:24

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

Advertisement



fopen hook

Discussion on fopen hook within the C/C++ forum part of the Coders Den category.

Closed Thread
 
Old   #1
 
Luôô's Avatar
 
elite*gold: 5
Join Date: Dec 2009
Posts: 1,080
Received Thanks: 434
fopen hook

Hey,

ich arbeite grad an einen simplen fopen hook.
Bisher hab ich folgendes

Code:
typedef FILE * ( _cdecl *openOrigT )( const char * filename, const char * mode );
openOrigT fileOrgi = NULL;

FILE * _cdecl myFileOpen( const char * filename, void* unk, const char * mode )
{
	return fileOrgi(filename,mode);
}
und hier der detour

Code:
DWORD fopenAddr = (DWORD)GetProcAddress(
      GetModuleHandle(TEXT("msvcrt.dll")), 
      "fopen");
	fileOrgi = (openOrigT)DetourFunction((BYTE*) fopenAddr,(BYTE*) &myFileOpen);
Jedoch erzeugt das anscheinend eine falsche FILE oder was ähnliches, da das Game versucht die Datei direkt nochmal zu öffnen und es dann nochmal fehlschlägt und dann zum beenden des Programmes kommt.

MFG

Gelöst
hatte noch den void* parameter drin.
Luôô is offline  
Closed Thread


Similar Threads Similar Threads
WarLord Public Hook (Client Hook) 01.03 Rleased Official Epvp Release by pastalov.
03/03/2012 - WarRock Hacks, Bots, Cheats & Exploits - 4 Replies
hi. Endlich hat WarLord seinen Public Hack mal geupdated :handsdown: Hier habt ihr Ihn: http://img715.imageshack.us/img715/7504/frecky.pn g Der Download befindet sich im anhang! Virus Check: https://www.virustotal.com/file/3792beba0863829ec 3e2b53f3b0c17d20bfc09c7d76f5f24967a79f1a82a4ddb/an alysis/1330708386/
<26.06.11> Chico™ Public Hook, //Invisible//Chams /Stamina/Mini Hook/NO CRASH VERSION
07/08/2011 - WarRock Hacks, Bots, Cheats & Exploits - 46 Replies
26.06.11 Hack Released 26.06.11 SuperNoSpread Problem Fixxen Status= Not in Hack Hej Com, leider hab ich eine schlechte nachricht xP^^ aus egendeinen Grund verursacht bei mir SuperNoSpread einen Direkten Crash sobald man in game ist, deshalb habe ich es entfernt O,o der Hack ist tortzdem nett und wird euch gefallen, sobald ich mehr addys habe kommen mehrere funktionen noch dazu ;) http://img4.fotos-hochladen.net/uploads/public24e lfvtrw1u.png STOP! VOR DEM DOWNLOAD! Mit Dem...



All times are GMT +1. The time now is 23:25.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.