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 


C# finding what is game.exe + is

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
mamaorha
Newbie cheater
Reputation: 0

Joined: 10 Mar 2012
Posts: 14

PostPosted: Fri Mar 16, 2012 3:59 am    Post subject: C# finding what is game.exe + is Reply with quote

how can i find in C# what is game.exe + 00994504?
Back to top
View user's profile Send private message
Pingo
Grandmaster Cheater
Reputation: 8

Joined: 12 Jul 2007
Posts: 571

PostPosted: Fri Mar 16, 2012 4:38 am    Post subject: Reply with quote

ProcessModuleCollection if you need to loop through all the modules.
But from the looks of it, you only need the base for the main module.
So once you have the process, it'l be MainModule.BaseAddress
MainModule.BaseAddress + 994504 = address

_________________
Back to top
View user's profile Send private message
mamaorha
Newbie cheater
Reputation: 0

Joined: 10 Mar 2012
Posts: 14

PostPosted: Fri Mar 16, 2012 5:14 am    Post subject: Reply with quote

like this?

Code:

Process[] test = Process.GetProcessesByName("League of Legends");

                int Base = test[0].MainModule.BaseAddress.ToInt32();

                int Pointer = Base + 00994504;


with this i cant find the right address Sad[/code]
Back to top
View user's profile Send private message
Pingo
Grandmaster Cheater
Reputation: 8

Joined: 12 Jul 2007
Posts: 571

PostPosted: Fri Mar 16, 2012 7:03 am    Post subject: Reply with quote

I believe 00994504 should be HEX so change it to 0x994504
Like the code below

Code:
Process[] test = Process.GetProcessesByName("League of Legends");

                int Base = test[0].MainModule.BaseAddress.ToInt32();

                int Pointer = Base + 0x994504;


Did you check your PM, i have a small piece of code you can use.
I cant post it here though.

_________________
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri Mar 16, 2012 12:45 pm    Post subject: Reply with quote

Using Firefox as a test:

Code:

            Process proc = (from p in Process.GetProcesses()
                            where p.ProcessName.ToLower() == "firefox"
                            select p).FirstOrDefault();
            if (proc == null)
                return;

            IntPtr lpBaseAddress = proc.MainModule.BaseAddress + 0x00994504;

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
tprice88
How do I cheat?
Reputation: 0

Joined: 07 Dec 2011
Posts: 4

PostPosted: Fri Mar 23, 2012 2:49 pm    Post subject: Reply with quote

main module usually ='s 400000
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri Mar 23, 2012 6:26 pm    Post subject: Reply with quote

tprice88 wrote:
main module usually ='s 400000


Depends on the target as well as the system configurations. It's not guaranteed to load at 0x00400000.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
troxan
How do I cheat?
Reputation: 0

Joined: 02 May 2012
Posts: 4

PostPosted: Wed May 02, 2012 2:23 am    Post subject: Reply with quote

Hi,
i got a problem i try to read
"EXE.exe"+00909E40 , offsett, offset, offset
but i get always a "0"
Sorry


Last edited by troxan on Wed May 02, 2012 7:37 am; edited 1 time in total
Back to top
View user's profile Send private message
Pingo
Grandmaster Cheater
Reputation: 8

Joined: 12 Jul 2007
Posts: 571

PostPosted: Wed May 02, 2012 3:59 am    Post subject: Reply with quote

Start a new post troxan. Don't highjack this thread.

Your code will never work like that cause pointers dont work like that.
All you're doing is adding offsets to the same address.
Go read up on how multilevel pointers work and you should see what you're doing wrong.

_________________
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