Solved base adress of a dll process ?

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

bld01

Newbie
Full Member
Dec 6, 2012
12
208
0
Hello all,

I'm working on a trainer for Supreme Commander. This one is a little tricky to hack but it's okay, i write a asm code to be injected in the game code wich works perfectly in CE. The trainer is done but it's not work.

The reason is in cheat engine, when I look the code i want to modify, I see it stays in a dll process (MohoEngine.Moho::Sim::FlattenMapRect+227E7 from MohoEngine.dll i guess) and not inside "supremecommander.exe".

I try to look if the offset from the base adress of supremecommander.exe to MohoEngine.Moho::Sim::FlattenMapRect is static or not.... unfortunatly it changes verytime I start the game.

So there's a way to retrieve the base adress of this?


thanks,

bld01
 

bld01

Newbie
Full Member
Dec 6, 2012
12
208
0
Hey there, if I understand your request correctly c5 just answered a similar question.

I believe you need to get the module address every time the game is started as I said c5 wrote something on that

https://guidedhacking.com/showthrea...ainer-amp-DLL-Injection-DIFFICULTY-2-10/page4 Check post #40

Apologies if this is not what your looking for im pretty tired and about to get some sleep.

Fleep
rest well and have nice dreams ;)

and thanks for the link. ;)

So I found something, a code that returns the base adress of the dll associated with an exe (here : https://forum.cheatengine.org/viewtopic.php?t=537193&sid=17644f9776a5c1e276deb3d1d869426d). This one found the Supremecommander.exe and the dll associated but NOT the mohoEngine.dll grrrrrr It seems that this dll was hidden or something.....
 

bld01

Newbie
Full Member
Dec 6, 2012
12
208
0
Direct link to my post https://guidedhacking.com/showthrea...DLL-Injection-DIFFICULTY-2-10&p=8457#post8457

But if you already tried and couldn't get the address of the .dll, could it be that it wasn't just loaded yet?
Hello c5,

I check your code but my code is in c# and yours in c ++. Anyway, I check some ways to do it but it seems have abug somewhere, I got only some system dll names but never the good ones.....

So I remember and old asian wiseman says : "If U cannot take the mainroad, take the dusty little way..." And i found something ^^

To find the adress of the MohoEngine.dll I check in CE the dll's and the symbols (in menu "view"), i found :

SupremeCommander.exe : 0x00400000
MohoEngine.dll : 0xXXXXXXXX

HOHO! the adress of the dll ^^ so i search inside SupremeCommander.exe a addres who contains the 0xXXXXXXXX and I found directly some static adresse, after restarting the game 3-4 times, i see one static adress contains everytime the adress of the mohoengine.dll, GOT IT ^^

After that, i simply calculate the offset to go to the MohoEngine.Moho::Sim::FlattenMapRect function and and again the offset to reach the code i want to modify -> successfull ^^

And after i had to deal with asm but it was ok, the jumps from the original codes to the new memory and the jump back works good... I'm tired but happy the trainer works well, it makes the difference between the player and the ai player, max energy and mass works, it's ass-kicking time!!!!!!

Check the trainer section ^^

and thanks ;)

bld01
 

c5

Kim Kong Trasher
Dank Tier VIP
Dank Tier Donator
Jul 19, 2012
1,187
19,938
76
Yeah, I didn't realize you are asking in c#. The code can be ported easily though. Glad you figured it out anyways :)
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods