Advertisement
xTwinkyModz

All COD: XUID Spoofer ( Source Code )

Dec 26th, 2014
3,624
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 13.32 KB | None | 0 0
  1. //XUID Tool Cracked by: xTwinkyModz
  2. //Skype: xTwinkyModz
  3. //
  4. //Tool made by: Cycotik
  5. //
  6. //Have Fun.
  7. //
  8. //~xTwinky
  9. //
  10. //Advanced Warfare is NOT Included! So ALL COD TILL AW!
  11.  
  12. Part 1:
  13.  
  14. namespace XUIDSpoofer
  15. {
  16.     using DevComponents.DotNetBar;
  17.     using DevComponents.DotNetBar.Controls;
  18.     using DevComponents.DotNetBar.Metro;
  19.     using DevComponents.DotNetBar.Metro.ColorTables;
  20.     using DevComponents.Editors;
  21.     using System;
  22.     using System.ComponentModel;
  23.     using System.Drawing;
  24.     using System.Windows.Forms;
  25.  
  26.     public class Form1 : MetroForm
  27.     {
  28.         private ComboItem BlackOps1;
  29.         private ComboItem BlackOps2;
  30.         private ComboItem CallOfDuty4;
  31.         private IContainer components = null;
  32.         private ButtonX con;
  33.         private ComboBoxEx game;
  34.         private ComboItem Ghosts;
  35.         private TextBoxX gt;
  36.         private LabelX LABEL_Gamertag;
  37.         private LabelX LABEL_SelectGame;
  38.         private LabelX LABEL_Ver;
  39.         private LabelX LABEL_XUID;
  40.         private ComboItem ModernWarfare2;
  41.         private ComboItem ModernWarfare3;
  42.         private Form2 secondForm = new Form2();
  43.         private ButtonX spoof;
  44.         private StyleManager styleManager1;
  45.         private ButtonX tool;
  46.         private ButtonX upd;
  47.         private Form3 UpdateForm = new Form3();
  48.         private ComboItem WorldAtWar;
  49.         private TextBoxX xuid;
  50.  
  51.         public Form1()
  52.         {
  53.             this.InitializeComponent();
  54.         }
  55.  
  56.         private void con_Click(object sender, EventArgs e)
  57.         {
  58.             Funcs.console.Connect();
  59.             if (!Funcs.console.activeConnection)
  60.             {
  61.                 int num = (int) MessageBoxEx.Show("An error occured while trying to connect to your console");
  62.                 this.spoof.Enabled = false;
  63.                 this.gt.Enabled = false;
  64.                 this.game.Enabled = false;
  65.                 this.xuid.Enabled = false;
  66.                 this.tool.Enabled = false;
  67.             }
  68.             else
  69.             {
  70.                 int num2 = (int) MessageBoxEx.Show("Connected!");
  71.                 this.spoof.Enabled = true;
  72.                 this.gt.Enabled = true;
  73.                 this.game.Enabled = true;
  74.                 this.xuid.Enabled = true;
  75.                 this.tool.Enabled = true;
  76.             }
  77.         }
  78.  
  79.         protected override void Dispose(bool disposing)
  80.         {
  81.             if (disposing && (this.components != null))
  82.             {
  83.                 this.components.Dispose();
  84.             }
  85.             base.Dispose(disposing);
  86.         }
  87.  
  88.         private void Form1_Load(object sender, EventArgs e)
  89.         {
  90.             Funcs.console.Connect();
  91.             if (!Funcs.console.activeConnection)
  92.             {
  93.                 int num = (int) MessageBoxEx.Show("An error occured while trying to connect to your console");
  94.                 this.spoof.Enabled = false;
  95.                 this.gt.Enabled = false;
  96.                 this.game.Enabled = false;
  97.                 this.xuid.Enabled = false;
  98.                 this.tool.Enabled = false;
  99.             }
  100.             else
  101.             {
  102.                 int num2 = (int) MessageBoxEx.Show("Connected!");
  103.                 MessageBoxEx.Show("Tool By @Cycotik");
  104.                 this.spoof.Enabled = true;
  105.                 this.gt.Enabled = true;
  106.                 this.game.Enabled = true;
  107.                 this.xuid.Enabled = true;
  108.                 this.tool.Enabled = true;
  109.             }
  110.         }
  111.  
  112.         private void InitializeComponent()
  113.         {
  114.            
  115.         }
  116.  
  117.         private void spoof_Click(object sender, EventArgs e)
  118.         {
  119.             this.xuid.Text = Funcs.GetXUID(this.gt.Text);
  120.             if (this.game.Text == "Ghosts")
  121.             {
  122.                 Funcs.Ghosts(this.gt.Text, this.xuid.Text);
  123.             }
  124.             else if (this.game.Text == "Black Ops 2")
  125.             {
  126.                 Funcs.BO2(this.gt.Text, this.xuid.Text);
  127.             }
  128.             else if (this.game.Text == "Modern Warfare 3")
  129.             {
  130.                 Funcs.MW3(this.gt.Text, this.xuid.Text);
  131.             }
  132.             else if (this.game.Text == "Black Ops 1")
  133.             {
  134.                 Funcs.BO1(this.gt.Text, this.xuid.Text);
  135.             }
  136.             else if (this.game.Text == "Modern Warfare 2")
  137.             {
  138.                 Funcs.MW2(this.gt.Text, this.xuid.Text);
  139.             }
  140.             else if (this.game.Text == "World at War")
  141.             {
  142.                 Funcs.WAW(this.gt.Text, this.xuid.Text);
  143.             }
  144.             else if (this.game.Text == "Call of Duty 4")
  145.             {
  146.                 Funcs.COD4(this.gt.Text, this.xuid.Text);
  147.             }
  148.             else
  149.             {
  150.                 int num = (int) MessageBoxEx.Show("Please select a game");
  151.             }
  152.         }
  153.  
  154.         private void tool_Click(object sender, EventArgs e)
  155.         {
  156.             MessageBoxEx.Show("Coming Soon!");
  157.         }
  158.  
  159.         private void upd_Click(object sender, EventArgs e)
  160.         {
  161.             this.UpdateForm.Show();
  162.         }
  163.     }
  164. }
  165.  
  166. Part 2: ( Create a new Class )
  167.  
  168. namespace XUIDSpoofer
  169. {
  170.     using DevComponents.DotNetBar;
  171.     using System;
  172.     using System.Text;
  173.     using System.Threading;
  174.     using UtilityStuff;
  175.     using XRPCLib;
  176.  
  177.     public static class Funcs
  178.     {
  179.         public static XRPC console = new XRPC();
  180.         public static uint g_freememory = 0x81aa2000;
  181.         public static uint g_rguserinfo = 0x81aa2c6c;
  182.         public static uint g_XamUserGetXUID = 0x816d7a48;
  183.         public static uint g_XUserFindUserAddress = 0x81825d18;
  184.  
  185.         public static void BO1(string gamertag, string XUID)
  186.         {
  187.             uint address = 0x81aa2c8c;
  188.             uint num2 = 0x841987d5;
  189.             console.SetMemory(address, reverseBytes(gamertag));
  190.             console.SetMemory(num2, Encoding.UTF8.GetBytes(gamertag + "\0"));
  191.             console.SetMemory(num2 + 0x24, Utility.hexString(GetXUID(gamertag)));
  192.             console.SetMemory(num2 + 0x2c, Utility.hexString(Utility.ConvertStringToHex(GetXUID(gamertag))));
  193.             int num3 = (int) MessageBoxEx.Show("Gamertag Spoofed!");
  194.             MessageBoxEx.Show("Gamertag: " + gamertag + " XUID: " + XUID);
  195.         }
  196.  
  197.         public static void BO2(string gamertag, string XUID)
  198.         {
  199.             uint address = 0x81aa2c8c;
  200.             uint num2 = 0x841e1b30;
  201.             uint num3 = 0x825de218;
  202.             Funcs.console.SetMemory(address, reverseBytes(gamertag));
  203.             Funcs.console.SetMemory(num2, Encoding.UTF8.GetBytes(gamertag + "\0"));
  204.             Funcs.console.SetMemory(num2 + 0x20, Utility.hexString(GetXUID(gamertag)));
  205.             Funcs.console.SetMemory(num2 + 40, Utility.hexString(Utility.ConvertStringToHex(GetXUID(gamertag))));
  206.             XRPC console = Funcs.console;
  207.             int num4 = (int) num3;
  208.             byte[] buffer = new byte[4];
  209.             buffer[0] = 0x48;
  210.             byte[] data = buffer;
  211.             console.SetMemory((uint) num4, data);
  212.             int num5 = (int) MessageBoxEx.Show("Gamertag Spoofed!");
  213.             MessageBoxEx.Show("Gamertag: " + gamertag + " XUID: " + XUID);
  214.         }
  215.  
  216.         public static void COD4(string gamertag, string XUID)
  217.         {
  218.             uint address = 0x84c24bbc;
  219.             console.SetMemory(address, Encoding.UTF8.GetBytes(gamertag + "\0"));
  220.             console.SetMemory(address + 0x24, Utility.hexString(GetXUID(gamertag)));
  221.             console.SetMemory(address + 0x2c, Utility.hexString(Utility.ConvertStringToHex(GetXUID(gamertag))));
  222.             int num2 = (int) MessageBoxEx.Show("Gamertag Spoofed!");
  223.             MessageBoxEx.Show("Gamertag: " + gamertag + " XUID: " + XUID);
  224.         }
  225.  
  226.         public static string GetXUID(string gamertag)
  227.         {
  228.             byte[] data = new byte[8];
  229.             console.SetMemory(g_freememory + 0x20, data);
  230.             int num = (int) console.Call(g_XUserFindUserAddress, new object[] { 0x9000006f93463L, 0, gamertag, 0x18, g_freememory + 0x20, 0 });
  231.             Thread.Sleep(0x3e8);
  232.             string str = BitConverter.ToString(console.GetMemory(g_freememory + 0x20, 8)).Replace("-", "");
  233.             console.SetMemory(g_freememory + 0x20, data);
  234.             return str;
  235.         }
  236.  
  237.         public static void Ghosts(string gamertag, string XUID)
  238.         {
  239.             uint address = 0x83f09e5c;
  240.             console.SetMemory(address, Encoding.UTF8.GetBytes(gamertag + "\0"));
  241.             console.SetMemory(address + 0x24, Utility.hexString(GetXUID(gamertag)));
  242.             console.SetMemory(address + 0x2c, Utility.hexString(Utility.ConvertStringToHex(GetXUID(gamertag))));
  243.             int num2 = (int) MessageBoxEx.Show("Gamertag Spoofed!");
  244.             MessageBoxEx.Show("Gamertag: " + gamertag + " XUID: " + XUID);
  245.         }
  246.  
  247.         public static void MW2(string gamertag, string XUID)
  248.         {
  249.             uint address = 0x838ba824;
  250.             console.SetMemory(address, Encoding.UTF8.GetBytes(gamertag + "\0"));
  251.             console.SetMemory(address + 0x24, Utility.hexString(GetXUID(gamertag)));
  252.             console.SetMemory(address + 0x2c, Utility.hexString(Utility.ConvertStringToHex(GetXUID(gamertag))));
  253.             int num2 = (int) MessageBoxEx.Show("Gamertag Spoofed!");
  254.             MessageBoxEx.Show("Gamertag: " + gamertag + " XUID: " + XUID);
  255.         }
  256.  
  257.         public static void MW3(string gamertag, string XUID)
  258.         {
  259.             uint address = 0x839691ac;
  260.             console.SetMemory(address, Encoding.UTF8.GetBytes(gamertag + "\0"));
  261.             console.SetMemory(address + 0x24, Utility.hexString(GetXUID(gamertag)));
  262.             console.SetMemory(address + 0x2c, Utility.hexString(Utility.ConvertStringToHex(GetXUID(gamertag))));
  263.             int num2 = (int) MessageBoxEx.Show("Gamertag Spoofed!");
  264.             MessageBoxEx.Show("Gamertag: " + gamertag + " XUID: " + XUID);
  265.         }
  266.  
  267.         public static byte[] reverseBytes(string gamertag)
  268.         {
  269.             byte[] buffer = new byte[(gamertag.Length * 2) + 2];
  270.             buffer[0] = 0;
  271.             uint index = 1;
  272.             foreach (char ch in gamertag)
  273.             {
  274.                 buffer[index] = (byte) ch;
  275.                 uint num2 = index + 1;
  276.                 buffer[num2] = 0;
  277.                 index = num2 + 1;
  278.             }
  279.             buffer[index] = 0;
  280.             return buffer;
  281.         }
  282.  
  283.         public static void WAW(string gamertag, string XUID)
  284.         {
  285.             uint address = 0x852336b5;
  286.             console.SetMemory(address, Encoding.UTF8.GetBytes(gamertag + "\0"));
  287.             console.SetMemory(address + 0x24, Utility.hexString(GetXUID(gamertag)));
  288.             console.SetMemory(address + 0x2c, Utility.hexString(Utility.ConvertStringToHex(GetXUID(gamertag))));
  289.             int num2 = (int) MessageBoxEx.Show("Gamertag Spoofed!");
  290.             MessageBoxEx.Show("Gamertag: " + gamertag + " XUID: " + XUID);
  291.         }
  292.  
  293.         public static string XamUserGetXUID()
  294.         {
  295.             byte[] data = new byte[8];
  296.             console.SetMemory(g_freememory + 0x10, data);
  297.             console.Call(g_XamUserGetXUID, new object[] { 0, 2, g_freememory + 0x10 });
  298.             string str = BitConverter.ToString(console.GetMemory(0x81aa2010, 8)).Replace("-", "");
  299.             console.SetMemory(g_freememory + 0x10, data);
  300.             return str;
  301.         }
  302.     }
  303. }
  304.  
  305. Part 3: Stuff you need ( Create another Class )
  306.  
  307. namespace UtilityStuff
  308. {
  309.     using System;
  310.     using System.Linq;
  311.     using System.Text;
  312.  
  313.     public static class Utility
  314.     {
  315.         public static string ByteToString(byte[] input)
  316.         {
  317.             return Encoding.UTF8.GetString(input);
  318.         }
  319.  
  320.         public static string ConvertStringToHex(string asciiString)
  321.         {
  322.             string str = "";
  323.             string str3 = asciiString;
  324.             for (int i = 0; i < str3.Length; i++)
  325.             {
  326.                 int num = str3[i];
  327.                 if (num == 0)
  328.                 {
  329.                     return str;
  330.                 }
  331.                 str = str + string.Format("{0:x2}", Convert.ToUInt32(num.ToString()));
  332.             }
  333.             return str;
  334.         }
  335.  
  336.         public static byte[] hexString(string hex)
  337.         {
  338.             Func<int, byte> func2 = null;
  339.             try
  340.             {
  341.                 hex = hex.Replace(" ", "").Replace("0x", "");
  342.                 if (func2 == null)
  343.                 {
  344.                     func2 = x => Convert.ToByte(hex.Substring(x, 2), 0x10);
  345.                 }
  346.                 Func<int, byte> selector = func2;
  347.                 return (from x in Enumerable.Range(0, hex.Length)
  348.                     where (x % 2) == 0
  349.                     select x).Select<int, byte>(selector).ToArray<byte>();
  350.             }
  351.             catch (Exception)
  352.             {
  353.                 return new byte[1];
  354.             }
  355.         }
  356.  
  357.         public static byte[] ReverseBytes(byte[] inArray)
  358.         {
  359.             int index = inArray.Length - 1;
  360.             for (int i = 0; i < (inArray.Length / 2); i++)
  361.             {
  362.                 byte num3 = inArray[i];
  363.                 inArray[i] = inArray[index];
  364.                 inArray[index] = num3;
  365.                 index--;
  366.             }
  367.             return inArray;
  368.         }
  369.  
  370.         public static byte[] uintBytes(uint get)
  371.         {
  372.             return ReverseBytes(BitConverter.GetBytes(get));
  373.         }
  374.     }
  375. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement