Thread Closed 
 
Thread Rating:
  • 5 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Replace GetModuleHandle (Kernel32.dll)
Author Message
februar28 Offline
Elpy
*

Posts: 3
Joined: Oct 2011
Reputation: 0
Version: 1.4.2.134.4b
Post: #1
Replace GetModuleHandle (Kernel32.dll)
Guys,

Is there a way how to replace function GetModuleHandle (kernel32.dll) with my own function written in asm ? (maybe replace some dll in l2tower, or another way).

Thanks,
10-23-2012 15:40 PM
Find all posts by this user
ClockMan Offline
All Mighty
*******

Posts: 2,883
Joined: Jan 2011
Reputation: 497
Version: 1.4.3.143
Post: #2
RE: Replace GetModuleHandle (Kernel32.dll)
why you need that ? In bot we use own one if this fail...

[Image: owner.gif]
10-23-2012 18:44 PM
Visit this user's website Find all posts by this user
februar28 Offline
Elpy
*

Posts: 3
Joined: Oct 2011
Reputation: 0
Version: 1.4.2.134.4b
Post: #3
RE: Replace GetModuleHandle (Kernel32.dll)
Thanks for anwser Clock,

The reason is that, calling GetModuleHandle for engine.dll return fake adress, so next call GetProcAddress return null pointer (this is behavior of modified client). In this case L2Tower return message unknown version.

I made own routine to get module address (engine.dll) and on this address i can call exported functions (just made simple test).
10-23-2012 18:54 PM
Find all posts by this user
Thread Closed 




User(s) browsing this thread: 1 Guest(s)