Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Delphi]WPM hooking?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Obitio
Advanced Cheater
Reputation: 0

Joined: 09 Apr 2012
Posts: 68
Location: null

PostPosted: Sat May 19, 2012 10:45 am    Post subject: [Delphi]WPM hooking? Reply with quote

How would I hook WPM?Because my game prevents wpm...And Dark Byte how do I use your driver and it's wpm functions???
edit here I think I did it:
okay I think I made it.I use this code:
procedure myWriteProcessMemory(hProcess:Cardinal;const lpBaseAddress: Pointer; lpBuffer: Pointer;nSize:Cardinal;var lpNumberOfBytesWritten:Cardinal);external 'My Kernel.dll' name 'WriteProcessMemory';

procedure hook(target, newfunc:pointer);
var
jmpto:dword;
OldProtect: Cardinal; // old protect in memory
begin
jmpto:=dword(newfunc)-dword(target)-5;
VirtualProtect(target, 5, PAGE_EXECUTE_READWRITE, @OldProtect);
pbyte(target)^:=$e9;
pdword(dword(target)+1)^:=jmpto;
end;
Hook(GetProcAddress(GetModuleHandle('kernel32.dll'), 'WriteProcessMemory'), @myWriteProcessMemory);//prevent any dll's from loading into this program.A little annoying though.
ShowMessage('~SINful hacks~ -->WPM hooked.');

I am going to go test this now.
Back to top
View user's profile Send private message
Obitio
Advanced Cheater
Reputation: 0

Joined: 09 Apr 2012
Posts: 68
Location: null

PostPosted: Mon May 21, 2012 5:56 pm    Post subject: Reply with quote

nope didn't work.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites