Advertisement
IAmXeClutch

[Project] HV Payload Patcher

Jun 12th, 2014
834
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.00 KB | None | 0 0
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.IO;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading;
  8. using System.Threading.Tasks;
  9.  
  10. namespace HV_Payload_Patcher
  11. {
  12.     class Program
  13.     {
  14.         static void Main(string[] args)
  15.         {
  16.             string path = args[0];
  17.             Console.ForegroundColor = ConsoleColor.White;
  18.             Console.Title = "HV Payload Patcher by XeClutch";
  19.             Print("Patching Xbox360 Hypervisor... ");
  20.             byte[] hv = File.ReadAllBytes(path);
  21.             for (int i = 0x00; i < 0x71; i++)
  22.                 hv[0x32500 + i] = 0x00;
  23.             Print("Patched!\nSaving Xbox360 Hypervisor... ");
  24.             path = path.Replace(".bin", "");
  25.             path += "-patched.bin";
  26.             File.WriteAllBytes(path, hv);
  27.             Print("Saved!");
  28.             Console.ReadKey();
  29.         }
  30.  
  31.         static void Print(string text)
  32.         {
  33.             Console.Write(text);
  34.         }
  35.     }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement