Page 1 of 2 12 LastLast
Results 1 to 15 of 30
  1. #1
    TheRedEye's Avatar
    Join Date
    Apr 2007
    Location
    In a good place
    Posts
    300
    Reputation
    18
    Thanks
    24

    Writing your own Visual Basics (v5 or v6) Trainer

    How To Make Trainers With Visual Basic 5/6
    By TheRedEye

    Stamina address has been updated according to the new addresses!

    Tools needed:

    1. Visual Basic 5/6.
    2. Some working addresses.
    3. Brain.

    Necessary Knowledge:

    1. Basic programming (really basic)
    2. Know what addresses means, how they work and how to find them.


    Part One - simple edit any address.

    Open VB, choose standard EXE and press "open".
    On the Forms window press right click and choose "Add" -> "Module" then press "Open".
    Now copy this long code into the module window:

    Code:
    Public Const PROCESS_ALL_ACCESS = &H1F0FFF
    Dim f1holder As Integer
    Dim timer_pos As Long
    
    'API Declaration
    Public Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, lpdwProcessId As Long) As Long
    Public Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long
    Public Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Long, ByVal lpBaseAddress As Any, lpBuffer As Any, ByVal nSize As Long, lpNumberOfBytesWritten As Long) As Long
    Public Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long
    Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal Classname As String, ByVal WindowName As String) As Long
    Public Declare Function GetKeyPress Lib "user32" Alias "GetAsyncKeyState" (ByVal key As Long) As Integer
    Public Declare Function ReadProcessMem 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 WriteAByte(gamewindowtext As String, address As Long, value As Byte)
    Dim hwnd As Long
    Dim pid As Long
    Dim phandle As Long
    hwnd = FindWindow(vbNullString, gamewindowtext)
    If (hwnd = 0) Then
    MsgBox "The Game Is Not Working", vbCritical, "Error"
    End
    Exit Function
    End If
    GetWindowThreadProcessId hwnd, pid
    phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
    If (phandle = 0) Then
    MsgBox "Can't get ProcessId", vbCritical, "Error"
    Exit Function
    End If
    WriteProcessMemory phandle, address, value, 1, 0&
    CloseHandle hProcess
    End Function
    
    Public Function WriteAnInt(gamewindowtext As String, address As Long, value As Integer)
    Dim hwnd As Long
    Dim pid As Long
    Dim phandle As Long
    hwnd = FindWindow(vbNullString, gamewindowtext)
    If (hwnd = 0) Then
    MsgBox "The Game Is Not Working", vbCritical, "Error"
    End
    End If
    GetWindowThreadProcessId hwnd, pid
    phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
    If (phandle = 0) Then
    MsgBox "Can't get ProcessId", vbCritical, "Error"
    Exit Function
    End If
    WriteProcessMemory phandle, address, value, 2, 0&
    CloseHandle hProcess
    End Function
    
    Public Function WriteALong(gamewindowtext As String, address As Long, value As Long)
    Dim hwnd As Long
    Dim pid As Long
    Dim phandle As Long
    hwnd = FindWindow(vbNullString, gamewindowtext)
    If (hwnd = 0) Then
    MsgBox "The Game Is Not Working", vbCritical, "Error"
    End
    Exit Function
    End If
    GetWindowThreadProcessId hwnd, pid
    phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
    If (phandle = 0) Then
    MsgBox "Can't get ProcessId", vbCritical, "Error"
    Exit Function
    End If
    WriteProcessMemory phandle, address, value, 4, 0&
    CloseHandle hProcess
    End Function
    
    Public Function ReadAByte(gamewindowtext As String, address As Long, valbuffer As Byte)
    Dim hwnd As Long
    Dim pid As Long
    Dim phandle As Long
    hwnd = FindWindow(vbNullString, gamewindowtext)
    If (hwnd = 0) Then
    MsgBox "The Game Is Not Working", vbCritical, "Error"
    End
    Exit Function
    End If
    GetWindowThreadProcessId hwnd, pid
    phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
    If (phandle = 0) Then
    MsgBox "Can't get ProcessId", vbCritical, "Error"
    Exit Function
    End If
    ReadProcessMem phandle, address, valbuffer, 1, 0&
    CloseHandle hProcess
    End Function
    
    Public Function ReadAnInt(gamewindowtext As String, address As Long, valbuffer As Integer)
    Dim hwnd As Long
    Dim pid As Long
    Dim phandle As Long
    hwnd = FindWindow(vbNullString, gamewindowtext)
    If (hwnd = 0) Then
    MsgBox "The Game Is Not Working", vbCritical, "Error"
    End
    Exit Function
    End If
    GetWindowThreadProcessId hwnd, pid
    phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
    If (phandle = 0) Then
    MsgBox "Can't get ProcessId", vbCritical, "Error"
    Exit Function
    End If
    ReadProcessMem phandle, address, valbuffer, 2, 0&
    CloseHandle hProcess
    End Function
    
    Public Function ReadALong(gamewindowtext As String, address As Long, valbuffer As Long)
    Dim hwnd As Long
    Dim pid As Long
    Dim phandle As Long
    hwnd = FindWindow(vbNullString, gamewindowtext)
    If (hwnd = 0) Then
    MsgBox "The Game Is Not Working", vbCritical, "Error"
    End
    Exit Function
    End If
    GetWindowThreadProcessId hwnd, pid
    phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
    If (phandle = 0) Then
    MsgBox "Can't get ProcessId", vbCritical, "Error"
    Exit Function
    End If
    ReadProcessMem phandle, address, valbuffer, 4, 0&
    CloseHandle hProcess
    End Function
    (This code is an API statement that allowing the VB to edit memory addresses)
    After you copied it close the Module window.

    Writing new value
    Now take the control "CommandButton" from the General tab.
    Make a button in the middle of the form it will called Command1.
    Double click on it and write this code:

    Code:
    Call WriteALong("WarRock", &H926134, 1)
    So it will look like this:

    Code:
    Private Sub Command1_Click()
        Call WriteALong("WarRock", &H926134, 1)
    End Sub
    Explanation: Call WriteALong("xxxx", &Hyyyy, z)
    Call WriteALong – calling the function to write new values
    Xxxx – the game name (in this case Warrock)
    &Hyyyy - &H is for VB to know that the number next to it (yyyy) is in hex. So yyyy is our address in this case it GPS address - 00926134 (Warning! GPS is detected don’t try it!)
    Z – is the value we want to change to.

    Close the window.
    Now you can run the software with the "Start" button that look like "Play" that placed above. You will see your form with the button and when you will press on the button, GPS will be active until u will get detected. (Try it with noob account)
    If you want turn off button make new button and the value to 0 in stand of 1.

    Reading address value
    Now if we want to see what value some address contain you need to read it and then decide how to use the value.
    For exmple we will take the Stamina address 007D9120.
    Make another button the name will be "Command2".
    From General tab take "TextBox" and make a textbox on your form next to the Command2 button, it will be "Text1".
    Double click on Command2 and write:
    Code:
    Dim Value1 As Long
    Call ReadALong("WarRock", &H7D9120, Value1)
    Text1.Text = Value1
    This code will take the 007D9120 value and will put it into "Value1" that we state him with "Dim" and then "Text1" will get the "Value1" value, so we will see it on screen.
    Run the program and you will see that when your stamina is full the value is 1120403456, so we will need to freeze this value in order to get Unlimited Stamina.

    Part Two – freeze an address.
    In this part we will learn how to freeze the Stamina address.
    First we will need a timer that will freeze the address.
    Get the "Timer" control from the General tab and add it to your form it will call "Timer1".
    Now make 2 other buttons in one of them double click and write:

    Code:
    Timer1.Interval = 1
    And in the other double click and write:

    Code:
    Timer1.Interval = 0
    Double click on Timer1 and write:
    Code:
    Call WriteALong("WarRock", &H7D9120, 1120403456)
    Now run the program and when you will press on the first button the Stamina will freeze and when you will press on the second button the stamina will back to normal.

    Now you can make your own hack!
    Please don’t copy it!

    Soon I will add how to use addresses with pointers.
    That it for now, Enjoy!


    Copyright
    TheRedEye.


    Credits
    Satan website - for the API statement.


    Sticky it please..


    If I helped you and you want to help me back Because all the addresses has been changed i will welcome your help with more addresses..
    theredeyes@gmail.com
    Xfire: thekabab
    or PM me with some nice addresses and pointers tnx

    Dont be a leecher! and help me 2 with hard addresses!
    and give me a reputation!
    over here
    Last edited by TheRedEye; 05-24-2007 at 07:52 AM.

  2. The Following 17 Users Say Thank You to TheRedEye For This Useful Post:

    Brennwert (07-12-2010),Carb0neum (05-10-2008),CodeHPro (11-02-2009),elitexppro (11-02-2009),esat23 (08-13-2009),g36gunner (11-06-2007),gotter (06-20-2011),JuniorD (11-22-2007),nepito (03-13-2010),niftyperiod (02-03-2008),nos.feratus (11-30-2009),Ozhora (03-21-2009),PraDevil (05-29-2011),Tryptamine. (05-28-2008),Worthy (09-21-2009),zifra (04-17-2009),_corn_ (03-22-2011)

  3. #2
    ignatar's Avatar
    Join Date
    Apr 2007
    Gender
    male
    Posts
    134
    Reputation
    11
    Thanks
    2
    My Mood
    Lurking
    looks like a good tut maybe ill try it later thanks mate
    Picture Designed By Me

    [img]https://i171.photobucke*****m/albums/u309/Calard/mpghzn5.gif[/img]

  4. #3
    Threadstarter
    Dual-Keyboard Member
    TheRedEye's Avatar
    Join Date
    Apr 2007
    Location
    In a good place
    Posts
    300
    Reputation
    18
    Thanks
    24
    it is..
    enjoy!

  5. #4
    B4sk3tb4ll's Avatar
    Join Date
    May 2007
    Location
    In Wonderland
    Posts
    18
    Reputation
    10
    Thanks
    0
    Very nice TUT. Im in the middle of it right now

  6. #5
    element379's Avatar
    Join Date
    Mar 2007
    Location
    LA
    Posts
    158
    Reputation
    10
    Thanks
    2

    nice

    hmmm good details on "how to..." i like this, im almost done with it, thanks dude!

  7. #6
    Stranger00's Avatar
    Join Date
    May 2007
    Posts
    208
    Reputation
    17
    Thanks
    0
    Nice work. Looks kind of easy too. I got a question though. If i made a trainer using this it would eventually become detected right? when that happens do I just edit certain strings or something to make it undetected? Kind of like how the UCE worked? I'm gonna try making this once I find my Visual Basics CD to install it.

    Oh yeah, and I'm looking forward to reading your next tutorial w/ pointers. Also could you maybe talk about how to add hot keys?
    Last edited by Stranger00; 05-23-2007 at 09:48 PM.

  8. #7
    chc18's Avatar
    Join Date
    Mar 2007
    Location
    Colorado
    Posts
    497
    Reputation
    10
    Thanks
    17
    Thanks man, i hope this gets Stickied

  9. #8
    Threadstarter
    Dual-Keyboard Member
    TheRedEye's Avatar
    Join Date
    Apr 2007
    Location
    In a good place
    Posts
    300
    Reputation
    18
    Thanks
    24
    Quote Originally Posted by Stranger00 View Post
    Nice work. Looks kind of easy too. I got a question though. If i made a trainer using this it would eventually become detected right? when that happens do I just edit certain strings or something to make it undetected? Kind of like how the UCE worked? I'm gonna try making this once I find my Visual Basics CD to install it.

    Oh yeah, and I'm looking forward to reading your next tutorial w/ pointers. Also could you maybe talk about how to add hot keys?
    about the detected i dont know cause my hack never got detected!
    but i think u just need to edit the name and the file size and stuff like the uce

    i will add Hotkeys and Pointers, don't worry!
    should i add more thing to this post? or to another?
    Last edited by TheRedEye; 05-24-2007 at 12:33 AM.

  10. #9
    Stranger00's Avatar
    Join Date
    May 2007
    Posts
    208
    Reputation
    17
    Thanks
    0
    Whatever is easier for you I guess. I'm making a trainer, but I gotta find all the addresses again.

  11. #10
    Dokuda's Avatar
    Join Date
    Mar 2007
    Location
    Your fucking basment screwing you mother. Now. GTFO OFF MY PROFILE YOU FUC
    Posts
    2,706
    Reputation
    26
    Thanks
    281
    Stickey !! ^^



    I am really going to use it ^^ Thanks a lot.. and go to your CP, i left a rep point ;D read it ;DDDD


    EDIT:
    Quote Originally Posted by Stranger00 View Post
    Nice work. Looks kind of easy too. I got a question though. If i made a trainer using this it would eventually become detected right? when that happens do I just edit certain strings or something to make it undetected? Kind of like how the UCE worked? I'm gonna try making this once I find my Visual Basics CD to install it.

    Oh yeah, and I'm looking forward to reading your next tutorial w/ pointers. Also could you maybe talk about how to add hot keys?

    This can Prolly also be solved by just changing the process name of the hack, Like name it Iexplorer.exe or erhm... svchost.exe... a PC cant live without that,, So they cant close your WR down for that..
    WR scans your procces list for hacks..
    Last edited by Dokuda; 05-24-2007 at 03:03 AM.

  12. #11
    metallica92's Avatar
    Join Date
    May 2007
    Posts
    19
    Reputation
    10
    Thanks
    1
    think i'll make a try later^^

  13. #12
    Rulezzo's Avatar
    Join Date
    Feb 2007
    Posts
    20
    Reputation
    10
    Thanks
    0
    Vary good work

    Thanks a lot, now i try it

  14. #13
    iverson954360's Avatar
    Join Date
    Jan 2006
    Gender
    male
    Posts
    10,280
    Reputation
    940
    Thanks
    1,656
    My Mood
    Dead
    Redeye, put this tut into like photoshop or something and use a water mark all over the page, then save it, so it makes it kinda hard to deny if someone leached it because they would either have to type it out themself or put the picture on, which then everyone would know it was done by you
    Hip Hop thread Part 1 (No Longer Updated): https://www.mpgh.net/forum/316-music-...-hop-list.html
    Part 2 (No Longer Updated): https://www.mpgh.net/forum/2-general/...ad-pt-2-a.html
    Part 3: COMING SOON











  15. #14
    Threadstarter
    Dual-Keyboard Member
    TheRedEye's Avatar
    Join Date
    Apr 2007
    Location
    In a good place
    Posts
    300
    Reputation
    18
    Thanks
    24
    Quote Originally Posted by iverson954360 View Post
    Redeye, put this tut into like photoshop or something and use a water mark all over the page, then save it, so it makes it kinda hard to deny if someone leached it because they would either have to type it out themself or put the picture on, which then everyone would know it was done by you
    if it meant to be leach, it will leach..
    i did it for the freedom of information.
    and if some dame noob guy will take it
    he can push his fingers into his a55555.
    you all know who made it and that what is impotent
    Last edited by TheRedEye; 05-24-2007 at 08:00 AM.

  16. #15
    Dokuda's Avatar
    Join Date
    Mar 2007
    Location
    Your fucking basment screwing you mother. Now. GTFO OFF MY PROFILE YOU FUC
    Posts
    2,706
    Reputation
    26
    Thanks
    281
    Well, You're not english are you..? I cant notice, But i do understand ^^


    I agree with you, we prolly all know this is made by you, If some noob takes it, Let him ^^ He gains nothing..

Page 1 of 2 12 LastLast

Similar Threads

  1. Writing your own C++ Trainer
    By l0ngcat in forum Game Hacking Tutorials
    Replies: 46
    Last Post: 03-06-2019, 10:29 PM
  2. Replies: 28
    Last Post: 03-02-2009, 07:44 AM
  3. How to make your own radiostation?
    By nasir91 in forum General
    Replies: 3
    Last Post: 04-30-2007, 07:25 AM
  4. [Help] Atom API with Visual Basic 6.0 or .NET
    By Bull3t in forum Visual Basic Programming
    Replies: 5
    Last Post: 07-23-2006, 09:21 AM
  5. Packets & Visual Basic
    By BadBob in forum Hack Requests
    Replies: 5
    Last Post: 07-20-2006, 09:28 PM