I am interested in making a bhop hack for CS:GO. I'm trying to read "client.dll"+04A8905C which points to 067A0800 with the offset of 534
which gives me 257 (On ground state)
How can I read this with VB.net? I can only read addresses, not pointerscanned results from "client.dll"
Code:
Private Declare Function ReadProcessMemory1 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
Code:
Public Function GetBaseAddress(ByVal modulename As String) As String
Dim myprocess As Process() = Process.GetProcessesByName("csgo")
Dim Mymodule As ProcessModule
If myprocess.Length = 0 Then
Return 0
End If
For Each Mymodule In myprocess(0).Modules
If modulename = Mymodule.ModuleName Then
Return Mymodule.BaseAddress
End If
Next
End Function
Code:
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
TextBox1.Text = GetBaseAddress("client.dll")
Dim hprocess As Process() = Process.GetProcessesByName("csgo")
Dim address As String = GetBaseAddress("client.dll")
Dim a As Integer = ReadProcessMemory1(hprocess(0).Handle, address + &H4A89080, 2, 4, 0)
Textbox2.text = a
The result I get is 1. Not 257.
Anyone who can point out where I mess up?