11-29-2011, 19:52
PLEASE, ALL MEMBERS WHO ARE BLUE/YELLOW/PURPLE YOU BETTER DON'T READ THIS THREAD TO BE NOT RAGING ;D
Some more offtopic: this tut is made for complete NOOBS who know NOTHING like my 9-yo bro. 70% of itsmods are such people. So no messages "we all know that, kinda useless tut". thats why all skilled coders better close that page.
So if you know minimum of coding and you want to know how to make MW3 hack read the actual tut.
ONTOPIC:
1.) Download Visual Basic (I'm using VB 2008 Express)
2.) Open it up, create new Windows Form Application, name it whatever you wish
3.) Design it as you want, but it shall have a textbox and a button.
4.) Project -> Add module...
5.) Delete everything in Module1 and paste code from spoiler (Hope no screenshot needed)
6.) Save your project (File -> Save All -> Save)
7.) Adding some label shit (Not necessary)
8.) Double click on button. Enter code
9.) As this is for people who know NOTHING i will also show how to search for offset addresses. Download CheatEngine, start it. Start MW3.
In cheat engine press button (see screenshot) and select iw5mp.
10.) Open MW3 barracks, see & remember (or write somewhere) your exact XP value. Type it in CheatEngine in text box under label saying "Value:". Press "First scan". Wait for scanning to finish. In MW3 play one round so your XP value in game will change. Return to barracks, see your new XP value, type it into CheatEngine value text box and press "Next scan". Do it again and again (XP changes, type it in CheatEngine, scan) so many times as you need until a list of addresses on the left side of CheatEngine will contain NOT MORE THAN 10 ADDRESSES. Write down those addresses (they shall look like 01AB097E4).
THIS IS HOW CHEAT ENGINE WORKS --^ YOU CAN USE IT TO FIND ANY OTHER ADDRESSES, THE ONLY DIFFERENCE IS THAT YOU WILL NEED TO TYPE ANOTHER VALUES.
11.) Now when you have written down those address (or addresses) let us close MW3 and CheatEngine and go back to Visual Basic. See that code (on screenshot) and delete 1337 from &H1337 part so it will look like just &H. After "&H" without any spaces put your address. In case there is more than one adress copy/paste full code-line as many times as much addresses you have and each time change 1337 to your address.
12.) Now let us make a simple If/else struct.
13.) Now let us get .exe
In Visual Basic press Debug -> Start debugging. This shall start your app. Without closing your app go to
(Your-user-name)/Visual Studio (year)/Projects/(Your-project-name)/(Your-project-name)/bin/Debug/(Your-project-name).exe
Here (Your-user-name) is your PC user, (year) is year of Visual Studio release. I use Visual Basic 2008 express edition so my (year) is 2008. And (Your-project-name) is the name of project you entered at the very beginning.
When you found .exe you copy it and paste to somewhere you want.
14.) Close debugging window, close Visual Basic - you don't need them. Why? because we have finished. You have made your MW3 hack. In case you ABSOLUTELY followed instructions, you have made XP hack. But this tutorial is common, you can make any memory hack for mw3 using this tut. And if you know a bit of coding you can change few options in Module1 and make memory hack for ANY game using this tutorial.
IF HELPED +REP ME.
IF YOU ARE TOO LAZY THANK ME.
IF YOU ARE 1337 TELL US IN COMMENTS.
IF YOU ARE PRO-CODER DON'T RAGE.
IF YOU ARE ~WHOEVER~ DON'T TROLL/SPAM/ETC AS IT IS NOT SPAM SECTION.
IF YOU NEED SOME HELP - PM ME.
Originally written by G-Man 29.11.2011 on itsmods.com
YOU DO NOT HAVE RIGHTS TO POST THIS TUTORIAL WITHOUT MENTIONING AUTHOR AND ITSMODS.COM
Some more offtopic: this tut is made for complete NOOBS who know NOTHING like my 9-yo bro. 70% of itsmods are such people. So no messages "we all know that, kinda useless tut". thats why all skilled coders better close that page.
So if you know minimum of coding and you want to know how to make MW3 hack read the actual tut.
ONTOPIC:
1.) Download Visual Basic (I'm using VB 2008 Express)
2.) Open it up, create new Windows Form Application, name it whatever you wish
3.) Design it as you want, but it shall have a textbox and a button.
4.) Project -> Add module...
5.) Delete everything in Module1 and paste code from spoiler (Hope no screenshot needed)
Spoiler (Click to View)
PHP Code:
Module Module1
#Region "Declarations"
Private Declare Function OpenProcess Lib "kernel32" Alias "OpenProcess" (ByVal dwDesiredAccess As Integer, ByVal bInheritHandle As Integer, ByVal dwProcessId As Integer) As Integer
Private Declare Function WriteProcessMemory Lib "kernel32" Alias "WriteProcessMemory" (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" Alias "CloseHandle" (ByVal hObject As Integer) As Integer
Private string1 As Long
Private string2 As Integer
Private RBuff1 As Long
Private RBuff2 As Single
Private RBuff3 As Integer
#End Region
#Region "Check Process/ReadDll"
Private Function readdll(ByVal modulename As String)
Dim procmodule As ProcessModule
Dim constant1 As Integer
Dim constant2 As Long
Dim constant3 As Process() = Process.GetProcessesByName("iw5mp")
If constant3.Length = 0 Then
Return 0
End If
For Each procmodule In constant3(0).Modules
If modulename = procmodule.ModuleName Then
constant1 = procmodule.BaseAddress
End If
Next
constant2 = constant1
Return constant2
End Function
Public Function IsProcessOpen(ByVal name As String) As Boolean
For Each clsProcess As Process In Process.GetProcesses
If clsProcess.ProcessName.Contains(name) Then
Return True
End If
Next
' Do nothing
Return False
End Function
#End Region
#Region "Hacks"
'WriteMemory
Private Function WriteMemory(ByVal Address As Integer, ByVal Value As Long, ByVal Bytes As Integer)
Dim iw4mpLookUp As Process() = Process.GetProcessesByName("iw5mp")
If iw4mpLookUp.Length = 0 Then
End
End If
Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, iw4mpLookUp(0).Id)
WriteProcessMemory(processHandle, Address, Value, Bytes, Nothing)
CloseHandle(processHandle)
Return Nothing
End Function
'WriteFloat
Private Function WriteFloat(ByVal Address As Integer, ByVal Value As Single)
Dim iw4mpLookUp As Process() = Process.GetProcessesByName("iw5mp")
If iw4mpLookUp.Length = 0 Then
End
End If
Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, iw4mpLookUp(0).Id)
WriteFloatMemory(processHandle, Address, Value, 4, Nothing)
CloseHandle(processHandle)
Return Nothing
End Function
'NOP
Private Function NOP(ByVal Address As Integer, ByVal value As Integer)
Dim iw4mpLookUp As Process() = Process.GetProcessesByName("iw5mp")
If iw4mpLookUp.Length = 0 Then
End
End If
Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, iw4mpLookUp(0).Id)
WriteProcessMemory(processHandle, Address, value, 1, Nothing)
CloseHandle(processHandle)
Return Nothing
End Function
#End Region
#Region "Functions"
Public Function memoryh4x(ByVal address As String, ByVal value As Long, ByVal bytes As Byte)
If IsProcessOpen("iw5mp") Then
string1 = readdll("cshell.dll")
string2 = "&H" & Hex(string1 + address)
WriteMemory(string2, value, bytes)
End If
Return Nothing
End Function
Public Function floath4x(ByVal address As String, ByVal value As Long)
If IsProcessOpen("iw5mp") Then
string1 = readdll("cshell.dll")
string2 = "&H" & Hex(string1 + address)
WriteFloat(string2, value)
End If
Return Nothing
End Function
Public Function noph4x(ByVal address As String, ByVal value As Long)
If IsProcessOpen("iw5mp") Then
string1 = readdll("cshell.dll")
string2 = "&H" & Hex(string1 + address)
NOP(string2, value)
End If
Return Nothing
End Function
#End Region
End Module
6.) Save your project (File -> Save All -> Save)
7.) Adding some label shit (Not necessary)
8.) Double click on button. Enter code
PHP Code:
memoryh4x(&H1337, TextBox1.Text, 4)
9.) As this is for people who know NOTHING i will also show how to search for offset addresses. Download CheatEngine, start it. Start MW3.
In cheat engine press button (see screenshot) and select iw5mp.
10.) Open MW3 barracks, see & remember (or write somewhere) your exact XP value. Type it in CheatEngine in text box under label saying "Value:". Press "First scan". Wait for scanning to finish. In MW3 play one round so your XP value in game will change. Return to barracks, see your new XP value, type it into CheatEngine value text box and press "Next scan". Do it again and again (XP changes, type it in CheatEngine, scan) so many times as you need until a list of addresses on the left side of CheatEngine will contain NOT MORE THAN 10 ADDRESSES. Write down those addresses (they shall look like 01AB097E4).
THIS IS HOW CHEAT ENGINE WORKS --^ YOU CAN USE IT TO FIND ANY OTHER ADDRESSES, THE ONLY DIFFERENCE IS THAT YOU WILL NEED TO TYPE ANOTHER VALUES.
11.) Now when you have written down those address (or addresses) let us close MW3 and CheatEngine and go back to Visual Basic. See that code (on screenshot) and delete 1337 from &H1337 part so it will look like just &H. After "&H" without any spaces put your address. In case there is more than one adress copy/paste full code-line as many times as much addresses you have and each time change 1337 to your address.
12.) Now let us make a simple If/else struct.
PHP Code:
If isProcessOpen("iw5mp") Then
OURCODE
Else
MessageBox.Show("No MW3 process found! Launch MW3 please.")
End If
13.) Now let us get .exe
In Visual Basic press Debug -> Start debugging. This shall start your app. Without closing your app go to
(Your-user-name)/Visual Studio (year)/Projects/(Your-project-name)/(Your-project-name)/bin/Debug/(Your-project-name).exe
Here (Your-user-name) is your PC user, (year) is year of Visual Studio release. I use Visual Basic 2008 express edition so my (year) is 2008. And (Your-project-name) is the name of project you entered at the very beginning.
When you found .exe you copy it and paste to somewhere you want.
14.) Close debugging window, close Visual Basic - you don't need them. Why? because we have finished. You have made your MW3 hack. In case you ABSOLUTELY followed instructions, you have made XP hack. But this tutorial is common, you can make any memory hack for mw3 using this tut. And if you know a bit of coding you can change few options in Module1 and make memory hack for ANY game using this tutorial.
IF HELPED +REP ME.
IF YOU ARE TOO LAZY THANK ME.
IF YOU ARE 1337 TELL US IN COMMENTS.
IF YOU ARE PRO-CODER DON'T RAGE.
IF YOU ARE ~WHOEVER~ DON'T TROLL/SPAM/ETC AS IT IS NOT SPAM SECTION.
IF YOU NEED SOME HELP - PM ME.
Originally written by G-Man 29.11.2011 on itsmods.com
YOU DO NOT HAVE RIGHTS TO POST THIS TUTORIAL WITHOUT MENTIONING AUTHOR AND ITSMODS.COM