OldSchoolHack

Register / Login English

[VB.NET][Help] Create a wallhack in vb.net


icon #21

Join Date: Jun 2010

Posts: 561

ich versteh sein Problem immer noch nicht ^^

icon #22

Join Date: Nov 2011

Posts: 20

My problem is :

if its is good or not :

If CheckBox4.Checked = True Then
Dim value As Byte = 2
WriteProcessMemory(hProcess(0).Handle, "&H160B42F0", value, "2", "0")
else
Dim value As Byte = 1
ReadProcessMemory(hProcess(0).Handle, "&H160B42F0", value, "1", "0")
icon #23

Join Date: Jun 2010

Posts: 561

So, is it Working with you're Code?
Yo also have to change the 0 at the End of you're WriteProcessMemory Code

Quote
WriteProcessMemory(hProcess(0).Handle, "&H160B42F0", value, "2", "0")

Change it to

VB Code:
  1. WriteProcessMemory(hProcess(0).Handle, "&H160B42F0", value, "2", "4")
icon #24

Join Date: Jun 2011

Posts: 490

User-Rating:

12 positive
0 negative
Also if its working with that code you have to use a static adress like client.dll+6F6370, because your dynamic adress will change when you restart the game.

__________________

http://www10.pic-upload.de/30.04.12/j9dbc34bxdg.jpg
icon #25

Join Date: Nov 2011

Posts: 20

if its good :

If CheckBox4.Checked = True Then
Dim value As Byte = 2
WriteProcessMemory(hProcess(0).Handle, "&HADRESS", value, "2", "4")
else
Dim value As Byte = 1
ReadProcessMemory(hProcess(0).Handle, "&HADRESS", value, "1", "4")
icon #26

Join Date: Jun 2010

Posts: 561

why did you read out the Memory in the Code directly below ?



Quote
else
Dim value As Byte = 1
ReadProcessMemory(hProcess(0).Handle, "&HADRESS", value, "1", "4")


icon #27

Join Date: Nov 2011

Posts: 20

" Dim hProcess As Process() = Process.GetProcessesByName("hl2")"

I using just Write ? or Write & Read ?

If CheckBox4.Checked = True Then
Dim value As Byte = 2
WriteProcessMemory(hProcess(0).Handle, "&HADRESS", value, "2", "4")
else
Dim value As Byte = 1
WriteProcessMemory(hProcess(0).Handle, "&HADRESS", value, "1", "4")
icon #28

Join Date: Jun 2010

Posts: 561

You want to Change the value of a Memory, so you have to write!
if you wanna know the value of a Memory, you have to read...
icon #29

Join Date: Nov 2011

Posts: 20

ok, I tried thank's
icon #30

Join Date: Nov 2011

Posts: 20

Sorry, but I do it what to do
icon #31

Join Date: Jun 2010

Posts: 561

sorry man, i've got wrong with the 4 at the end, the 0 was right.

If it isn't working after changing this, check the adresse...

icon #32

Join Date: Nov 2011

Posts: 20

Write or read ??
icon #33

Join Date: Jun 2010

Posts: 561

Ok, it seems you're not really know how to do something like that.... please go and learn the basic at first ok?
icon #34

Join Date: Jun 2011

Posts: 490

User-Rating:

12 positive
0 negative
You really should learn the basics befor you try somerhing like that

__________________

http://www10.pic-upload.de/30.04.12/j9dbc34bxdg.jpg