| 
					Join Date: May 2008 Posts: 5 | Ich hab damals für Warrock Hacks geschrieben, doch wie schreibt man den so das der auf einen anderen Prozess zugreift und dort die Adressen verändert? 
 
 Das war bisher mein Modul:
 
 
 TEXT Code: Public Const string5 = &H1F0FFFDim f1holder As IntegerDim timer_pos As Long 'API DeclarationPublic Declare Function GetWindowThreadProcessId Lib "user32" Alias "GetWindowThreadProcessId" (ByVal hWnd As Long, lpdwProcessId As Long) As LongPublic Declare Function OpenProcess Lib "kernel32" Alias "OpenProcess" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As LongPublic Declare Function WriteProcessMemory Lib "kernel32" Alias "WriteProcessMemory" (ByVal hProcess As Long, ByVal lpBaseAddress As Any, lpBuffer As Any, ByVal nSize As Long, lpNumberOfBytesWritten As Long) As LongPublic Declare Function CloseHandle Lib "kernel32" Alias "CloseHandle" (ByVal hObject As Long) As LongPublic Declare Function FindWindowA Lib "user32" Alias "FindWindowA" (ByVal Classname As String, ByVal WindowName As String) As LongPublic Declare Function GetAsyncKeyState Lib "user32" Alias "GetAsyncKeyState" (ByVal key As Long) As IntegerPublic Declare Function ReadProcessMemory Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As Long, ByVal lpBaseAddress As Any, ByRef lpBuffer As Any, ByVal nSize As Long, lpNumberOfBytesWritten As Long) As Long Public Function WriteALong(string1 As String, string2 As Long, string3 As Long) 'WriteALongDim hWnd As LongDim pid As LongDim phandle As LonghWnd = FindWindowA(vbNullString, string1)If (hWnd = 0) ThenEndExit FunctionEnd IfGetWindowThreadProcessId hWnd, pidphandle = OpenProcess(string5, False, pid)If (phandle = 0) ThenExit FunctionEnd IfWriteProcessMemory phandle, string2, string3, 4, 0&CloseHandle string6End Function Public Function ReadALong(string1 As String, string2 As Long, string4 As Long) 'ReadALongDim hWnd As LongDim pid As LongDim phandle As LonghWnd = FindWindowA(vbNullString, string1)If (hWnd = 0) ThenEndExit FunctionEnd IfGetWindowThreadProcessId hWnd, pidphandle = OpenProcess(string5, False, pid)If (phandle = 0) ThenExit FunctionEnd IfReadProcessMemory phandle, string2, string4, 4, 0&CloseHandle string6End Function Public Function ReadAFloat(string1 As String, string2 As Long, string4 As Single) 'ReadAFloatDim hWnd As LongDim pid As LongDim phandle As LonghWnd = FindWindowA(vbNullString, string1)If (hWnd = 0) ThenEndExit FunctionEnd IfGetWindowThreadProcessId hWnd, pidphandle = OpenProcess(string5, False, pid)If (phandle = 0) ThenExit FunctionEnd IfReadProcessMemory phandle, string2, string4, 4, 0&CloseHandle string6End Function Public Function WriteAFloat(string1 As String, string2 As Long, string3 As Single) 'WriteAFloatDim hWnd As LongDim pid As LongDim phandle As LonghWnd = FindWindowA(vbNullString, string1)If (hWnd = 0) ThenEndExit FunctionEnd IfGetWindowThreadProcessId hWnd, pidphandle = OpenProcess(string5, False, pid)If (phandle = 0) ThenExit FunctionEnd IfWriteProcessMemory phandle, string2, string3, 4, 0&CloseHandle string6End Function Public Function WriteAByte(string1 As String, string2 As Long, string3 As Byte) 'WriteAByteDim hWnd As LongDim pid As LongDim phandle As LonghWnd = FindWindowA(vbNullString, string1)If (hWnd = 0) ThenEndExit FunctionEnd IfGetWindowThreadProcessId hWnd, pidphandle = OpenProcess(string5, False, pid)If (phandle = 0) ThenExit FunctionEnd IfWriteProcessMemory phandle, string2, string3, 1, 0&CloseHandle string6End Function Public Function ReadAByte(string1 As String, string2 As Long, string4 As Byte) 'ReadAByteDim hWnd As LongDim pid As LongDim phandle As LonghWnd = FindWindowA(vbNullString, string1)If (hWnd = 0) ThenEndExit FunctionEnd IfGetWindowThreadProcessId hWnd, pidphandle = OpenProcess(string5, False, pid)If (phandle = 0) ThenExit FunctionEnd IfReadProcessMemory phandle, string2, string4, 1, 0&CloseHandle string6End Function 
 Müsste ich nur den Verweis auf das zu verändernde Spiel ändern?
 Hat jemand en Tipp?
 
 
 |