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-File as a Basepointer? Please help, i'm freaking out...

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
mildblue
How do I cheat?
Reputation: 0

Joined: 22 May 2009
Posts: 9

PostPosted: Fri Sep 25, 2009 3:35 pm    Post subject: .dll-File as a Basepointer? Please help, i'm freaking out... Reply with quote

Hello I'm trying to script a little bot for Aion. Unfortunatly some of Aions Basepointers look like this: Game.dll+3X4MPL3

ww w2.pic-upload.d e/25.09.09/x7i3iun3jky.jpg (remove the spaces)

I really dont know how to handle with this. Here is is my Code:

Code:
#include <NomadMemory.au3>

Global $PlayerMaxHPOut

Func AionMemoryRead()
SetPrivilege("SeDebugPrivilege", 1)
$ID=_MemoryOpen(ProcessExists("AION.bin"))

;STATIC POINTER Max HP
$PlayerMaxHPPointer = 0x3195DDC4 ;<- This is where Game.dll+Bla should be used
$PlayerMaxHP = _MemoryRead($PlayerMaxHPPointer, $ID)
$PlayerMaxHPOut = $PlayerMaxHP

_MemoryClose($ID)
EndFunc

AionMemoryRead()
MsgBox(0,"Test",$PlayerMaxHpOut)


Please help me! Sad
Back to top
View user's profile Send private message
Guy
Expert Cheater
Reputation: 0

Joined: 30 May 2009
Posts: 187

PostPosted: Fri Sep 25, 2009 3:39 pm    Post subject: Re: .dll-File as a Basepointer? Please help, i'm freaking ou Reply with quote

mildblue wrote:
Hello I'm trying to script a little bot for Aion. Unfortunatly some of Aions Basepointers look like this: Game.dll+3X4MPL3

ww w2.pic-upload.d e/25.09.09/x7i3iun3jky.jpg (remove the spaces)

I really dont know how to handle with this. Here is is my Code:

Code:
#include <NomadMemory.au3>

Global $PlayerMaxHPOut

Func AionMemoryRead()
SetPrivilege("SeDebugPrivilege", 1)
$ID=_MemoryOpen(ProcessExists("AION.bin"))

;STATIC POINTER Max HP
$PlayerMaxHPPointer = 0x3195DDC4 ;<- This is where Game.dll+Bla should be used
$PlayerMaxHP = _MemoryRead($PlayerMaxHPPointer, $ID)
$PlayerMaxHPOut = $PlayerMaxHP

_MemoryClose($ID)
EndFunc

AionMemoryRead()
MsgBox(0,"Test",$PlayerMaxHpOut)



Please help me! Sad


Game.dll = base address of Game.dll.


Use GetModuleHandle to get the base address of Game.dll

_________________
Has anyone seen Hitler around..? If so, PM me!
Back to top
View user's profile Send private message
mildblue
How do I cheat?
Reputation: 0

Joined: 22 May 2009
Posts: 9

PostPosted: Fri Sep 25, 2009 3:50 pm    Post subject: Reply with quote

I really dont want to be unfriendly, but i still dont understand this. Is it possible, that you could include your answer in my code-example, so that i could understand it a little better? Would be very nice. Thank you!
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 473

Joined: 09 May 2003
Posts: 25917
Location: The netherlands

PostPosted: Fri Sep 25, 2009 4:04 pm    Post subject: Reply with quote

my guess: $PlayerMaxHPPointer=GetModuleHandle ("game.dll")+0x3X4MPL3
_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
mildblue
How do I cheat?
Reputation: 0

Joined: 22 May 2009
Posts: 9

PostPosted: Fri Sep 25, 2009 4:12 pm    Post subject: Reply with quote

I tried this:

Code:
#include <NomadMemory.au3>
#Include <WinAPI.au3>

Global $PlayerMaxHPOut

Func AionMemoryRead()
SetPrivilege("SeDebugPrivilege", 1)
$ID=_MemoryOpen(ProcessExists("AION.bin"))

;STATIC POINTER Max HP
$PlayerMaxHPPointer=_WinAPI_GetModuleHandle("Game.dll")+0x8EDDC4
$PlayerMaxHP = _MemoryRead($PlayerMaxHPPointer, $ID)
$PlayerMaxHPOut = $PlayerMaxHP

_MemoryClose($ID)
EndFunc

AionMemoryRead()
MsgBox(0,"Test",$PlayerMaxHpOut)


But it still does not work. "The Module was not found". I have the Game runng and CE can still read from it.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 473

Joined: 09 May 2003
Posts: 25917
Location: The netherlands

PostPosted: Fri Sep 25, 2009 5:02 pm    Post subject: Reply with quote

oh, it's not injected
in that case you have to use toolhelp32snapshot and module32first/module32next to find it

no idea how to give an example in the language you're coding in

_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
phillydub
Newbie cheater
Reputation: 0

Joined: 11 Aug 2007
Posts: 10

PostPosted: Fri Sep 25, 2009 10:44 pm    Post subject: Reply with quote

edit: nvm, figured out how to get the game.dll base address. very simple in .NET Smile
Back to top
View user's profile Send private message
morxxxel
How do I cheat?
Reputation: 0

Joined: 27 Sep 2009
Posts: 2

PostPosted: Sun Sep 27, 2009 12:33 am    Post subject: how Reply with quote

phill can you please tell me how you did it? =)
Back to top
View user's profile Send private message
phillydub
Newbie cheater
Reputation: 0

Joined: 11 Aug 2007
Posts: 10

PostPosted: Sun Sep 27, 2009 5:56 am    Post subject: Re: how Reply with quote

morxxxel wrote:
phill can you please tell me how you did it? =)


its almost 7am but heres some C# psuedo code:

AionProcess = Process.GetProcessesByName("AION.bin")[0]

for each Module m in AionProcess.Modules
if m.ModuleName.Equals("Game.dll")
IntPtr baseAddr = m.BaseAddress


I suggest you check out aionhackers.net
Back to top
View user's profile Send private message
morxxxel
How do I cheat?
Reputation: 0

Joined: 27 Sep 2009
Posts: 2

PostPosted: Mon Sep 28, 2009 1:15 am    Post subject: Thanks Reply with quote

Thanks for the info =) i ended up with
Code:
 Private Function GameDLLMainAddress() As Integer

        Dim HandleP As Process() = Process.GetProcessesByName("Aion.bin")

        For Each [Module] As ProcessModule In HandleP(0).Modules
            If "Game.dll" = [Module].ModuleName Then
                Return [Module].BaseAddress.ToInt32()
            End If
        Next
        Return 0
    End Function
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