Mafia Coders
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Mutli Gaming Hacking Forum
 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

 

 How to make UD Module

Go down 
AuthorMessage
Mafioso
Admin
Admin
Mafioso


Posts : 40
Join date : 2008-03-17

How to make UD Module Empty
PostSubject: How to make UD Module   How to make UD Module EmptySat Jul 26, 2008 10:10 pm

To make a Module Undetected is really simple , just Change the red marked strings with your own definated...

Code:
Module Module1
    Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Integer, ByVal bInheritHandle As Integer, ByVal dwProcessId As Integer) As Integer
    Private Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
    Private Declare Function WriteFloatMemory Lib "kernel32" Alias "WriteProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Single, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
    Private Declare Function ReadFloat Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As IntPtr, ByVal lpBaseAddress As IntPtr, ByRef buffer As Single, ByVal size As Int32, ByRef lpNumberOfBytesRead As Int32) As Boolean
    Private Declare Function ReadProcessMemory 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
    Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Integer) As Integer
    Public Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
    Public RBuff As Long
    Public RBuff2 As Single
    Public RBuff3 As Integer

    Public Function [color=red]Writememory[/color](ByVal Address As Integer, ByVal Value As Long, ByVal Bytes As Integer)

        Dim warrockLookUp As Process() = Process.GetProcessesByName("WarRock")

        If warrockLookUp.Length = 0 Then

            End

        End If

        Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, warrockLookUp(0).Id)

        WriteProcessMemory(processHandle, Address, Value, Bytes, Nothing)

        CloseHandle(processHandle)

    End Function

    Public Function [color=red]ReadFloat[/color](ByVal Address As Single)

        Dim warrockLookUp As Process() = Process.GetProcessesByName("WarRock")

        If warrockLookUp.Length = 0 Then

            End

        End If

        Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, warrockLookUp(0).Id)

        ReadProcessMemory(processHandle, Address, RBuff, 4, Nothing)

        CloseHandle(processHandle)

        Return RBuff

    End Function

    Public Function [color=red]WriteFloat[/color](ByVal Address As Integer, ByVal Value As Single)

        Dim warrockLookUp As Process() = Process.GetProcessesByName("WarRock")

        If warrockLookUp.Length = 0 Then

            End

        End If

        Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, warrockLookUp(0).Id)

        WriteFloatMemory(processHandle, Address, Value, 4, Nothing)

        CloseHandle(processHandle)

    End Function

    Public Function [color=red]ReadLong[/color](ByVal Address As Integer)

        Dim warrockLookUp As Process() = Process.GetProcessesByName("WarRock")

        If warrockLookUp.Length = 0 Then

            End

        End If

        Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, warrockLookUp(0).Id)

        ReadProcessMemory(processHandle, Address, RBuff, 4, Nothing)

        CloseHandle(processHandle)

        Return RBuff

    End Function

    Public Function [color=red]ReadFloatPointer[/color](ByVal Base As Integer, ByVal Offset As Short)

        Dim fullAddress As Long

        Dim warrockLookUp As Process() = Process.GetProcessesByName("WarRock")

        If warrockLookUp.Length = 0 Then

            End

        End If

        Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, warrockLookUp(0).Id)

        ReadProcessMemory(processHandle, Base, RBuff, 4, Nothing)

        fullAddress = RBuff + Offset

        ReadFloat(processHandle, fullAddress, RBuff2, 4, Nothing)

        Return RBuff2

        CloseHandle(processHandle)

    End Function

    Public Function[color=red] ReadLongPointer[/color](ByVal Base As Integer, ByVal Offset As Short, ByVal Bytes As Integer)

        Dim fullAddress As Long

        Dim warrockLookUp As Process() = Process.GetProcessesByName("WarRock")

        If warrockLookUp.Length = 0 Then

            End

        End If

        Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, warrockLookUp(0).Id)

        ReadProcessMemory(processHandle, Base, RBuff, 4, Nothing)

        fullAddress = RBuff + Offset

        ReadProcessMemory(processHandle, fullAddress, RBuff3, Bytes, Nothing)

        Return RBuff3

        CloseHandle(processHandle)

    End Function

    Public Function [color=red]WriteFloatPointer[/color](ByVal Base As Integer, ByVal Offset As Short, ByVal Value As Single)

        Dim fullAddress As Long

        Dim warrockLookUp As Process() = Process.GetProcessesByName("WarRock")

        If warrockLookUp.Length = 0 Then

            End

        End If

        Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, warrockLookUp(0).Id)

        ReadProcessMemory(processHandle, Base, RBuff, 4, Nothing)

        fullAddress = RBuff + Offset

        WriteFloatMemory(processHandle, fullAddress, Value, 4, Nothing)

        CloseHandle(processHandle)

    End Function

    Public Function [color=red]WriteLongPointer[/color](ByVal Base As Integer, ByVal Offset As Short, ByVal Value As Long, ByVal Bytes As Integer)

        Dim fullAddress As Long

        Dim warrockLookUp As Process() = Process.GetProcessesByName("WarRock")

        If warrockLookUp.Length = 0 Then

            End

        End If

        Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, warrockLookUp(0).Id)

        ReadProcessMemory(processHandle, Base, RBuff, 4, Nothing)

        fullAddress = RBuff + Offset

        WriteProcessMemory(processHandle, fullAddress, Value, Bytes, Nothing)

        CloseHandle(processHandle)

    End Function

    Public Function [color=red]NOP[/color](ByVal Address As Integer, ByVal value As Integer)

        Dim warrockLookUp As Process() = Process.GetProcessesByName("WarRock")

        If warrockLookUp.Length = 0 Then

            End

        End If

        Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, warrockLookUp(0).Id)

        WriteProcessMemory(processHandle, Address, value, 1, Nothing)

        CloseHandle(processHandle)

    End Function

End Module

But dont forget if you change it here you must change it in your Function part too!
For example:

Code:
[color=red]Writememory[/color](&H123456,1,4)

After:

Code:
mafioso(&H123456,1,4)

Enjoy
Back to top Go down
https://mafiacoders.forumotion.com
 
How to make UD Module
Back to top 
Page 1 of 1
 Similar topics
-
» How to make an undetected module.
» Make VB6 Trainer
» How To Make VB.net Hack

Permissions in this forum:You cannot reply to topics in this forum
Mafia Coders :: Warrock :: VisualBasic.NET-
Jump to: