Go Back   UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats > Anti-Cheat Software & Programming > Visual Basic

- Sponsored Advertisement -
http://www.myfpscheats.com/

Welcome to the UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats.
You have to register before you can post and see and access any of the advanced forum features, please click the register link to proceed to the registration form. To start viewing threads or posts, select a forum that you want to visit from the selection below.
Visual Basic
hacking programming reversing
You are Unregistered, please register to gain Full access.    
Reply
 
Thread Tools

Problem with my Trainer - Pointer
Old 03-03-2010, 08:44 AM   #1
n00bie

KokoIV's Avatar

Join Date: Dec 2009
Posts: 4
Reputation: 10
Rep Power: 26
KokoIV has made posts that are generally average in quality
Points: 1,437, Level: 3
Points: 1,437, Level: 3 Points: 1,437, Level: 3 Points: 1,437, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Last Achievements
Problem with my Trainer - Pointer

Hey guys at the moment im working on a Vac for the game WYD.
However i wrote plenty of trainers before but never had a problem like this one. In my eyes im doing it correct. But somehow it just doesnt work. Might anyone could look at it?
(This is just a poorly coded one since im just trying to fix the mistake as fast as possible. It just includes the diffrent ways and some tests. So dont wonder .)

Ok This is my situation:

At the moment i got following pointers. ( I will only need one example later )
Character X - 1/4
Character X - 2/4
Character X - 3/4
Character X - 4/4
Character Y - 1/4
Character Y - 2/4
Character Y - 3/4
Character Y - 4/4
Universal Mob Pointer X (ORC)
Universal Mob Pointer X (ORC)
Universal Mob Pointer X (ORC)
Universal Mob Pointer X (ORC)
Universal Mob Pointer Y (ORC)
Universal Mob Pointer Y (ORC)
Universal Mob Pointer Y (ORC)
Universal Mob Pointer Y (ORC)

Later i will need to make the uni pointer (= to the Character ones.)

To test weather my trainer works until now i only want to write something to my Character X. (So i will only show you the X 1/4 now)
It looks like following:

http://img693.imageshack.us/img693/6438/17027376.jpg

so what i have to do to get the base adress is calculating

00285D40+ 0400000 = 685D40 which i can store as my pointer.

And now my code looks following:

Code:
Public Class Form1
    Private Declare Function ReadProcessMemory Lib "KERNEL32" (ByVal Handle As Integer, ByVal ByValAdress As Integer, ByRef Value As Long, ByVal Size As Integer, ByRef BytesWritten As Integer) As Long
    Private Declare Function WriteProcessMemory Lib "KERNEL32" (ByVal Handle As Integer, ByVal Adress As Integer, ByRef Value As Long, ByVal Size As Integer, ByRef BytesWritten As Integer) As Long
    Private Declare Sub PushKeys Lib "KeyPush.dll" (ByVal Keystrokes As String)
    Private charPointer As Integer
    Declare Auto Function SendMessage Lib "user32" ( _
ByVal hWnd As IntPtr, _
ByVal Msg As Integer, _
ByVal wParam As Integer, _
ByVal lParam As Integer) As Integer

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim myProcesses As Process() = Process.GetProcessesByName("WYDWO")
        If myProcesses.Length = 0 Then
            MsgBox("Unable to Find the wyd process.", MsgBoxStyle.OkCancel, "Error")
            End
        Else
            If Not OpenProcess(myProcesses(0).Id) Then
                MsgBox("Unable to open the wyd process.")
                End

            Else
                charPointer = readInteger(&H685D40) 
            End If
        End If

    End Sub 'Open wyd Process


    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Dim Open = Process.GetProcessesByName("WYDWO")
        If Open.Length = 0 Then
            Exit Sub
        End If
        Dim pointer As Long
        pointer = readInteger(&H400000 + &H285D40)
   
        writeFloat(pointer + &H224, 555)
        writeFloat(charpointer + &H224, 55)

    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim posY As Long
        Dim pointer As Integer
        pointer = readInteger(&H685D40)
        posY = readFloat(Pointer + &H224).ToString
        TextBox3.Text = CStr(posY)
    End Sub
End Class
This code is totaly messed since i tried SHIT LOADS of diffrent ways. However it SHOULD work. If i use a static adress it works. So its not a matter of protection or something. Theres something wrong with the pointer calculation. But its not wrong calculated since if i add the offset to the calculated pointer on CE im getting the correct adress.

Any idea?

Last edited by learn_more; 03-03-2010 at 05:05 PM. Reason: edit out offsite url
KokoIV is offline

Reply With Quote


Old 03-09-2010, 03:16 PM   #2
Posting Well

SuperSeb's Avatar

Join Date: Mar 2010
Posts: 27
Reputation: 395
Rep Power: 27
SuperSeb has learned Kazaa is not a third world countrySuperSeb has learned Kazaa is not a third world countrySuperSeb has learned Kazaa is not a third world countrySuperSeb has learned Kazaa is not a third world country
Last Achievements
try longs instead of ints for your pointer variables
SuperSeb is offline

Reply With Quote
Reply  

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit



Tags
pointer, problem, trainer
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT +1. The time now is 10:51 AM.