Jump to content

_memoryopen problem


 Share

Recommended Posts

  • Replies 97
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

what the hell of process is "FlorensiaEN.bin"? never seen a process with that extension

Most games that have some kind of gameguard don't use the .exe extension. They use .bin or .dat normally and Florensia has HackerShield.

Link to comment
Share on other sites

Link to comment
Share on other sites

Sorry for the delayed response, I had a bit of a run-in with a van. Did I miss anything? Any word on the game/script status? If you could send me the full script I'd be happy to test it on my system to see if the bug affects every player or just a few. Then if it worked I could tell you or if it didn't I could still post about the results.

Link to comment
Share on other sites

Sorry for the delayed response, I had a bit of a run-in with a van. Did I miss anything? Any word on the game/script status? If you could send me the full script I'd be happy to test it on my system to see if the bug affects every player or just a few. Then if it worked I could tell you or if it didn't I could still post about the results.

#include <NomadMemory.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
SetPrivilege("SeDebugPrivilege", 1)


$Form1 = GUICreate("", 146, 53, 1073, 31)
$Button1 = GUICtrlCreateButton("Check", 8, 8, 49, 33)
$Label1 = GUICtrlCreateLabel("", 74, 18, 40, 20)
GUISetState(@SW_SHOW)

Global $mainwindow = "Florensia"
        $PlayerHPadr = 0x00FA8958
    Dim $PlayerHpoff[2]
        $PlayerHpoff[0] = 0
        $PlayerHPoff[1] = Dec("1D4")
    Dim $health[2]
    Global $test = Hex(Dec($PlayerHPadr) + $PlayerHPoff[1], 8)
    Global $gamepid = ProcessExists("FlorensiaEN.bin")
    
While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Button1
            readhealth()
    EndSwitch
    Sleep(50)
WEnd

Func readhealth()
    Global $mainwindow = "Florensia"
        $PlayerHPadr = 0x00FA8958
    Dim $PlayerHpoff[2]
        $PlayerHpoff[0] = 0
        $PlayerHPoff[1] = Dec("1D4")
    Dim $health[2]
    Global $test = Hex(Dec($PlayerHPadr) + $PlayerHPoff[1], 8)
    Global $gamepid = ProcessExists("FlorensiaEN.bin")
    If WinExists($mainwindow) Then
        $gamehandle = _MemoryOpen($gamepid)
        $health = _MemoryPointerRead($PlayerHPadr, $gamehandle, $PlayerHPoff)
        _MemoryClose($gamehandle)
        GUICtrlSetData($Label1, $health[1])
    Else
        GUICtrlSetData($Label1, "error")
    EndIf
EndFunc

#cs
    - Health -
    Value: 0C299DB0
    Address: 00FA8958
    Offset: 1D4
    
    - Mana -
    Value: 0C6D5608
    Address: 0C5A8C68
    Offest: 10
#ce
Link to comment
Share on other sites

Link to comment
Share on other sites

you have to add it xD

;=================================================================================================
; Function:   _MemoryPointerRead ($iv_Address, $ah_Handle, $av_Offset[, $sv_Type])
; Description:    Reads a chain of pointers and returns an array containing the destination
;               address and the data at the address.
; Parameter(s):  $iv_Address - The static memory address you want to start at. It must be in
;                          hex format (0x00000000).
;               $ah_Handle - An array containing the Dll handle and the handle of the open
;                         process as returned by _MemoryOpen().
;               $av_Offset - An array of offsets for the pointers.  Each pointer must have an
;                         offset.  If there is no offset for a pointer, enter 0 for that
;                         array dimension.
;               $sv_Type - (optional) The "Type" of data you intend to read at the destination
;                         address.  This is set to 'dword'(32bit(4byte) signed integer) by
;                         default.  See the help file for DllStructCreate for all types.
; Requirement(s):   The $ah_Handle returned from _MemoryOpen.
; Return Value(s):  On Success - Returns an array containing the destination address and the value
;                         located at the address.
;               On Failure - Returns 0
;               @Error - 0 = No error.
;                      1 = $av_Offset is not an array.
;                      2 = Invalid $ah_Handle.
;                      3 = $sv_Type is not a string.
;                      4 = $sv_Type is an unknown data type.
;                      5 = Failed to allocate the memory needed for the DllStructure.
;                      6 = Error allocating memory for $sv_Type.
;                      7 = Failed to read from the specified process.
; Author(s):        Nomad
; Note(s):      Values returned are in Decimal format, unless a 'char' type is selected.
;               Set $av_Offset like this:
;               $av_Offset[0] = NULL (not used)
;               $av_Offset[1] = Offset for pointer 1 (all offsets must be in Decimal)
;               $av_Offset[2] = Offset for pointer 2
;               etc...
;               (The number of array dimensions determines the number of pointers)
;=================================================================================================
Func _MemoryPointerRead($iv_Address, $ah_Handle, $av_Offset, $sv_Type = 'dword')
   
    If IsArray($av_Offset) Then
        If IsArray($ah_Handle) Then
            Local $iv_PointerCount = UBound($av_Offset) - 1
        Else
            SetError(2)
            Return 0
        EndIf
    Else
        SetError(1)
        Return 0
    EndIf
   
    Local $iv_Data[2], $i
    Local $v_Buffer = DllStructCreate('dword')
   
    For $i = 0 To $iv_PointerCount
       
        If $i = $iv_PointerCount Then
            $v_Buffer = DllStructCreate($sv_Type)
            If @error Then
                SetError(@error + 2)
                Return 0
            EndIf
           
            $iv_Address = '0x' & Hex($iv_Data[1] + $av_Offset[$i])
            DllCall($ah_Handle[0], 'int', 'ReadProcessMemory', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer), 'int', '')
            If @error Then
                SetError(7)
                Return 0
            EndIf
           
            $iv_Data[1] = DllStructGetData($v_Buffer, 1)
           
        ElseIf $i = 0 Then
            DllCall($ah_Handle[0], 'int', 'ReadProcessMemory', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer), 'int', '')
            If @error Then
                SetError(7)
                Return 0
            EndIf
           
            $iv_Data[1] = DllStructGetData($v_Buffer, 1)
           
        Else
            $iv_Address = '0x' & Hex($iv_Data[1] + $av_Offset[$i])
            DllCall($ah_Handle[0], 'int', 'ReadProcessMemory', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer), 'int', '')
            If @error Then
                SetError(7)
                Return 0
            EndIf
           
            $iv_Data[1] = DllStructGetData($v_Buffer, 1)
           
        EndIf
       
    Next
   
    $iv_Data[0] = $iv_Address
   
    Return $iv_Data

EndFunc   ;==>_MemoryPointerRead
Link to comment
Share on other sites

I appreciate it as well, thanks killerofsix ;). Also, I tried starting the game and I had no "hacking" devices running and yet the game wouldn't start at all so I'm guessing the bug affects the entire user base, at least from what I've seen.

Link to comment
Share on other sites

do you play Florensia ? or you are just helping me?

Just helping at the moment but I did download the client so I could check your script.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...