Go Back   RunUO - Ultima Online Emulation > Developer's Corner > Programming > Other

Other Discuss other languages or best practice coding here.

Reply
 
Thread Tools Display Modes
Old 01-17-2006, 12:12 PM   #1 (permalink)
Forum Novice
 
alambik's Avatar
 
Join Date: Apr 2003
Age: 32
Posts: 248
Default Launching an exe from memory

I'm interesting in the way UOGateway is achieving client patch.

It seems it loads the client.exe file in memory, then patch the loaded executable in memory, and run it.

How to achieve such executable load/patch/launch operation at runtime (any programming language example) ?

That seems very interesting...
alambik is offline   Reply With Quote
Old 01-17-2006, 02:26 PM   #2 (permalink)
xir
Forum Newbie
 
Join Date: Jul 2004
Posts: 59
Default

http://www.beosil.com/ignition/download.html

Mr. Fixit uses scanning heuristics to patch the client without a version file.
xir is offline   Reply With Quote
Old 01-17-2006, 04:46 PM   #3 (permalink)
Forum Expert
 
Join Date: Mar 2004
Location: Germany
Age: 22
Posts: 298
Default

Quote:
Originally Posted by alambik
I'm interesting in the way UOGateway is achieving client patch.

It seems it loads the client.exe file in memory, then patch the loaded executable in memory, and run it.

How to achieve such executable load/patch/launch operation at runtime (any programming language example) ?

That seems very interesting...
Slightly different ... launch --> freeze --> search and replace memory --> resume ...
Standard WinAPI calls like CreateProcess, OpenProcess, WriteProcessMemory, ReadProcessMemory. Can therefore be done in nearly every (major) programming language.
floppydisc is offline   Reply With Quote
Old 01-17-2006, 07:37 PM   #4 (permalink)
Forum Novice
 
alambik's Avatar
 
Join Date: Apr 2003
Age: 32
Posts: 248
Default

Great! I'll explore those ways of exe patching! Thank's a lot!
alambik is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5