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 


DLL Injecting

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

Joined: 25 Aug 2009
Posts: 37

PostPosted: Sun Mar 28, 2010 12:51 pm    Post subject: DLL Injecting Reply with quote

HI guys Razz . I have to inject a dll in counter-strike 1.6. I use this:
Code:
function InjectDLL(dwPID: LongWord;szLibraryPath:String):Boolean;
var
dwWritten: Integer;
hProcess,hThread: THandle;
lpModule,lpBuffer: Pointer;
BytesWritten: Cardinal;
begin
hProcess := OpenProcess(PROCESS_ALL_ACCESS,False,dwPID);
if hProcess<>0 then
Result := False;
lpModule := GetProcAddress(GetModuleHandle('kernel32.dll'),'LoadLibraryA');
lpBuffer := VirtualAllocEx(hProcess,nil,StrLen(PChar(szLibraryPath))+1,MEM_COMMIT,BytesWritten);
WriteProcessMemory(hProcess,lpBuffer,@szLibraryPath,StrLen(PChar(szLibraryPath))+1,BytesWritten);
hThread := CreateRemoteThread(hProcess,nil,0,lpModule,lpBuffer,0,hThread);
if hThread<>0 then
Result := False;
CloseHandle(hThread);
CloseHandle(hProcess);
Result := True;
end;

but this isn't working for cs. I dunno how to make injection Sad btw this code works but for cs need to start the dll before you starting cs. Can someone help me?


Kind regards megaz0r
Back to top
View user's profile Send private message
dEagle
Expert Cheater
Reputation: 0

Joined: 17 Jun 2006
Posts: 225
Location: CheatEngine Forum

PostPosted: Tue Mar 30, 2010 11:39 am    Post subject: Reply with quote

Just use commonly used DLL injectors such as Injec-TOR or Winject etc..
look around the internet ull find plenty that pleases you lol
Back to top
View user's profile Send private message
blqxxxxxxx
Cheater
Reputation: 0

Joined: 25 Aug 2009
Posts: 37

PostPosted: Thu Apr 01, 2010 10:55 am    Post subject: Reply with quote

tnx, now you can lock the thread
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 Gamehacking 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