using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MW3_Testing
{
public unsafe partial class Form1 : Form
{
Memory memoryClass = new Memory();
public Form1()
{
InitializeComponent();
UpdatePlayerList();
}
enum playerState_t
{
Normal = 0,
Noclip = 2,
Freeze = 4
};
int OFFS_Size = 0x38EC, OFFS_PlayerState = 0x1C2CA0C, OFFS_Name = 0x9FA684, tempI = 0;
private void UpdatePlayerList()
{
if (!memoryClass.Open_pHandel("iw5mp"))
{
Combo_Players.Items.Clear();
return;
}
for (int i = 0; i < 18; i++)
memoryClass.WriteInt(OFFS_PlayerState + (OFFS_Size * i), 0);
Combo_Players.Items.Clear();
for (int i = 0; i < 18; i++)
{
string tempS = memoryClass.ReadStringAdvanced(OFFS_Name + (OFFS_Size * i), 32);
if (tempS != null)
Combo_Players.Items.Add(tempS);
else
Combo_Players.Items.Add("--Unable to load");
}
}
private void Timer_Main_Tick(object sender, EventArgs e)
{
Label_PlayerState.Text = (memoryClass.Open_pHandel("iw5mp") == true ? ((tempI = memoryClass.ReadInt(OFFS_PlayerState + (Combo_Players.SelectedIndex * OFFS_Size))) == (int)playerState_t.Normal ? "Normal" : (tempI == (int)playerState_t.Noclip ? "Noclip" : (tempI == (int)playerState_t.Freeze ? "Froozen" : "Unknown player state"))) : "Open Game");
}
private void Button_Normal_Click(object sender, EventArgs e)
{
if (memoryClass.Open_pHandel("iw5mp"))
memoryClass.WriteInt(OFFS_PlayerState + (OFFS_Size * Combo_Players.SelectedIndex), (int)playerState_t.Normal);
}
private void Button_Noclip_Click(object sender, EventArgs e)
{
if (memoryClass.Open_pHandel("iw5mp"))
memoryClass.WriteInt(OFFS_PlayerState + (OFFS_Size * Combo_Players.SelectedIndex), (int)playerState_t.Noclip);
}
private void Button_Freeze_Click(object sender, EventArgs e)
{
if (memoryClass.Open_pHandel("iw5mp"))
memoryClass.WriteInt(OFFS_PlayerState + (OFFS_Size * Combo_Players.SelectedIndex), (int)playerState_t.Freeze);
}
private void Label_UpdatePlayers_Click(object sender, EventArgs e)
{
UpdatePlayerList();
}
}
}

Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
Imports System.Linq
Imports System.Text
Imports System.Threading
Imports System.Threading.Tasks
Imports System.Windows.Forms
Namespace MW3_Testing
Public Partial Class Form1
Inherits Form
Private memoryClass As New Memory()
Public Sub New()
InitializeComponent()
UpdatePlayerList()
End Sub
Private Enum playerState_t
Normal = 0
Noclip = 2
Freeze = 4
End Enum
Private OFFS_Size As Integer = &H38ec, OFFS_PlayerState As Integer = &H1c2ca0c, OFFS_Name As Integer = &H9fa684, tempI As Integer = 0
Private Sub UpdatePlayerList()
If Not memoryClass.Open_pHandel("iw5mp") Then
Combo_Players.Items.Clear()
Return
End If
For i As Integer = 0 To 17
memoryClass.WriteInt(OFFS_PlayerState + (OFFS_Size * i), 0)
Next
Combo_Players.Items.Clear()
For i As Integer = 0 To 17
Dim tempS As String = memoryClass.ReadStringAdvanced(OFFS_Name + (OFFS_Size * i), 32)
If tempS IsNot Nothing Then
Combo_Players.Items.Add(tempS)
Else
Combo_Players.Items.Add("--Unable to load")
End If
Next
End Sub
Private Sub Timer_Main_Tick(sender As Object, e As EventArgs)
Label_PlayerState.Text = (If(memoryClass.Open_pHandel("iw5mp") = True, (If((InlineAssignHelper(tempI, memoryClass.ReadInt(OFFS_PlayerState + (Combo_Players.SelectedIndex * OFFS_Size)))) = CInt(playerState_t.Normal), "Normal", (If(tempI = CInt(playerState_t.Noclip), "Noclip", (If(tempI = CInt(playerState_t.Freeze), "Froozen", "Unknown player state")))))), "Open Game"))
End Sub
Private Sub Button_Normal_Click(sender As Object, e As EventArgs)
If memoryClass.Open_pHandel("iw5mp") Then
memoryClass.WriteInt(OFFS_PlayerState + (OFFS_Size * Combo_Players.SelectedIndex), CInt(playerState_t.Normal))
End If
End Sub
Private Sub Button_Noclip_Click(sender As Object, e As EventArgs)
If memoryClass.Open_pHandel("iw5mp") Then
memoryClass.WriteInt(OFFS_PlayerState + (OFFS_Size * Combo_Players.SelectedIndex), CInt(playerState_t.Noclip))
End If
End Sub
Private Sub Button_Freeze_Click(sender As Object, e As EventArgs)
If memoryClass.Open_pHandel("iw5mp") Then
memoryClass.WriteInt(OFFS_PlayerState + (OFFS_Size * Combo_Players.SelectedIndex), CInt(playerState_t.Freeze))
End If
End Sub
Private Sub Label_UpdatePlayers_Click(sender As Object, e As EventArgs)
UpdatePlayerList()
End Sub
Private Shared Function InlineAssignHelper(Of T)(ByRef target As T, value As T) As T
target = value
Return value
End Function
End Class
End Namespace
#include <windows.h>
#include <iostream>
using namespace std;
BYTE NoRecoil[] = { 0xEB, 0x22 };
BYTE Recoil[] = { 0x74, 0x22 };
int main()
{
LPCWSTR MW3 = L"Call Of Duty®: Modern Warfare® 3 Multiplayer";
HWND hwnd = FindWindow(0, MW3);
if (hwnd == 0)
{
cout << "The game has not been found. Open the game first, then the hack!" << endl;
system("Pause");
}
else
{
DWORD process_ID;
GetWindowThreadProcessId(hwnd, &process_ID);
HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, process_ID);
cout << "MW3 MP has been found. Enjoy the hack!" << endl;
system("Pause");
cout << "Type 1 to enable no recoil or type 0 to disable recoil" << endl;
cout << "Type: ";
int option;
cin >> option;
if (option > 1)
{
cout << "No higher option then 1. Type 1 to enable no recoil or type 0 to disable recoil!" << endl;
system("Pause");
}
if (option == 1)
{
if (WriteProcessMemory(hProcess, (void*)0x0054F8DD, &NoRecoil, 2, 0))
{
cout << "No recoil has been enabled!" << endl;
system("Pause");
}
else
{
cout << "There was an error enabling the hack." << endl;
system("Pause");
}
}
if (option == 0)
{
if (WriteProcessMemory(hProcess, (void*)0x0054F8DD, &Recoil, 2, 0))
{
cout << "No recoil has been disabled!" << endl;
system("Pause");
}
else
{
cout << "There was an error disabling the hack." << endl;
system("Pause");
}
}
}
main();
}