Guest User

Untitled

a guest
Jun 18th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. private void button3_Click(object sender, EventArgs e)
  2. {
  3. // converts the hex string to the byte representation
  4. int i = 0;
  5. int x = 0;
  6. byte[] bytes = new byte[(textBox1.Text.Length) / 2];
  7. while (textBox1.Text.Length > i + 1)
  8. {
  9. long lngDecimal = Convert.ToInt32(textBox1.Text.Substring(i, 2), 16);
  10. bytes[x] = Convert.ToByte(lngDecimal);
  11. i = i + 2;
  12. ++x;
  13. }
  14. if (textBox1.TextLength == 16)
  15. {
  16. // sets your xuid
  17. uint num;
  18. XboxConsole xuid = manager.OpenConsole(manager.DefaultConsole);
  19. xuid.DebugTarget.SetMemory(0x81CFAB1C, (uint)bytes.Length, bytes, out num);
  20. }
  21. else
  22. {
  23. throw new Exception("Not a valid xuid");
  24. }
  25. }
  26. }
  27. }
Add Comment
Please, Sign In to add comment