Results 1 to 2 of 2
  1. #1
    LastOnInHell's Avatar
    Join Date
    Sep 2013
    Gender
    male
    Posts
    9
    Reputation
    10
    Thanks
    0

    How to To Get String From Muilt Pointer Memory ?

    hey Guys^^

    I Tried From Searching In google and work on it i just wanna how to get text from the game i have this code but i need From Milt Pointer :

    Code:
      Public Function GetTextinMemory(ByVal ProcessHandle As IntPtr, ByVal MemoryAddress As Integer, ByVal CharsToRead As Integer, Optional ByVal IsUnicode As Boolean = True) As String
            Dim ReturnValue As String = vbNullString
            Dim StringBuffer() As Byte
            If IsUnicode Then
                ReDim StringBuffer(CharsToRead * 2 - 1)
            Else
                ReDim StringBuffer(CharsToRead - 1)
            End If
            Try
                'Dim p As Process() = Process.GetProcessesByName(process0)
                If ReadProcessMemory(ProcessHandle, MemoryAddress, StringBuffer(0), StringBuffer.Length, Nothing) Then
                    If IsUnicode Then
                        ReturnValue = System.Text.Encoding.ASCII.GetString(StringBuffer)
                    Else
                        ReturnValue = System.Text.Encoding.Default.GetString(StringBuffer)
                    End If
                End If
            Catch ex As Exception
                MsgBox(ex.Message)
            End Try
            Return ReturnValue
        End Function
        Public Function ReadString(ByVal proces As String, ByVal address As Integer) As String
            Try
                Dim process0 As String = proces
                Dim prox As Process() = Process.GetProcessesByName(process0)
                Return GetTextinMemory(prox(0).Handle, address, 16) & GetTextinMemory(prox(0).Handle, address + 32, 16)
            Catch ex As Exception
                MsgBox(ex.Message)
            End Try
        End Function
    .
    Any Help?

  2. #2
    Simon-Benyo's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Posts
    0
    Reputation
    10
    Thanks
    1
    hi of course you can use my class : hxxp://mycode.dpcoders.com/MyCode.php?id=61

    include it in your project and after that use

    Dim i As New ProcessMemoryReaderWriterV2(Process.GetProcessesBy Name("Program Name Here without.exe")(0).Id)
    Dim Ptr As Integer = i.MultiLevelPointerReader(&H406E80 , New Integer() {&H128}) ' Insert ptr address instead of &H406E80 ,,, and put offsets as New Integer() {&H20,&h40,&h80} etc
    Dim barray As Byte() = i.ReadByteArray(Ptr, 9) ' read 9 bytes from that pointer ( 9 bytes means 9 ascii chars)
    MsgBox( i.ByteToStringAnsi(barray) ) 'read the bytes as ansii string


    and good luck
    Last edited by Simon-Benyo; 10-13-2013 at 11:14 AM.

Similar Threads

  1. [Tutorial] HOW NOT TO GET BANNED FROM COMBAT ARMS ITS FREE
    By boredxx in forum Combat Arms Tutorials
    Replies: 17
    Last Post: 10-24-2011, 03:14 PM
  2. [Info] How to not get Disconnected from boat
    By mengyvf in forum Vindictus Tutorials
    Replies: 1
    Last Post: 05-20-2011, 04:40 AM
  3. How do people get profit from eBay?
    By CoOKiEbrEEd in forum General
    Replies: 40
    Last Post: 04-11-2011, 10:27 PM
  4. [request]How do you get addies from a game
    By trevor206 in forum Programming Tutorial Requests
    Replies: 1
    Last Post: 09-27-2009, 08:51 AM
  5. How do you get UNbannded from
    By famasgunner831 in forum WarRock - International Hacks
    Replies: 1
    Last Post: 07-10-2007, 06:37 PM