Question[Help] Make a

Posts 1–11 of 11 · Page 1 of 1
[Help] Make a
(my english isn't good so i will take google translater)

I want to play for the four story (with hackshild) a hack coding with visual basics 2008 However, I do not know how to create a module. Can someone explain to me how to do this or write me even one?
and my second question is: can we use this code for timer (ie the pointer to the timer and then with an on and off each button on or off).
Code:
WriteFloatPointer(&HPlayerpointer , &HOffset , value)
Thank you for helping!

kptoo
Tank you .. but can i use the code in my first message?
Quote Originally Posted by kptoo View Post
Tank you .. but can i use the code in my first message?
i don't think his code support's pointers, if so you can't do it. but there is many tutorials in vb.net that can edit and read pointers
I want coding a hack for the game 4story. I have the module already. However, I do not know whether the module is really.

Code:
Module Module1

#Region "Declarations"

    Private Declare Function OpenProcess Lib "kernel32" Alias "OpenProcess" (ByVal dwDesiredAccess As Integer, ByVal bInheritHandle As Integer, ByVal dwProcessId As Integer) As Integer
    Private Declare Function WriteProcessMemory Lib "kernel32" Alias "WriteProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
    Private Declare Function WriteFloatMemory Lib "kernel32" Alias "WriteProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Single, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
    Private Declare Function ReadFloat Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As IntPtr, ByVal lpBaseAddress As IntPtr, ByRef buffer As Single, ByVal size As Int32, ByRef lpNumberOfBytesRead As Int32) As Boolean
    Private Declare Function ReadProcessMemory Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
    Private Declare Function CloseHandle Lib "kernel32" Alias "CloseHandle" (ByVal hObject As Integer) As Integer

    Private string1 As Long
    Private string2 As Integer
    Private RBuff1 As Long
    Private RBuff2 As Single
    Private RBuff3 As Integer

#End Region

#Region "Check Process/ReadDll"

    Private Function readdll(ByVal modulename As String)
        Dim procmodule As ProcessModule
        Dim constant1 As Integer
        Dim constant2 As Long
        Dim constant3 As Process() = Process.GetProcessesByName("TClient")
        If constant3.Length = 0 Then
            Return 0
        End If
        For Each procmodule In constant3(0).Modules
            If modulename = procmodule.ModuleName Then
                constant1 = procmodule.BaseAddress
            End If
        Next
        constant2 = constant1
        Return constant2
    End Function

    Public Function IsProcessOpen(ByVal name As String) As Boolean

        For Each clsProcess As Process In Process.GetProcesses

            If clsProcess.ProcessName.Contains(name) Then


                Return True

            End If
        Next
        ' Do nothing 
        Return False
    End Function


#End Region

#Region "Hacks"

    'WriteMemory
    Private Function WriteMemory(ByVal Address As Integer, ByVal Value As Long, ByVal Bytes As Integer)
        Dim iw4mpLookUp As Process() = Process.GetProcessesByName("TClient")
        If iw4mpLookUp.Length = 0 Then
            End
        End If
        Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, iw4mpLookUp(0).Id)
        WriteProcessMemory(processHandle, Address, Value, Bytes, Nothing)
        CloseHandle(processHandle)

        Return Nothing
    End Function

    'WriteFloat
    Private Function WriteFloat(ByVal Address As Integer, ByVal Value As Single)
        Dim iw4mpLookUp As Process() = Process.GetProcessesByName("TClient")
        If iw4mpLookUp.Length = 0 Then
            End
        End If
        Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, iw4mpLookUp(0).Id)
        WriteFloatMemory(processHandle, Address, Value, 4, Nothing)
        CloseHandle(processHandle)

        Return Nothing
    End Function

    'NOP
    Private Function NOP(ByVal Address As Integer, ByVal value As Integer)
        Dim iw4mpLookUp As Process() = Process.GetProcessesByName("TClient")
        If iw4mpLookUp.Length = 0 Then
            End
        End If
        Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, iw4mpLookUp(0).Id)
        WriteProcessMemory(processHandle, Address, value, 1, Nothing)
        CloseHandle(processHandle)

        Return Nothing
    End Function

#End Region

#Region "Functions"

    Public Function memoryh4x(ByVal address As String, ByVal value As Long, ByVal bytes As Byte)
        If IsProcessOpen("TClient") Then

            string1 = readdll("cshell.dll")
            string2 = "&H" & Hex(string1 + address)
            WriteMemory(string2, value, bytes)
        End If
        Return Nothing
    End Function

    Public Function floath4x(ByVal address As String, ByVal value As Long)
        If IsProcessOpen("TClient") Then

            string1 = readdll("cshell.dll")
            string2 = "&H" & Hex(string1 + address)
            WriteFloat(string2, value)
        End If
        Return Nothing
    End Function

    Public Function noph4x(ByVal address As String, ByVal value As Long)
        If IsProcessOpen("TClient") Then
            string1 = readdll("cshell.dll")
            string2 = "&H" & Hex(string1 + address)
            NOP(string2, value)


        End If
        Return Nothing
    End Function

#End Region
End Module
What do I have in my timer to write the value can change from a pointer?
I have looked on with yesterday's doing vb to the basics, but I do not know how to do it with pointers.

code of pointer:
Code:
memoryh4x(&H3460F76, 16700, 4)
         floath4x(&H3460F76, 16700)
it shows the following error when debugging code to the following

Code:
the error: Win32Exception was not dealt with access denied
          the code: For Each procmodule In constant3(0).Modules
thanks for the reply!
memoryh4x(&H3460F76, 16700, 4)
floath4x(&H3460F76, 16700)

Either use memoryh4x OR floathax...This is obvious. In CheatEngine, there is the datatype:

1/2/4/8 Bytes / Float etc...

Now...it is obvious what you have to use when you know it

Logic...basics...nowadays unknown...
Quote Originally Posted by Blubb1337 View Post
memoryh4x(&H3460F76, 16700, 4)
floath4x(&H3460F76, 16700)

Either use memoryh4x OR floathax...This is obvious. In CheatEngine, there is the datatype:

1/2/4/8 Bytes / Float etc...

Now...it is obvious what you have to use when you know it

Logic...basics...nowadays unknown...
this is not my problem now ... my problem is that there is an error because of the permission...
it says:
Code:
Win32Exception was not dealt with access denied
there is no permission to write on the system.dll ... how can i change this?
thank you
Quote Originally Posted by kptoo View Post
this is not my problem now ... my problem is that there is an error because of the permission...
it says:
Code:
Win32Exception was not dealt with access denied
there is no permission to write on the system.dll ... how can i change this?
thank you
Run Visual Studio as an administrator / ?
Quote Originally Posted by kptoo View Post
this is not my problem now ... my problem is that there is an error because of the permission...
it says:
Code:
Win32Exception was not dealt with access denied
there is no permission to write on the system.dll ... how can i change this?
thank you
can you take a picture so i could help you better and post all your code here
Quote Originally Posted by Hassan View Post
Run Visual Studio as an administrator / ?
one time it runs the other time not >.<

but when the program works there is no reaktion in the game ...

why? (lock above)

thank you
Quote Originally Posted by kptoo View Post
one time it runs the other time not >.<

but when the program works there is no reaktion in the game ...

why? (lock above)

thank you
well to make sure it is working just open cheat engine and add that address and see if it changes
Posts 1–11 of 11 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us