Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //XUID Tool Cracked by: xTwinkyModz
- //Skype: xTwinkyModz
- //
- //Tool made by: Cycotik
- //
- //Have Fun.
- //
- //~xTwinky
- //
- //Advanced Warfare is NOT Included! So ALL COD TILL AW!
- Part 1:
- namespace XUIDSpoofer
- {
- using DevComponents.DotNetBar;
- using DevComponents.DotNetBar.Controls;
- using DevComponents.DotNetBar.Metro;
- using DevComponents.DotNetBar.Metro.ColorTables;
- using DevComponents.Editors;
- using System;
- using System.ComponentModel;
- using System.Drawing;
- using System.Windows.Forms;
- public class Form1 : MetroForm
- {
- private ComboItem BlackOps1;
- private ComboItem BlackOps2;
- private ComboItem CallOfDuty4;
- private IContainer components = null;
- private ButtonX con;
- private ComboBoxEx game;
- private ComboItem Ghosts;
- private TextBoxX gt;
- private LabelX LABEL_Gamertag;
- private LabelX LABEL_SelectGame;
- private LabelX LABEL_Ver;
- private LabelX LABEL_XUID;
- private ComboItem ModernWarfare2;
- private ComboItem ModernWarfare3;
- private Form2 secondForm = new Form2();
- private ButtonX spoof;
- private StyleManager styleManager1;
- private ButtonX tool;
- private ButtonX upd;
- private Form3 UpdateForm = new Form3();
- private ComboItem WorldAtWar;
- private TextBoxX xuid;
- public Form1()
- {
- this.InitializeComponent();
- }
- private void con_Click(object sender, EventArgs e)
- {
- Funcs.console.Connect();
- if (!Funcs.console.activeConnection)
- {
- int num = (int) MessageBoxEx.Show("An error occured while trying to connect to your console");
- this.spoof.Enabled = false;
- this.gt.Enabled = false;
- this.game.Enabled = false;
- this.xuid.Enabled = false;
- this.tool.Enabled = false;
- }
- else
- {
- int num2 = (int) MessageBoxEx.Show("Connected!");
- this.spoof.Enabled = true;
- this.gt.Enabled = true;
- this.game.Enabled = true;
- this.xuid.Enabled = true;
- this.tool.Enabled = true;
- }
- }
- protected override void Dispose(bool disposing)
- {
- if (disposing && (this.components != null))
- {
- this.components.Dispose();
- }
- base.Dispose(disposing);
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- Funcs.console.Connect();
- if (!Funcs.console.activeConnection)
- {
- int num = (int) MessageBoxEx.Show("An error occured while trying to connect to your console");
- this.spoof.Enabled = false;
- this.gt.Enabled = false;
- this.game.Enabled = false;
- this.xuid.Enabled = false;
- this.tool.Enabled = false;
- }
- else
- {
- int num2 = (int) MessageBoxEx.Show("Connected!");
- MessageBoxEx.Show("Tool By @Cycotik");
- this.spoof.Enabled = true;
- this.gt.Enabled = true;
- this.game.Enabled = true;
- this.xuid.Enabled = true;
- this.tool.Enabled = true;
- }
- }
- private void InitializeComponent()
- {
- }
- private void spoof_Click(object sender, EventArgs e)
- {
- this.xuid.Text = Funcs.GetXUID(this.gt.Text);
- if (this.game.Text == "Ghosts")
- {
- Funcs.Ghosts(this.gt.Text, this.xuid.Text);
- }
- else if (this.game.Text == "Black Ops 2")
- {
- Funcs.BO2(this.gt.Text, this.xuid.Text);
- }
- else if (this.game.Text == "Modern Warfare 3")
- {
- Funcs.MW3(this.gt.Text, this.xuid.Text);
- }
- else if (this.game.Text == "Black Ops 1")
- {
- Funcs.BO1(this.gt.Text, this.xuid.Text);
- }
- else if (this.game.Text == "Modern Warfare 2")
- {
- Funcs.MW2(this.gt.Text, this.xuid.Text);
- }
- else if (this.game.Text == "World at War")
- {
- Funcs.WAW(this.gt.Text, this.xuid.Text);
- }
- else if (this.game.Text == "Call of Duty 4")
- {
- Funcs.COD4(this.gt.Text, this.xuid.Text);
- }
- else
- {
- int num = (int) MessageBoxEx.Show("Please select a game");
- }
- }
- private void tool_Click(object sender, EventArgs e)
- {
- MessageBoxEx.Show("Coming Soon!");
- }
- private void upd_Click(object sender, EventArgs e)
- {
- this.UpdateForm.Show();
- }
- }
- }
- Part 2: ( Create a new Class )
- namespace XUIDSpoofer
- {
- using DevComponents.DotNetBar;
- using System;
- using System.Text;
- using System.Threading;
- using UtilityStuff;
- using XRPCLib;
- public static class Funcs
- {
- public static XRPC console = new XRPC();
- public static uint g_freememory = 0x81aa2000;
- public static uint g_rguserinfo = 0x81aa2c6c;
- public static uint g_XamUserGetXUID = 0x816d7a48;
- public static uint g_XUserFindUserAddress = 0x81825d18;
- public static void BO1(string gamertag, string XUID)
- {
- uint address = 0x81aa2c8c;
- uint num2 = 0x841987d5;
- console.SetMemory(address, reverseBytes(gamertag));
- console.SetMemory(num2, Encoding.UTF8.GetBytes(gamertag + "\0"));
- console.SetMemory(num2 + 0x24, Utility.hexString(GetXUID(gamertag)));
- console.SetMemory(num2 + 0x2c, Utility.hexString(Utility.ConvertStringToHex(GetXUID(gamertag))));
- int num3 = (int) MessageBoxEx.Show("Gamertag Spoofed!");
- MessageBoxEx.Show("Gamertag: " + gamertag + " XUID: " + XUID);
- }
- public static void BO2(string gamertag, string XUID)
- {
- uint address = 0x81aa2c8c;
- uint num2 = 0x841e1b30;
- uint num3 = 0x825de218;
- Funcs.console.SetMemory(address, reverseBytes(gamertag));
- Funcs.console.SetMemory(num2, Encoding.UTF8.GetBytes(gamertag + "\0"));
- Funcs.console.SetMemory(num2 + 0x20, Utility.hexString(GetXUID(gamertag)));
- Funcs.console.SetMemory(num2 + 40, Utility.hexString(Utility.ConvertStringToHex(GetXUID(gamertag))));
- XRPC console = Funcs.console;
- int num4 = (int) num3;
- byte[] buffer = new byte[4];
- buffer[0] = 0x48;
- byte[] data = buffer;
- console.SetMemory((uint) num4, data);
- int num5 = (int) MessageBoxEx.Show("Gamertag Spoofed!");
- MessageBoxEx.Show("Gamertag: " + gamertag + " XUID: " + XUID);
- }
- public static void COD4(string gamertag, string XUID)
- {
- uint address = 0x84c24bbc;
- console.SetMemory(address, Encoding.UTF8.GetBytes(gamertag + "\0"));
- console.SetMemory(address + 0x24, Utility.hexString(GetXUID(gamertag)));
- console.SetMemory(address + 0x2c, Utility.hexString(Utility.ConvertStringToHex(GetXUID(gamertag))));
- int num2 = (int) MessageBoxEx.Show("Gamertag Spoofed!");
- MessageBoxEx.Show("Gamertag: " + gamertag + " XUID: " + XUID);
- }
- public static string GetXUID(string gamertag)
- {
- byte[] data = new byte[8];
- console.SetMemory(g_freememory + 0x20, data);
- int num = (int) console.Call(g_XUserFindUserAddress, new object[] { 0x9000006f93463L, 0, gamertag, 0x18, g_freememory + 0x20, 0 });
- Thread.Sleep(0x3e8);
- string str = BitConverter.ToString(console.GetMemory(g_freememory + 0x20, 8)).Replace("-", "");
- console.SetMemory(g_freememory + 0x20, data);
- return str;
- }
- public static void Ghosts(string gamertag, string XUID)
- {
- uint address = 0x83f09e5c;
- console.SetMemory(address, Encoding.UTF8.GetBytes(gamertag + "\0"));
- console.SetMemory(address + 0x24, Utility.hexString(GetXUID(gamertag)));
- console.SetMemory(address + 0x2c, Utility.hexString(Utility.ConvertStringToHex(GetXUID(gamertag))));
- int num2 = (int) MessageBoxEx.Show("Gamertag Spoofed!");
- MessageBoxEx.Show("Gamertag: " + gamertag + " XUID: " + XUID);
- }
- public static void MW2(string gamertag, string XUID)
- {
- uint address = 0x838ba824;
- console.SetMemory(address, Encoding.UTF8.GetBytes(gamertag + "\0"));
- console.SetMemory(address + 0x24, Utility.hexString(GetXUID(gamertag)));
- console.SetMemory(address + 0x2c, Utility.hexString(Utility.ConvertStringToHex(GetXUID(gamertag))));
- int num2 = (int) MessageBoxEx.Show("Gamertag Spoofed!");
- MessageBoxEx.Show("Gamertag: " + gamertag + " XUID: " + XUID);
- }
- public static void MW3(string gamertag, string XUID)
- {
- uint address = 0x839691ac;
- console.SetMemory(address, Encoding.UTF8.GetBytes(gamertag + "\0"));
- console.SetMemory(address + 0x24, Utility.hexString(GetXUID(gamertag)));
- console.SetMemory(address + 0x2c, Utility.hexString(Utility.ConvertStringToHex(GetXUID(gamertag))));
- int num2 = (int) MessageBoxEx.Show("Gamertag Spoofed!");
- MessageBoxEx.Show("Gamertag: " + gamertag + " XUID: " + XUID);
- }
- public static byte[] reverseBytes(string gamertag)
- {
- byte[] buffer = new byte[(gamertag.Length * 2) + 2];
- buffer[0] = 0;
- uint index = 1;
- foreach (char ch in gamertag)
- {
- buffer[index] = (byte) ch;
- uint num2 = index + 1;
- buffer[num2] = 0;
- index = num2 + 1;
- }
- buffer[index] = 0;
- return buffer;
- }
- public static void WAW(string gamertag, string XUID)
- {
- uint address = 0x852336b5;
- console.SetMemory(address, Encoding.UTF8.GetBytes(gamertag + "\0"));
- console.SetMemory(address + 0x24, Utility.hexString(GetXUID(gamertag)));
- console.SetMemory(address + 0x2c, Utility.hexString(Utility.ConvertStringToHex(GetXUID(gamertag))));
- int num2 = (int) MessageBoxEx.Show("Gamertag Spoofed!");
- MessageBoxEx.Show("Gamertag: " + gamertag + " XUID: " + XUID);
- }
- public static string XamUserGetXUID()
- {
- byte[] data = new byte[8];
- console.SetMemory(g_freememory + 0x10, data);
- console.Call(g_XamUserGetXUID, new object[] { 0, 2, g_freememory + 0x10 });
- string str = BitConverter.ToString(console.GetMemory(0x81aa2010, 8)).Replace("-", "");
- console.SetMemory(g_freememory + 0x10, data);
- return str;
- }
- }
- }
- Part 3: Stuff you need ( Create another Class )
- namespace UtilityStuff
- {
- using System;
- using System.Linq;
- using System.Text;
- public static class Utility
- {
- public static string ByteToString(byte[] input)
- {
- return Encoding.UTF8.GetString(input);
- }
- public static string ConvertStringToHex(string asciiString)
- {
- string str = "";
- string str3 = asciiString;
- for (int i = 0; i < str3.Length; i++)
- {
- int num = str3[i];
- if (num == 0)
- {
- return str;
- }
- str = str + string.Format("{0:x2}", Convert.ToUInt32(num.ToString()));
- }
- return str;
- }
- public static byte[] hexString(string hex)
- {
- Func<int, byte> func2 = null;
- try
- {
- hex = hex.Replace(" ", "").Replace("0x", "");
- if (func2 == null)
- {
- func2 = x => Convert.ToByte(hex.Substring(x, 2), 0x10);
- }
- Func<int, byte> selector = func2;
- return (from x in Enumerable.Range(0, hex.Length)
- where (x % 2) == 0
- select x).Select<int, byte>(selector).ToArray<byte>();
- }
- catch (Exception)
- {
- return new byte[1];
- }
- }
- public static byte[] ReverseBytes(byte[] inArray)
- {
- int index = inArray.Length - 1;
- for (int i = 0; i < (inArray.Length / 2); i++)
- {
- byte num3 = inArray[i];
- inArray[i] = inArray[index];
- inArray[index] = num3;
- index--;
- }
- return inArray;
- }
- public static byte[] uintBytes(uint get)
- {
- return ReverseBytes(BitConverter.GetBytes(get));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement