Results 1 to 8 of 8
  1. #1
    kizzyy's Avatar
    Join Date
    Oct 2007
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0

    Talking [Tutorial] How to make a module undetected.

    Ok. First we need a module..

    Here you go =D

    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

    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

    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

    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

    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

    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

    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

    Public Function ReadAFloat(gamewindowtext As String, address As Long, valbuffer As Single)
    Dim hWnd As Long
    Dim pid As Long
    Dim phandle As Long
    hWnd = FindWindow(vbNullString, gamewindowtext)
    If (hWnd = 0) Then

    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

    Public Function WriteAFloat(gamewindowtext As String, address As Long, value As Single)
    Dim hWnd As Long
    Dim pid As Long
    Dim phandle As Long

    hWnd = FindWindow(vbNullString, gamewindowtext)
    If (hWnd = 0) Then

    Exit Function
    End If

    GetWindowThreadProcessId hWnd, pid
    phandle = OpenProcess(PROCESS_ALL_ACCESS, True, 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





    Okay Just add this to your module code.


    Okay if you ahve noticed in the code there are a few words you may have seen before such as. WriteALong, ReadALong etc..

    This is a very easy tutorial.


    All you have to do is take The words such as




    1) WriteAByte
    2) WriteAnInt
    3) WriteALong
    4) ReadAByte
    5) ReadAnInt
    6) ReadALong
    7) ReadAFloat
    8) WriteAFloat
    9) hWnd
    10) Pid
    11) phandle
    12) Address
    13) GetKeyPress
    14) GetWindowThreadProcessId
    15) OpenProcess
    16) WriteProcessMemory
    17) CloseHandle
    18) WindowName
    19) ReadProcessMem

    (some of these might not be on this module)

    Take all of those and change the ones you want in the module to anything in the world.

    But after you do this you might want to save what you changed on notepad or anything to go Back to do some changes.

    Once you are done you may see the codes you switched like WriteALong
    in the code
    (example) Call WriteALong etc..

    You need to change the code in the adresses and stuff to what you changed it in the module.

    Or else YOU WILL GET AN ERROR!



    Okay. Thats all you need to do.

    Post questions or comments below. I would be sure to help and maybe other fellow forum users also.

    I hope this helped all of you

  2. #2
    radnomguywfq3's Avatar
    Join Date
    Jan 2007
    Gender
    male
    Location
    J:\E\T\A\M\A\Y.exe
    Posts
    8,858
    Reputation
    381
    Thanks
    1,823
    My Mood
    Sad
    Thank you for taking your time to post this, and welcome to mpgh.net, although this has already been posted many times, here, and in other places, infact people have been making Undetected module gens.



    There are two types of tragedies in life. One is not getting what you want, the other is getting it.

    If you wake up at a different time in a different place, could you wake up as a different person?


  3. #3
    wr194t's Avatar
    Join Date
    Jul 2007
    Gender
    male
    Location
    Guess.
    Posts
    3,016
    Reputation
    21
    Thanks
    361
    My Mood
    Hot
    I'm going to post a video soon.

  4. #4
    Threadstarter
    Unverified User
    kizzyy's Avatar
    Join Date
    Oct 2007
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by wr194t View Post
    I'm going to post a video soon.
    Great

    When you make it maybe post a topic on it>?
    Would really help others

  5. #5
    Threadstarter
    Unverified User
    kizzyy's Avatar
    Join Date
    Oct 2007
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by jetamay View Post
    Thank you for taking your time to post this, and welcome to mpgh.net, although this has already been posted many times, here, and in other places, infact people have been making Undetected module gens.
    Thank you.
    I know but I have only seen one so I decided t post this one.
    It was different then the first one I have seen.

    And yes I have just double posted XD and i am very sorry. lolz

    If i just broke a rule--------------------------------/\

  6. #6
    radnomguywfq3's Avatar
    Join Date
    Jan 2007
    Gender
    male
    Location
    J:\E\T\A\M\A\Y.exe
    Posts
    8,858
    Reputation
    381
    Thanks
    1,823
    My Mood
    Sad
    =S it doesn't really matter, People double post all the time, just try not too. Once your 50> posts you are expected to know and obay the rules.



    There are two types of tragedies in life. One is not getting what you want, the other is getting it.

    If you wake up at a different time in a different place, could you wake up as a different person?


  7. #7
    w00t?'s Avatar
    Join Date
    Jul 2007
    Gender
    male
    Posts
    257
    Reputation
    10
    Thanks
    29
    Hm i can say this tutorial is just spaming...it isnt difrent...5c0tt tell al what to must do...u didnt tell nothing...but ok...

  8. #8
    Iam"iDude"'s Avatar
    Join Date
    Sep 2007
    Location
    El Estado unido de América (Tejas)
    Posts
    235
    Reputation
    10
    Thanks
    2
    ok well i am still wondering why people but in the readabyte / writeabyte / readaint / writeaint. because not a lot of people know how to use them you might as well get rid of them. if they knew what they where 4 they could make there own module.

Similar Threads

  1. [Tutorial] How to make an undetected module.
    By wr194t in forum Visual Basic Programming
    Replies: 29
    Last Post: 11-04-2008, 01:06 PM
  2. [Tutorial] how to make undetected module
    By wieter20 in forum Visual Basic Programming
    Replies: 12
    Last Post: 01-21-2008, 08:19 AM
  3. [Video Tutorial] How to make an undetected module.
    By wr194t in forum Visual Basic Programming
    Replies: 24
    Last Post: 11-04-2007, 05:48 AM
  4. [Tutorial] How to make your own undetected module in VB6
    By markfracasso11 in forum Visual Basic Programming
    Replies: 17
    Last Post: 10-15-2007, 09:34 AM
  5. [Tutorial] How to make your own undetected module in VB6
    By markfracasso11 in forum WarRock - International Hacks
    Replies: 22
    Last Post: 09-25-2007, 05:35 AM