Register for your free account! | Forgot your password?

You last visited: Today at 22:57

  • Please register to post and access all features, it's quick, easy and FREE!

 

Need some coding help.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2009
Posts: 19
Received Thanks: 1
Need some coding help.

I need some help with these aion pointers and offsets.

I can get the base address of the game.dll module but I cannot for the life of me get any information from the target such as level.

Coding in autoit3.

This function is what I use to get the game.dll base address as teh nomad version won't work for me for what ever reason.

PHP Code:
Func _ProcessGetModuleBase($ivPID$svModuleName)
    
$ivPID ProcessExists($ivPID)
    If 
Not $ivPID Then Return(SetError(100)); Process does not exist

    Local 
Const $TH32CS_SNAPMODULE 0x00000008
    Local 
Const $sMODULEENTRY32Struct "dword Size;" _
                            
"dword 32ModuleID;" _
                            
"dword 32ProcessID;" _
                            
"dword GlblcntUsage;" _
                            
"dword ProccntUsage;" _
                            
"ptr modBaseAddr;" _; <---- hmm ?
                            
"dword modBaseSize;" _
                            
"hwnd hModule;" _
                            
"char Module[255];" _
                            
"char ExePath[260]"

    
Local $hvSnapShot DllCall("Kernel32.dll""hwnd""CreateToolhelp32Snapshot""dword"$TH32CS_SNAPMODULE"dword"$ivPID)
    If 
Not $hvSnapShot[0Then Return(SetError(200)); Could not create snapshot?

    
Local $stMODULEENTRY32 DllStructCreate($sMODULEENTRY32Struct)
    
DllStructSetData($stMODULEENTRY32"Size"DllStructGetSize($stMODULEENTRY32))

    
Local $ivState DllCall("Kernel32.dll""int""Module32First""hwnd"$hvSnapShot[0], "long_ptr"DllStructGetPtr($stMODULEENTRY32))
    If 
Not $ivState[0Then Return(SetError(3_WinAPI_CloseHandle($hvSnapShot[0]), 0)); Could not enumerate first module in list?
    
Local $ivRet 0
    Local $svModule

    
Do
        
$ivRet DllStructGetData($stMODULEENTRY32"modBaseAddr")
        
$svModule DllStructGetData($stMODULEENTRY32"Module")
        If 
$svModule $svModuleName Then ExitLoop
        $ivState 
DllCall("Kernel32.dll""int""Module32Next""hwnd"$hvSnapShot[0], "long_ptr"DllStructGetPtr($stMODULEENTRY32))
        
Sleep(1)
    
Until Not $ivState[0]

    
DllCall("Kernel32.dll""int""CloseHandle""int"$hvSnapShot[0])

    Return 
$ivRet
EndFunc 

This is the code i'm actually calling and nothing is being returned from it, its always 0.

PHP Code:
Func getTargetLevel()
    
$StaticOffset Dec("4F68FC"); this hex value is the entrypoint
    
Global $CUROffset[1]
    
$CUROffset[0] = 0
    $baseADDR2 
_ProcessGetModuleBase($PID"Game.dll")
    
$finalAddr "0x" Hex($baseADDR2 $StaticOffset)
    
$out Read_Memory($PID$finalAddr)
    
$out Read_Memory($PID$out 0x1C4)
    
$out Read_Memory($PID$out 0x0032)
    Return 
$out
EndFunc 

Any help or examples would be great.



Hunter_1 is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
*NEW CODING ART!!!..........:::::~WhiteLight D3D~:::::..........*NEW CODING ART!!!
http://250kb.de/u/100911/p/m4buevNCZhoQ.PNG Download: Multiupload.com - upload your files to multiple file hosting sites! VirusScan: VirusTotal -...
25 Replies - WarRock Hacks, Bots, Cheats & Exploits
Uce Coding+ winhex coding
i was just wondering is it true if u do coding with winhex is it less dc?? tats all cuz uce coding dcs me alot
8 Replies - Dekaron



All times are GMT +2. The time now is 22:57.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.