Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Core;
- using IniParser;
- using JRPC_Client;
- using KV_Checker_Addon;
- using KV_Checker_Addon.Properties;
- using Microsoft.Test.Xbox.XDRPC;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Diagnostics;
- using System.Drawing;
- using System.Globalization;
- using System.IO;
- using System.Linq;
- using System.Net;
- using System.Net.Sockets;
- using System.Reflection;
- using System.Runtime.InteropServices;
- using System.Security.Cryptography;
- using System.Text;
- using System.Threading;
- using System.Windows.Forms;
- using XDevkit;
- using xDialog;
- using XenonKerbAuthenticator;
- namespace KV_Checker_Addon
- {
- public class Form1 : Form
- {
- public static string[] ListSXuid = new string[8];
- public static ulong[] ListLXuid = new ulong[8];
- private static readonly string[] SizeSuffixes = new string[9]{ "bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB" };
- private FileIniDataParser parser = new FileIniDataParser();
- private string path = Application.StartupPath + "\\";
- private string sprocess = "XenonKerbAuthenticator";
- private WebClient download = new WebClient();
- private string dlversion = "https://dl.dropbox.com/s/axqyzwvy08n8hsq/VersionPub.txt?dl=0";
- private string myversion = Application.ProductVersion;
- private byte[] SMCMessage = new byte[16];
- private byte[] SMCReturn = new byte[16];
- private string artoung = "";
- private string kvdir = "";
- private string sPath = "launch.ini";
- public string[] ListGamerTags = new string[32];
- public string[] ListFGamerTags = new string[100];
- public string[] ListFSXuid = new string[100];
- public ulong[] ListFLXuid = new ulong[100];
- public string[] ListFGameID = new string[100];
- public string[] FStatus = new string[100];
- public string[] friendstatus = new string[100];
- public string[] friendconsole = new string[100];
- private string GlobalGT = "";
- private const string uplink = "https://dl.dropbox.com/s/0wavybe0zcpyyjv/JTAG%20Sidekick.exe?dl=0";
- private const string lol = "https://dl.dropbox.com/s/iwjvk4xc3jheeqp/Hmm.txt?dl=0";
- private const string text = "https://dl.dropbox.com/s/2pr1swhltift4uc/Notify.txt?dl=0";
- private IContainer components;
- internal System.Windows.Forms.Timer Timer1;
- internal OpenFileDialog OpenFileDialog1;
- private NSTheme nsTheme1;
- private Label Label1;
- internal System.Windows.Forms.Button Button6;
- internal System.Windows.Forms.Button Button5;
- internal System.Windows.Forms.Button Button4;
- internal RichTextBox RichTextBox1;
- internal System.Windows.Forms.Button Button3;
- internal TextBox TextBox3;
- internal System.Windows.Forms.Button Button2;
- internal TextBox TextBox1;
- internal System.Windows.Forms.Button Button1;
- private System.Windows.Forms.Timer timer2;
- private System.Windows.Forms.Timer timer3;
- private NSButton nsButton6;
- private NSButton nsButton5;
- private NSButton nsButton13;
- private ContextMenuStrip contextMenuStrip;
- private ToolStripMenuItem toolStripMenuItemCopy;
- private ToolStripMenuItem toolStripMenuItemPaste;
- private ToolStripMenuItem toolStripMenuItemDelete;
- private ToolStripMenuItem toolStripMenuItemProperties;
- private ImageList imageList;
- private NSContextMenu nsContextMenu1;
- private ToolStripMenuItem copyBaseAddressToolStripMenuItem;
- private ToolStripMenuItem copyEntryAddressToolStripMenuItem;
- private ToolStripMenuItem copyCRC32HashToolStripMenuItem;
- private NSContextMenu nsContextMenu2;
- private ToolStripMenuItem toolStripMenuItem1;
- private ToolStripMenuItem toolStripMenuItem2;
- private ToolStripMenuItem launchDefaultxbeToolStripMenuItem;
- private NSTabControl nsTabControl1;
- private TabPage tabPage1;
- private NSButton nsButton3;
- private NSButton nsButton14;
- private NSGroupBox nsGroupBox2;
- private RichTextBox richTextBox3;
- private RichTextBox richTextBox2;
- private NSGroupBox nsGroupBox1;
- private NSButton nsButton4;
- private NSButton nsButton2;
- private NSButton nsButton1;
- private TabPage tabPage2;
- private NSGroupBox nsGroupBox5;
- private NSButton nsButton10;
- private NSListView nsListView1;
- private NSButton nsButton8;
- private TabPage tabPage3;
- private NSButton nsButton12;
- private NSButton nsButton11;
- private NSGroupBox nsGroupBox6;
- private NSLabel nsLabel9;
- private NSLabel nsLabel14;
- private NSLabel nsLabel12;
- private NSLabel nsLabel11;
- private NSLabel nsLabel10;
- private NSLabel nsLabel8;
- private NSLabel nsLabel7;
- private NSLabel nsLabel6;
- private TabPage tabPage4;
- private NSProgressBar nsProgressBar1;
- private NSButton nsButton9;
- private NSGroupBox nsGroupBox7;
- private NSLabel nsLabel15;
- private NSListView nsListView3;
- private NSLabel nsLabel2;
- private TabPage tabPage5;
- private NSButton nsButton17;
- private NSTextBox nsTextBox3;
- private NSLabel nsLabel16;
- private NSButton nsButton16;
- private NSListView nsListView2;
- private NSGroupBox nsGroupBox9;
- private TabPage tabPage6;
- private NSComboBox nsComboBox1;
- private NSComboBox nsComboBox2;
- private NSLabel nsLabel17;
- private System.Windows.Forms.Timer timer4;
- private System.Windows.Forms.Timer timer5;
- private BackgroundWorker backgroundWorker1;
- private NSLabel nsLabel33;
- private NSGroupBox nsGroupBox4;
- private NSLabel nsLabel34;
- private NSButton nsButton24;
- private NSButton nsButton23;
- private NSButton nsButton22;
- private NSButton nsButton21;
- private NSLabel nsLabel32;
- private NSOnOffBox nsOnOffBox3;
- private Label label4;
- private Label label3;
- private NSLabel nsLabel30;
- private NSTrackBar nsTrackBar1;
- private NSLabel nsLabel31;
- private NSButton nsButton20;
- private NSButton nsButton19;
- private NSLabel nsLabel28;
- private NSLabel nsLabel27;
- private NSLabel nsLabel26;
- private NSLabel nsLabel25;
- private NSLabel nsLabel24;
- private NSLabel nsLabel23;
- private NSLabel nsLabel22;
- private NSComboBox nsComboBox6;
- private NSComboBox nsComboBox5;
- private NSComboBox nsComboBox4;
- private NSComboBox nsComboBox3;
- private NSButton nsButton18;
- private NSLabel nsLabel21;
- private NSLabel nsLabel20;
- private NSLabel nsLabel19;
- private NSLabel nsLabel18;
- private NSButton nsButton7;
- private NSTextBox nsTextBox1;
- private NSLabel nsLabel3;
- private NSGroupBox nsGroupBox3;
- private Label label6;
- private Label label5;
- private NSButton nsButton25;
- private NSOnOffBox nsOnOffBox2;
- private NSLabel nsLabel29;
- private NSTextBox nsTextBox2;
- private NSLabel nsLabel4;
- private NSLabel nsLabel1;
- private NSOnOffBox nsOnOffBox1;
- private NSLabel nsLabel5;
- private NSGroupBox nsGroupBox8;
- private NSButton nsButton15;
- private NSLabel nsLabel13;
- private TreeView treeView2;
- private TabPage tabPage7;
- private NSGroupBox nsGroupBox10;
- private NSLabel nsLabel35;
- private NSLabel nsLabel36;
- private NSListView nsListView4;
- private NSContextMenu nsContextMenu3;
- private ToolStripMenuItem watchVideoToolStripMenuItem;
- private NSLabel nsLabel37;
- private NSComboBox nsComboBox7;
- private WebBrowser webBrowser1;
- private NSButton nsButton26;
- private NSOnOffBox nsOnOffBox4;
- private NSLabel nsLabel38;
- private NSButton nsButton27;
- private TabPage tabPage8;
- private NSButton nsButton28;
- private NSListView nsListView5;
- private NSGroupBox nsGroupBox11;
- private NSLabel nsLabel40;
- private NSLabel nsLabel39;
- private NSTextBox nsTextBox8;
- private NSTextBox nsTextBox9;
- private NSButton nsButton33;
- private NSTextBox nsTextBox6;
- private NSTextBox nsTextBox7;
- private NSButton nsButton31;
- private NSButton nsButton32;
- private NSLabel nsLabel42;
- private NSLabel nsLabel41;
- private NSGroupBox nsGroupBox12;
- private PictureBox pictureBox1;
- private PictureBox pictureBox2;
- private NSButton nsButton29;
- private NSLabel nsLabel43;
- private NSTextBox nsTextBox4;
- private Label label7;
- private NSButton nsButton30;
- private NSTextBox nsTextBox5;
- private NSLabel nsLabel44;
- private TabPage tabPage9;
- private NSGroupBox nsGroupBox13;
- private NSListView nsListView6;
- private PictureBox pictureBox3;
- private NSButton nsButton34;
- private PictureBox pictureBox4;
- private NSContextMenu nsContextMenu4;
- private ToolStripMenuItem joinPartyToolStripMenuItem;
- private NSContextMenu nsContextMenu5;
- private ToolStripMenuItem kickToolStripMenuItem;
- private Label label8;
- private BackgroundWorker backgroundWorker2;
- private NSButton nsButton35;
- private Label label2;
- private NSButton nsButton36;
- private string log;
- private string version;
- private IXboxConsole Jtag;
- private IXboxManager xboxManager;
- private byte[] MotherboardSerialNumber;
- private string kvtosend;
- private bool connected;
- private int games;
- private bool ledsmessedwith;
- private bool jtagconnected;
- private int totalgames;
- private bool shouldcomplete;
- private int state;
- private int traystate;
- private int video;
- private byte[] defaultxuid;
- public byte[] XUIDGlobal;
- private bool defaultgrabbed;
- private bool firsthit;
- public int PartyUsersCount;
- public int FUsersCount;
- private int modulehash;
- private int edittimes;
- private readonly object @this;
- private object Address;
- private int index1;
- public Form1()
- {
- this.InitializeComponent();
- }
- protected override void Dispose(bool disposing)
- {
- if (disposing && this.components != null)
- this.components.Dispose();
- base.Dispose(disposing);
- }
- private void InitializeComponent()
- {
- this.components = (IContainer) new Container();
- ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (Form1));
- NSListView.NSListViewColumnHeader viewColumnHeader1 = new NSListView.NSListViewColumnHeader();
- NSListView.NSListViewColumnHeader viewColumnHeader2 = new NSListView.NSListViewColumnHeader();
- NSListView.NSListViewColumnHeader viewColumnHeader3 = new NSListView.NSListViewColumnHeader();
- NSListView.NSListViewColumnHeader viewColumnHeader4 = new NSListView.NSListViewColumnHeader();
- NSListView.NSListViewColumnHeader viewColumnHeader5 = new NSListView.NSListViewColumnHeader();
- NSListView.NSListViewColumnHeader viewColumnHeader6 = new NSListView.NSListViewColumnHeader();
- NSListView.NSListViewColumnHeader viewColumnHeader7 = new NSListView.NSListViewColumnHeader();
- NSListView.NSListViewColumnHeader viewColumnHeader8 = new NSListView.NSListViewColumnHeader();
- TreeNode treeNode = new TreeNode("File Explorer");
- NSListView.NSListViewColumnHeader viewColumnHeader9 = new NSListView.NSListViewColumnHeader();
- NSListView.NSListViewColumnHeader viewColumnHeader10 = new NSListView.NSListViewColumnHeader();
- NSListView.NSListViewColumnHeader viewColumnHeader11 = new NSListView.NSListViewColumnHeader();
- NSListView.NSListViewColumnHeader viewColumnHeader12 = new NSListView.NSListViewColumnHeader();
- NSListView.NSListViewColumnHeader viewColumnHeader13 = new NSListView.NSListViewColumnHeader();
- NSListView.NSListViewColumnHeader viewColumnHeader14 = new NSListView.NSListViewColumnHeader();
- NSListView.NSListViewColumnHeader viewColumnHeader15 = new NSListView.NSListViewColumnHeader();
- NSListView.NSListViewColumnHeader viewColumnHeader16 = new NSListView.NSListViewColumnHeader();
- NSListView.NSListViewColumnHeader viewColumnHeader17 = new NSListView.NSListViewColumnHeader();
- NSListView.NSListViewColumnHeader viewColumnHeader18 = new NSListView.NSListViewColumnHeader();
- NSListView.NSListViewColumnHeader viewColumnHeader19 = new NSListView.NSListViewColumnHeader();
- NSListView.NSListViewColumnHeader viewColumnHeader20 = new NSListView.NSListViewColumnHeader();
- this.Timer1 = new System.Windows.Forms.Timer(this.components);
- this.OpenFileDialog1 = new OpenFileDialog();
- this.timer2 = new System.Windows.Forms.Timer(this.components);
- this.timer3 = new System.Windows.Forms.Timer(this.components);
- this.contextMenuStrip = new ContextMenuStrip(this.components);
- this.toolStripMenuItemCopy = new ToolStripMenuItem();
- this.toolStripMenuItemPaste = new ToolStripMenuItem();
- this.toolStripMenuItemDelete = new ToolStripMenuItem();
- this.toolStripMenuItemProperties = new ToolStripMenuItem();
- this.imageList = new ImageList(this.components);
- this.timer4 = new System.Windows.Forms.Timer(this.components);
- this.timer5 = new System.Windows.Forms.Timer(this.components);
- this.backgroundWorker1 = new BackgroundWorker();
- this.backgroundWorker2 = new BackgroundWorker();
- this.nsTheme1 = new NSTheme();
- this.nsButton13 = new NSButton();
- this.nsButton6 = new NSButton();
- this.nsButton5 = new NSButton();
- this.nsTabControl1 = new NSTabControl();
- this.tabPage1 = new TabPage();
- this.nsButton3 = new NSButton();
- this.nsButton14 = new NSButton();
- this.nsGroupBox2 = new NSGroupBox();
- this.richTextBox3 = new RichTextBox();
- this.richTextBox2 = new RichTextBox();
- this.nsGroupBox1 = new NSGroupBox();
- this.nsButton4 = new NSButton();
- this.nsButton2 = new NSButton();
- this.nsButton1 = new NSButton();
- this.tabPage2 = new TabPage();
- this.nsGroupBox5 = new NSGroupBox();
- this.nsLabel37 = new NSLabel();
- this.nsComboBox7 = new NSComboBox();
- this.nsComboBox2 = new NSComboBox();
- this.nsLabel17 = new NSLabel();
- this.nsButton10 = new NSButton();
- this.nsListView1 = new NSListView();
- this.nsButton8 = new NSButton();
- this.tabPage3 = new TabPage();
- this.nsButton36 = new NSButton();
- this.nsButton12 = new NSButton();
- this.nsButton11 = new NSButton();
- this.nsGroupBox6 = new NSGroupBox();
- this.nsLabel9 = new NSLabel();
- this.nsLabel14 = new NSLabel();
- this.nsLabel12 = new NSLabel();
- this.nsLabel11 = new NSLabel();
- this.nsLabel10 = new NSLabel();
- this.nsLabel8 = new NSLabel();
- this.nsLabel7 = new NSLabel();
- this.nsLabel6 = new NSLabel();
- this.tabPage4 = new TabPage();
- this.nsButton30 = new NSButton();
- this.nsTextBox5 = new NSTextBox();
- this.nsLabel44 = new NSLabel();
- this.nsProgressBar1 = new NSProgressBar();
- this.nsButton9 = new NSButton();
- this.nsGroupBox7 = new NSGroupBox();
- this.nsLabel15 = new NSLabel();
- this.nsListView3 = new NSListView();
- this.nsContextMenu1 = new NSContextMenu();
- this.copyBaseAddressToolStripMenuItem = new ToolStripMenuItem();
- this.copyEntryAddressToolStripMenuItem = new ToolStripMenuItem();
- this.copyCRC32HashToolStripMenuItem = new ToolStripMenuItem();
- this.nsLabel2 = new NSLabel();
- this.tabPage5 = new TabPage();
- this.nsButton27 = new NSButton();
- this.nsLabel33 = new NSLabel();
- this.nsComboBox1 = new NSComboBox();
- this.nsButton17 = new NSButton();
- this.nsTextBox3 = new NSTextBox();
- this.nsLabel16 = new NSLabel();
- this.nsButton16 = new NSButton();
- this.nsListView2 = new NSListView();
- this.nsContextMenu2 = new NSContextMenu();
- this.toolStripMenuItem1 = new ToolStripMenuItem();
- this.toolStripMenuItem2 = new ToolStripMenuItem();
- this.launchDefaultxbeToolStripMenuItem = new ToolStripMenuItem();
- this.nsGroupBox9 = new NSGroupBox();
- this.tabPage6 = new TabPage();
- this.nsGroupBox4 = new NSGroupBox();
- this.label2 = new Label();
- this.nsButton35 = new NSButton();
- this.nsLabel34 = new NSLabel();
- this.nsButton24 = new NSButton();
- this.nsButton23 = new NSButton();
- this.nsButton22 = new NSButton();
- this.nsButton21 = new NSButton();
- this.nsLabel32 = new NSLabel();
- this.nsOnOffBox3 = new NSOnOffBox();
- this.label4 = new Label();
- this.label3 = new Label();
- this.nsLabel30 = new NSLabel();
- this.nsTrackBar1 = new NSTrackBar();
- this.nsLabel31 = new NSLabel();
- this.nsButton20 = new NSButton();
- this.nsButton19 = new NSButton();
- this.nsLabel28 = new NSLabel();
- this.nsLabel27 = new NSLabel();
- this.nsLabel26 = new NSLabel();
- this.nsLabel25 = new NSLabel();
- this.nsLabel24 = new NSLabel();
- this.nsLabel23 = new NSLabel();
- this.nsLabel22 = new NSLabel();
- this.nsComboBox6 = new NSComboBox();
- this.nsComboBox5 = new NSComboBox();
- this.nsComboBox4 = new NSComboBox();
- this.nsComboBox3 = new NSComboBox();
- this.nsButton18 = new NSButton();
- this.nsLabel21 = new NSLabel();
- this.nsLabel20 = new NSLabel();
- this.nsLabel19 = new NSLabel();
- this.nsLabel18 = new NSLabel();
- this.nsButton7 = new NSButton();
- this.nsTextBox1 = new NSTextBox();
- this.nsLabel3 = new NSLabel();
- this.nsGroupBox3 = new NSGroupBox();
- this.nsOnOffBox4 = new NSOnOffBox();
- this.nsLabel38 = new NSLabel();
- this.label6 = new Label();
- this.label5 = new Label();
- this.nsButton25 = new NSButton();
- this.nsOnOffBox2 = new NSOnOffBox();
- this.nsLabel29 = new NSLabel();
- this.nsTextBox2 = new NSTextBox();
- this.nsLabel4 = new NSLabel();
- this.nsLabel1 = new NSLabel();
- this.nsOnOffBox1 = new NSOnOffBox();
- this.nsLabel5 = new NSLabel();
- this.nsGroupBox8 = new NSGroupBox();
- this.nsButton15 = new NSButton();
- this.nsLabel13 = new NSLabel();
- this.treeView2 = new TreeView();
- this.tabPage7 = new TabPage();
- this.nsGroupBox10 = new NSGroupBox();
- this.nsButton26 = new NSButton();
- this.webBrowser1 = new WebBrowser();
- this.nsListView4 = new NSListView();
- this.nsContextMenu3 = new NSContextMenu();
- this.watchVideoToolStripMenuItem = new ToolStripMenuItem();
- this.nsLabel36 = new NSLabel();
- this.nsLabel35 = new NSLabel();
- this.tabPage8 = new TabPage();
- this.nsGroupBox11 = new NSGroupBox();
- this.label7 = new Label();
- this.nsLabel43 = new NSLabel();
- this.nsTextBox4 = new NSTextBox();
- this.nsButton29 = new NSButton();
- this.nsLabel42 = new NSLabel();
- this.nsLabel41 = new NSLabel();
- this.nsLabel40 = new NSLabel();
- this.nsLabel39 = new NSLabel();
- this.nsTextBox8 = new NSTextBox();
- this.nsTextBox9 = new NSTextBox();
- this.nsButton33 = new NSButton();
- this.nsTextBox6 = new NSTextBox();
- this.nsTextBox7 = new NSTextBox();
- this.nsButton31 = new NSButton();
- this.nsButton32 = new NSButton();
- this.nsListView5 = new NSListView();
- this.nsContextMenu5 = new NSContextMenu();
- this.kickToolStripMenuItem = new ToolStripMenuItem();
- this.nsGroupBox12 = new NSGroupBox();
- this.pictureBox2 = new PictureBox();
- this.nsButton28 = new NSButton();
- this.pictureBox1 = new PictureBox();
- this.tabPage9 = new TabPage();
- this.nsGroupBox13 = new NSGroupBox();
- this.label8 = new Label();
- this.nsListView6 = new NSListView();
- this.nsContextMenu4 = new NSContextMenu();
- this.joinPartyToolStripMenuItem = new ToolStripMenuItem();
- this.pictureBox3 = new PictureBox();
- this.nsButton34 = new NSButton();
- this.pictureBox4 = new PictureBox();
- this.Label1 = new Label();
- this.Button6 = new System.Windows.Forms.Button();
- this.Button5 = new System.Windows.Forms.Button();
- this.Button4 = new System.Windows.Forms.Button();
- this.RichTextBox1 = new RichTextBox();
- this.Button3 = new System.Windows.Forms.Button();
- this.TextBox3 = new TextBox();
- this.Button2 = new System.Windows.Forms.Button();
- this.TextBox1 = new TextBox();
- this.Button1 = new System.Windows.Forms.Button();
- this.contextMenuStrip.SuspendLayout();
- this.nsTheme1.SuspendLayout();
- this.nsTabControl1.SuspendLayout();
- this.tabPage1.SuspendLayout();
- this.nsGroupBox2.SuspendLayout();
- this.tabPage2.SuspendLayout();
- this.nsGroupBox5.SuspendLayout();
- this.tabPage3.SuspendLayout();
- this.nsGroupBox6.SuspendLayout();
- this.tabPage4.SuspendLayout();
- this.nsGroupBox7.SuspendLayout();
- this.nsContextMenu1.SuspendLayout();
- this.tabPage5.SuspendLayout();
- this.nsContextMenu2.SuspendLayout();
- this.tabPage6.SuspendLayout();
- this.nsGroupBox4.SuspendLayout();
- this.nsGroupBox3.SuspendLayout();
- this.nsGroupBox8.SuspendLayout();
- this.tabPage7.SuspendLayout();
- this.nsGroupBox10.SuspendLayout();
- this.nsContextMenu3.SuspendLayout();
- this.tabPage8.SuspendLayout();
- this.nsGroupBox11.SuspendLayout();
- this.nsContextMenu5.SuspendLayout();
- this.nsGroupBox12.SuspendLayout();
- ((ISupportInitialize) this.pictureBox2).BeginInit();
- ((ISupportInitialize) this.pictureBox1).BeginInit();
- this.tabPage9.SuspendLayout();
- this.nsGroupBox13.SuspendLayout();
- this.nsContextMenu4.SuspendLayout();
- ((ISupportInitialize) this.pictureBox3).BeginInit();
- ((ISupportInitialize) this.pictureBox4).BeginInit();
- this.SuspendLayout();
- this.Timer1.Tick += new EventHandler(this.Timer1_Tick_1);
- this.OpenFileDialog1.FileName = "OpenFileDialog1";
- this.timer2.Interval = 1500;
- this.timer2.Tick += new EventHandler(this.timer2_Tick);
- this.timer3.Tick += new EventHandler(this.timer3_Tick);
- this.contextMenuStrip.Items.AddRange(new ToolStripItem[4]
- {
- (ToolStripItem) this.toolStripMenuItemCopy,
- (ToolStripItem) this.toolStripMenuItemPaste,
- (ToolStripItem) this.toolStripMenuItemDelete,
- (ToolStripItem) this.toolStripMenuItemProperties
- });
- this.contextMenuStrip.Name = "contextMenuStrip";
- this.contextMenuStrip.Size = new Size(128, 92);
- this.toolStripMenuItemCopy.Name = "toolStripMenuItemCopy";
- this.toolStripMenuItemCopy.Size = new Size((int) sbyte.MaxValue, 22);
- this.toolStripMenuItemCopy.Text = "Copy";
- this.toolStripMenuItemPaste.Name = "toolStripMenuItemPaste";
- this.toolStripMenuItemPaste.Size = new Size((int) sbyte.MaxValue, 22);
- this.toolStripMenuItemPaste.Text = "Paste";
- this.toolStripMenuItemDelete.Name = "toolStripMenuItemDelete";
- this.toolStripMenuItemDelete.Size = new Size((int) sbyte.MaxValue, 22);
- this.toolStripMenuItemDelete.Text = "Delete";
- this.toolStripMenuItemProperties.Name = "toolStripMenuItemProperties";
- this.toolStripMenuItemProperties.Size = new Size((int) sbyte.MaxValue, 22);
- this.toolStripMenuItemProperties.Text = "Properties";
- this.imageList.ImageStream = (ImageListStreamer) componentResourceManager.GetObject("imageList.ImageStream");
- this.imageList.TransparentColor = Color.Transparent;
- this.imageList.Images.SetKeyName(0, "new-folder.png");
- this.imageList.Images.SetKeyName(1, "new-file.png");
- this.imageList.Images.SetKeyName(2, "xml-file.png");
- this.imageList.Images.SetKeyName(3, "txt-file.png");
- this.timer4.Interval = 600000;
- this.timer4.Tick += new EventHandler(this.timer4_Tick);
- this.timer5.Interval = 3000;
- this.timer5.Tick += new EventHandler(this.timer5_Tick);
- this.backgroundWorker1.WorkerSupportsCancellation = true;
- this.backgroundWorker1.DoWork += new DoWorkEventHandler(this.backgroundWorker1_DoWork);
- this.backgroundWorker1.RunWorkerCompleted += new RunWorkerCompletedEventHandler(this.backgroundWorker1_RunWorkerCompleted);
- this.backgroundWorker2.DoWork += new DoWorkEventHandler(this.backgroundWorker2_DoWork);
- this.backgroundWorker2.RunWorkerCompleted += new RunWorkerCompletedEventHandler(this.backgroundWorker2_RunWorkerCompleted);
- this.nsTheme1.AccentOffset = 0;
- this.nsTheme1.BackColor = Color.FromArgb(50, 50, 50);
- this.nsTheme1.BorderStyle = FormBorderStyle.None;
- this.nsTheme1.Colors = new Bloom[0];
- this.nsTheme1.Controls.Add((Control) this.nsButton13);
- this.nsTheme1.Controls.Add((Control) this.nsButton6);
- this.nsTheme1.Controls.Add((Control) this.nsButton5);
- this.nsTheme1.Controls.Add((Control) this.nsTabControl1);
- this.nsTheme1.Controls.Add((Control) this.Label1);
- this.nsTheme1.Controls.Add((Control) this.Button6);
- this.nsTheme1.Controls.Add((Control) this.Button5);
- this.nsTheme1.Controls.Add((Control) this.Button4);
- this.nsTheme1.Controls.Add((Control) this.RichTextBox1);
- this.nsTheme1.Controls.Add((Control) this.Button3);
- this.nsTheme1.Controls.Add((Control) this.TextBox3);
- this.nsTheme1.Controls.Add((Control) this.Button2);
- this.nsTheme1.Controls.Add((Control) this.TextBox1);
- this.nsTheme1.Controls.Add((Control) this.Button1);
- this.nsTheme1.Customization = "";
- this.nsTheme1.Dock = DockStyle.Fill;
- this.nsTheme1.Font = new Font("Verdana", 8f);
- this.nsTheme1.Image = (Image) null;
- this.nsTheme1.Location = new Point(0, 0);
- this.nsTheme1.Movable = true;
- this.nsTheme1.Name = "nsTheme1";
- this.nsTheme1.NoRounding = false;
- this.nsTheme1.Sizable = true;
- this.nsTheme1.Size = new Size(1074, 415);
- this.nsTheme1.SmartBounds = true;
- this.nsTheme1.StartPosition = FormStartPosition.Manual;
- this.nsTheme1.TabIndex = 0;
- this.nsTheme1.Text = "FRexy Alfa JTAG / RGH Sidekick";
- this.nsTheme1.TransparencyKey = Color.Empty;
- this.nsTheme1.Transparent = false;
- this.nsTheme1.Click += new EventHandler(this.nsTheme1_Click);
- this.nsButton13.Location = new Point(992, 3);
- this.nsButton13.Name = "nsButton13";
- this.nsButton13.Size = new Size(25, 22);
- this.nsButton13.TabIndex = 43;
- this.nsButton13.Text = "?";
- this.nsButton13.Click += new EventHandler(this.nsButton13_Click_1);
- this.nsButton6.Location = new Point(1019, 3);
- this.nsButton6.Name = "nsButton6";
- this.nsButton6.Size = new Size(25, 22);
- this.nsButton6.TabIndex = 42;
- this.nsButton6.Text = "-";
- this.nsButton6.Click += new EventHandler(this.nsButton6_Click);
- this.nsButton5.Location = new Point(1046, 3);
- this.nsButton5.Name = "nsButton5";
- this.nsButton5.Size = new Size(25, 22);
- this.nsButton5.TabIndex = 8;
- this.nsButton5.Text = "x";
- this.nsButton5.Click += new EventHandler(this.nsButton5_Click);
- this.nsTabControl1.Alignment = TabAlignment.Left;
- this.nsTabControl1.Controls.Add((Control) this.tabPage1);
- this.nsTabControl1.Controls.Add((Control) this.tabPage2);
- this.nsTabControl1.Controls.Add((Control) this.tabPage3);
- this.nsTabControl1.Controls.Add((Control) this.tabPage4);
- this.nsTabControl1.Controls.Add((Control) this.tabPage5);
- this.nsTabControl1.Controls.Add((Control) this.tabPage6);
- this.nsTabControl1.Controls.Add((Control) this.tabPage7);
- this.nsTabControl1.Controls.Add((Control) this.tabPage8);
- this.nsTabControl1.Controls.Add((Control) this.tabPage9);
- this.nsTabControl1.DrawMode = TabDrawMode.OwnerDrawFixed;
- this.nsTabControl1.ItemSize = new Size(28, 115);
- this.nsTabControl1.Location = new Point(12, 37);
- this.nsTabControl1.Multiline = true;
- this.nsTabControl1.Name = "nsTabControl1";
- this.nsTabControl1.SelectedIndex = 0;
- this.nsTabControl1.Size = new Size(1050, 372);
- this.nsTabControl1.SizeMode = TabSizeMode.Fixed;
- this.nsTabControl1.TabIndex = 41;
- this.tabPage1.BackColor = Color.FromArgb(50, 50, 50);
- this.tabPage1.Controls.Add((Control) this.nsButton3);
- this.tabPage1.Controls.Add((Control) this.nsButton14);
- this.tabPage1.Controls.Add((Control) this.nsGroupBox2);
- this.tabPage1.Controls.Add((Control) this.richTextBox2);
- this.tabPage1.Controls.Add((Control) this.nsGroupBox1);
- this.tabPage1.Controls.Add((Control) this.nsButton4);
- this.tabPage1.Controls.Add((Control) this.nsButton2);
- this.tabPage1.Controls.Add((Control) this.nsButton1);
- this.tabPage1.Location = new Point(119, 4);
- this.tabPage1.Name = "tabPage1";
- this.tabPage1.Padding = new Padding(3);
- this.tabPage1.Size = new Size(927, 364);
- this.tabPage1.TabIndex = 0;
- this.tabPage1.Text = "KV Checker";
- this.tabPage1.Click += new EventHandler(this.tabPage1_Click);
- this.nsButton3.Location = new Point(661, 331);
- this.nsButton3.Name = "nsButton3";
- this.nsButton3.Size = new Size(206, 23);
- this.nsButton3.TabIndex = 9;
- this.nsButton3.Text = "Copy All Unbanned KV's To Folder";
- this.nsButton3.Click += new EventHandler(this.nsButton3_Click_2);
- this.nsButton14.Location = new Point(15, 331);
- this.nsButton14.Name = "nsButton14";
- this.nsButton14.Size = new Size(176, 23);
- this.nsButton14.TabIndex = 8;
- this.nsButton14.Text = "Move KV's To Checker Folder";
- this.nsButton14.Click += new EventHandler(this.nsButton14_Click);
- this.nsGroupBox2.Controls.Add((Control) this.richTextBox3);
- this.nsGroupBox2.DrawSeperator = false;
- this.nsGroupBox2.Location = new Point(6, 190);
- this.nsGroupBox2.Name = "nsGroupBox2";
- this.nsGroupBox2.Size = new Size(915, 135);
- this.nsGroupBox2.SubTitle = "Resuts for KV's will print here after XenonKerbAuthenticator has completed it's check";
- this.nsGroupBox2.TabIndex = 7;
- this.nsGroupBox2.Text = "nsGroupBox2";
- this.nsGroupBox2.Title = "Checked KV's";
- this.richTextBox3.BackColor = Color.FromArgb(50, 50, 50);
- this.richTextBox3.ForeColor = SystemColors.Info;
- this.richTextBox3.Location = new Point(9, 37);
- this.richTextBox3.Name = "richTextBox3";
- this.richTextBox3.Size = new Size(897, 95);
- this.richTextBox3.TabIndex = 4;
- this.richTextBox3.Text = "";
- this.richTextBox3.TextChanged += new EventHandler(this.richTextBox3_TextChanged);
- this.richTextBox2.BackColor = Color.FromArgb(50, 50, 50);
- this.richTextBox2.ForeColor = SystemColors.Info;
- this.richTextBox2.Location = new Point(16, 46);
- this.richTextBox2.Name = "richTextBox2";
- this.richTextBox2.Size = new Size(897, 124);
- this.richTextBox2.TabIndex = 3;
- this.richTextBox2.Text = "";
- this.richTextBox2.TextChanged += new EventHandler(this.richTextBox2_TextChanged);
- this.nsGroupBox1.DrawSeperator = false;
- this.nsGroupBox1.Location = new Point(6, 6);
- this.nsGroupBox1.Name = "nsGroupBox1";
- this.nsGroupBox1.Size = new Size(915, 179);
- this.nsGroupBox1.SubTitle = "General application activity will print here";
- this.nsGroupBox1.TabIndex = 6;
- this.nsGroupBox1.Text = "nsGroupBox1";
- this.nsGroupBox1.Title = "General Log:";
- this.nsButton4.Location = new Point(510, 331);
- this.nsButton4.Name = "nsButton4";
- this.nsButton4.Size = new Size(145, 23);
- this.nsButton4.TabIndex = 5;
- this.nsButton4.Text = "Delete All Banned KV's";
- this.nsButton4.Click += new EventHandler(this.nsButton4_Click);
- this.nsButton2.Location = new Point(337, 331);
- this.nsButton2.Name = "nsButton2";
- this.nsButton2.Size = new Size(164, 23);
- this.nsButton2.TabIndex = 2;
- this.nsButton2.Text = "Check Individual Keyvault";
- this.nsButton2.Click += new EventHandler(this.nsButton2_Click);
- this.nsButton1.Location = new Point(197, 331);
- this.nsButton1.Name = "nsButton1";
- this.nsButton1.Size = new Size(133, 23);
- this.nsButton1.TabIndex = 1;
- this.nsButton1.Text = "Run Bulk KV Checker";
- this.nsButton1.Click += new EventHandler(this.nsButton1_Click);
- this.tabPage2.BackColor = Color.FromArgb(50, 50, 50);
- this.tabPage2.Controls.Add((Control) this.nsGroupBox5);
- this.tabPage2.Location = new Point(119, 4);
- this.tabPage2.Name = "tabPage2";
- this.tabPage2.Padding = new Padding(3);
- this.tabPage2.Size = new Size(927, 364);
- this.tabPage2.TabIndex = 1;
- this.tabPage2.Text = "INI Editor";
- this.nsGroupBox5.Controls.Add((Control) this.nsLabel37);
- this.nsGroupBox5.Controls.Add((Control) this.nsComboBox7);
- this.nsGroupBox5.Controls.Add((Control) this.nsComboBox2);
- this.nsGroupBox5.Controls.Add((Control) this.nsLabel17);
- this.nsGroupBox5.Controls.Add((Control) this.nsButton10);
- this.nsGroupBox5.Controls.Add((Control) this.nsListView1);
- this.nsGroupBox5.Controls.Add((Control) this.nsButton8);
- this.nsGroupBox5.DrawSeperator = false;
- this.nsGroupBox5.Location = new Point(6, 6);
- this.nsGroupBox5.Name = "nsGroupBox5";
- this.nsGroupBox5.Size = new Size(915, 352);
- this.nsGroupBox5.SubTitle = "This will allow you to make changes to your launch.ini / JRPC.ini while it's on your JTAG / RGH (Double click setting to open editor)";
- this.nsGroupBox5.TabIndex = 0;
- this.nsGroupBox5.Text = "nsGroupBox5";
- this.nsGroupBox5.Title = "FRexy Alfa Launch.ini & JRPC.ini Editor";
- this.nsLabel37.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel37.Location = new Point(330, 322);
- this.nsLabel37.Name = "nsLabel37";
- this.nsLabel37.Size = new Size(94, 23);
- this.nsLabel37.TabIndex = 17;
- this.nsLabel37.Text = "nsLabel37";
- this.nsLabel37.Value1 = ".ini";
- this.nsLabel37.Value2 = "to edit:";
- this.nsComboBox7.BackColor = Color.FromArgb(50, 50, 50);
- this.nsComboBox7.DrawMode = DrawMode.OwnerDrawFixed;
- this.nsComboBox7.DropDownStyle = ComboBoxStyle.DropDownList;
- this.nsComboBox7.ForeColor = Color.White;
- this.nsComboBox7.FormattingEnabled = true;
- this.nsComboBox7.Items.AddRange(new object[3]
- {
- (object) "Launch.ini\t",
- (object) "JRPC.ini",
- (object) "rgloader.ini"
- });
- this.nsComboBox7.Location = new Point(422, 323);
- this.nsComboBox7.Name = "nsComboBox7";
- this.nsComboBox7.Size = new Size(188, 21);
- this.nsComboBox7.TabIndex = 16;
- this.nsComboBox2.BackColor = Color.FromArgb(50, 50, 50);
- this.nsComboBox2.DrawMode = DrawMode.OwnerDrawFixed;
- this.nsComboBox2.DropDownStyle = ComboBoxStyle.DropDownList;
- this.nsComboBox2.ForeColor = Color.White;
- this.nsComboBox2.FormattingEnabled = true;
- this.nsComboBox2.Items.AddRange(new object[6]
- {
- (object) "Hdd:\\",
- (object) "USB0:\\",
- (object) "USB1:\\",
- (object) "USB2:\\",
- (object) "USB3:\\",
- (object) "USB4:\\"
- });
- this.nsComboBox2.Location = new Point(146, 323);
- this.nsComboBox2.Name = "nsComboBox2";
- this.nsComboBox2.Size = new Size(169, 21);
- this.nsComboBox2.TabIndex = 15;
- this.nsComboBox2.SelectedIndexChanged += new EventHandler(this.nsComboBox2_SelectedIndexChanged);
- this.nsLabel17.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel17.Location = new Point(25, 321);
- this.nsLabel17.Name = "nsLabel17";
- this.nsLabel17.Size = new Size(115, 23);
- this.nsLabel17.TabIndex = 5;
- this.nsLabel17.Text = "nsLabel17";
- this.nsLabel17.Value1 = "Location Of";
- this.nsLabel17.Value2 = ".ini:";
- this.nsButton10.Location = new Point(767, 322);
- this.nsButton10.Name = "nsButton10";
- this.nsButton10.Size = new Size(128, 23);
- this.nsButton10.TabIndex = 4;
- this.nsButton10.Text = "Send .ini To Console";
- this.nsButton10.Click += new EventHandler(this.nsButton10_Click);
- this.nsListView1.Columns = new NSListView.NSListViewColumnHeader[0];
- this.nsListView1.Items = new NSListView.NSListViewItem[0];
- this.nsListView1.Location = new Point(17, 44);
- this.nsListView1.MultiSelect = false;
- this.nsListView1.Name = "nsListView1";
- this.nsListView1.Size = new Size(881, 272);
- this.nsListView1.TabIndex = 2;
- this.nsListView1.Text = "nsListView1";
- this.nsListView1.Click += new EventHandler(this.nsListView1_Click);
- this.nsListView1.DoubleClick += new EventHandler(this.nsListView1_DoubleClick);
- this.nsButton8.Location = new Point(616, 322);
- this.nsButton8.Name = "nsButton8";
- this.nsButton8.Size = new Size(145, 23);
- this.nsButton8.TabIndex = 1;
- this.nsButton8.Text = "Read .ini From Console";
- this.nsButton8.Click += new EventHandler(this.nsButton8_Click);
- this.tabPage3.BackColor = Color.FromArgb(50, 50, 50);
- this.tabPage3.Controls.Add((Control) this.nsButton36);
- this.tabPage3.Controls.Add((Control) this.nsButton12);
- this.tabPage3.Controls.Add((Control) this.nsButton11);
- this.tabPage3.Controls.Add((Control) this.nsGroupBox6);
- this.tabPage3.Location = new Point(119, 4);
- this.tabPage3.Name = "tabPage3";
- this.tabPage3.Padding = new Padding(3);
- this.tabPage3.Size = new Size(927, 364);
- this.tabPage3.TabIndex = 2;
- this.tabPage3.Text = "KV Info";
- this.tabPage3.Click += new EventHandler(this.tabPage3_Click);
- this.nsButton36.Location = new Point(618, 328);
- this.nsButton36.Name = "nsButton36";
- this.nsButton36.Size = new Size(75, 23);
- this.nsButton36.TabIndex = 2;
- this.nsButton36.Text = "nsButton36";
- this.nsButton36.Visible = false;
- this.nsButton36.Click += new EventHandler(this.nsButton36_Click);
- this.nsButton12.Location = new Point(154, 328);
- this.nsButton12.Name = "nsButton12";
- this.nsButton12.Size = new Size(418, 23);
- this.nsButton12.TabIndex = 1;
- this.nsButton12.Text = "Create CPUKey.bin and send KV and CPUKey.bin to console if you wish.";
- this.nsButton12.Click += new EventHandler(this.nsButton12_Click);
- this.nsButton11.Location = new Point(50, 328);
- this.nsButton11.Name = "nsButton11";
- this.nsButton11.Size = new Size(96, 23);
- this.nsButton11.TabIndex = 0;
- this.nsButton11.Text = "Load Keyvault";
- this.nsButton11.Click += new EventHandler(this.nsButton11_Click);
- this.nsGroupBox6.Controls.Add((Control) this.nsLabel9);
- this.nsGroupBox6.Controls.Add((Control) this.nsLabel14);
- this.nsGroupBox6.Controls.Add((Control) this.nsLabel12);
- this.nsGroupBox6.Controls.Add((Control) this.nsLabel11);
- this.nsGroupBox6.Controls.Add((Control) this.nsLabel10);
- this.nsGroupBox6.Controls.Add((Control) this.nsLabel8);
- this.nsGroupBox6.Controls.Add((Control) this.nsLabel7);
- this.nsGroupBox6.Controls.Add((Control) this.nsLabel6);
- this.nsGroupBox6.DrawSeperator = false;
- this.nsGroupBox6.Location = new Point(43, 6);
- this.nsGroupBox6.Name = "nsGroupBox6";
- this.nsGroupBox6.Size = new Size(839, 309);
- this.nsGroupBox6.SubTitle = "All the information you could want about your KV is in here.";
- this.nsGroupBox6.TabIndex = 0;
- this.nsGroupBox6.Text = "nsGroupBox6";
- this.nsGroupBox6.Title = "Keyvault Information";
- this.nsGroupBox6.Click += new EventHandler(this.nsGroupBox6_Click);
- this.nsLabel9.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel9.Location = new Point(170, 245);
- this.nsLabel9.Name = "nsLabel9";
- this.nsLabel9.Size = new Size(534, 23);
- this.nsLabel9.TabIndex = 10;
- this.nsLabel9.Text = "Console ID:";
- this.nsLabel9.Value1 = "Logon Status:";
- this.nsLabel9.Value2 = " None";
- this.nsLabel14.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel14.Location = new Point(157, 132);
- this.nsLabel14.Name = "nsLabel14";
- this.nsLabel14.Size = new Size(537, 23);
- this.nsLabel14.TabIndex = 9;
- this.nsLabel14.Text = "Console ID:";
- this.nsLabel14.Value1 = "DVD Drive Info:";
- this.nsLabel14.Value2 = " None";
- this.nsLabel12.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel12.Location = new Point(204, 217);
- this.nsLabel12.Name = "nsLabel12";
- this.nsLabel12.Size = new Size(534, 23);
- this.nsLabel12.TabIndex = 7;
- this.nsLabel12.Text = "Console ID:";
- this.nsLabel12.Value1 = "KV Type:";
- this.nsLabel12.Value2 = " None";
- this.nsLabel11.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel11.Location = new Point(194, 189);
- this.nsLabel11.Name = "nsLabel11";
- this.nsLabel11.Size = new Size(353, 23);
- this.nsLabel11.TabIndex = 6;
- this.nsLabel11.Text = "Console ID:";
- this.nsLabel11.Value1 = "MFR Date:";
- this.nsLabel11.Value2 = " None";
- this.nsLabel10.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel10.Location = new Point(214, 161);
- this.nsLabel10.Name = "nsLabel10";
- this.nsLabel10.Size = new Size(437, 23);
- this.nsLabel10.TabIndex = 5;
- this.nsLabel10.Text = "Console ID:";
- this.nsLabel10.Value1 = "Region:";
- this.nsLabel10.Value2 = " None";
- this.nsLabel8.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel8.Location = new Point(200, 104);
- this.nsLabel8.Name = "nsLabel8";
- this.nsLabel8.Size = new Size(515, 23);
- this.nsLabel8.TabIndex = 3;
- this.nsLabel8.Text = "Console ID:";
- this.nsLabel8.Value1 = "DVD Key:";
- this.nsLabel8.Value2 = " None";
- this.nsLabel7.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel7.Location = new Point(200, 76);
- this.nsLabel7.Name = "nsLabel7";
- this.nsLabel7.Size = new Size(353, 23);
- this.nsLabel7.TabIndex = 2;
- this.nsLabel7.Value1 = "Serial No:";
- this.nsLabel7.Value2 = " None";
- this.nsLabel6.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel6.Location = new Point(189, 48);
- this.nsLabel6.Name = "nsLabel6";
- this.nsLabel6.Size = new Size(353, 23);
- this.nsLabel6.TabIndex = 1;
- this.nsLabel6.Text = "Console ID:";
- this.nsLabel6.Value1 = "Console ID:";
- this.nsLabel6.Value2 = " None";
- this.tabPage4.BackColor = Color.FromArgb(50, 50, 50);
- this.tabPage4.Controls.Add((Control) this.nsButton30);
- this.tabPage4.Controls.Add((Control) this.nsTextBox5);
- this.tabPage4.Controls.Add((Control) this.nsLabel44);
- this.tabPage4.Controls.Add((Control) this.nsProgressBar1);
- this.tabPage4.Controls.Add((Control) this.nsButton9);
- this.tabPage4.Controls.Add((Control) this.nsGroupBox7);
- this.tabPage4.Location = new Point(119, 4);
- this.tabPage4.Name = "tabPage4";
- this.tabPage4.Padding = new Padding(3);
- this.tabPage4.Size = new Size(927, 364);
- this.tabPage4.TabIndex = 3;
- this.tabPage4.Text = "Module Info";
- this.tabPage4.Click += new EventHandler(this.tabPage4_Click);
- this.nsButton30.Location = new Point(571, 335);
- this.nsButton30.Name = "nsButton30";
- this.nsButton30.Size = new Size(157, 23);
- this.nsButton30.TabIndex = 8;
- this.nsButton30.Text = "Load plugin into memory";
- this.nsButton30.Click += new EventHandler(this.nsButton30_Click);
- this.nsTextBox5.Cursor = Cursors.IBeam;
- this.nsTextBox5.Location = new Point(345, 335);
- this.nsTextBox5.MaxLength = (int) short.MaxValue;
- this.nsTextBox5.Multiline = false;
- this.nsTextBox5.Name = "nsTextBox5";
- this.nsTextBox5.ReadOnly = false;
- this.nsTextBox5.Size = new Size(220, 23);
- this.nsTextBox5.TabIndex = 7;
- this.nsTextBox5.Text = "Hdd:\\Example.xex";
- this.nsTextBox5.TextAlign = HorizontalAlignment.Left;
- this.nsTextBox5.UseSystemPasswordChar = false;
- this.nsLabel44.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel44.Location = new Point(217, 335);
- this.nsLabel44.Name = "nsLabel44";
- this.nsLabel44.Size = new Size(134, 23);
- this.nsLabel44.TabIndex = 6;
- this.nsLabel44.Text = "nsLabel44";
- this.nsLabel44.Value1 = "Plugin";
- this.nsLabel44.Value2 = " Directory:";
- this.nsProgressBar1.Location = new Point(773, 335);
- this.nsProgressBar1.Maximum = 100;
- this.nsProgressBar1.Minimum = 0;
- this.nsProgressBar1.Name = "nsProgressBar1";
- this.nsProgressBar1.Size = new Size(148, 23);
- this.nsProgressBar1.TabIndex = 5;
- this.nsProgressBar1.Text = "nsProgressBar1";
- this.nsProgressBar1.Value = 0;
- this.nsButton9.Location = new Point(6, 335);
- this.nsButton9.Name = "nsButton9";
- this.nsButton9.Size = new Size(187, 23);
- this.nsButton9.TabIndex = 2;
- this.nsButton9.Text = "Get Running Modules (Plugins)";
- this.nsButton9.Click += new EventHandler(this.nsButton9_Click_1);
- this.nsGroupBox7.Controls.Add((Control) this.nsLabel15);
- this.nsGroupBox7.Controls.Add((Control) this.nsListView3);
- this.nsGroupBox7.Controls.Add((Control) this.nsLabel2);
- this.nsGroupBox7.DrawSeperator = false;
- this.nsGroupBox7.Location = new Point(6, 6);
- this.nsGroupBox7.Name = "nsGroupBox7";
- this.nsGroupBox7.Size = new Size(915, 323);
- this.nsGroupBox7.SubTitle = "All running module information will be here";
- this.nsGroupBox7.TabIndex = 0;
- this.nsGroupBox7.Text = "nsGroupBox7";
- this.nsGroupBox7.Title = "Running Module Information";
- this.nsLabel15.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel15.Location = new Point(740, 4);
- this.nsLabel15.Name = "nsLabel15";
- this.nsLabel15.Size = new Size(904, 23);
- this.nsLabel15.TabIndex = 5;
- this.nsLabel15.Text = "Running Process";
- this.nsLabel15.Value1 = "Running Modules:";
- this.nsLabel15.Value2 = " None";
- viewColumnHeader1.Text = "Module";
- viewColumnHeader1.Width = 220;
- viewColumnHeader2.Text = "Base Address";
- viewColumnHeader2.Width = 140;
- viewColumnHeader3.Text = "Entry Address";
- viewColumnHeader3.Width = 140;
- viewColumnHeader4.Text = "Size In Memory";
- viewColumnHeader4.Width = 140;
- viewColumnHeader5.Text = "CRC 32 Hash";
- viewColumnHeader5.Width = 140;
- viewColumnHeader6.Text = "Checksum";
- viewColumnHeader6.Width = 100;
- this.nsListView3.Columns = new NSListView.NSListViewColumnHeader[6]
- {
- viewColumnHeader1,
- viewColumnHeader2,
- viewColumnHeader3,
- viewColumnHeader4,
- viewColumnHeader5,
- viewColumnHeader6
- };
- this.nsListView3.ContextMenuStrip = (ContextMenuStrip) this.nsContextMenu1;
- this.nsListView3.Items = new NSListView.NSListViewItem[0];
- this.nsListView3.Location = new Point(5, 33);
- this.nsListView3.MultiSelect = false;
- this.nsListView3.Name = "nsListView3";
- this.nsListView3.Size = new Size(904, 258);
- this.nsListView3.TabIndex = 4;
- this.nsListView3.Text = "nsListView3";
- this.nsListView3.MouseUp += new MouseEventHandler(this.nsListView3_MouseUp);
- this.nsContextMenu1.ForeColor = Color.White;
- this.nsContextMenu1.Items.AddRange(new ToolStripItem[3]
- {
- (ToolStripItem) this.copyBaseAddressToolStripMenuItem,
- (ToolStripItem) this.copyEntryAddressToolStripMenuItem,
- (ToolStripItem) this.copyCRC32HashToolStripMenuItem
- });
- this.nsContextMenu1.Name = "nsContextMenu1";
- this.nsContextMenu1.Size = new Size(176, 70);
- this.copyBaseAddressToolStripMenuItem.Name = "copyBaseAddressToolStripMenuItem";
- this.copyBaseAddressToolStripMenuItem.Size = new Size(175, 22);
- this.copyBaseAddressToolStripMenuItem.Text = "Copy base address";
- this.copyBaseAddressToolStripMenuItem.Click += new EventHandler(this.copyBaseAddressToolStripMenuItem_Click);
- this.copyEntryAddressToolStripMenuItem.Name = "copyEntryAddressToolStripMenuItem";
- this.copyEntryAddressToolStripMenuItem.Size = new Size(175, 22);
- this.copyEntryAddressToolStripMenuItem.Text = "Copy entry address";
- this.copyEntryAddressToolStripMenuItem.Click += new EventHandler(this.copyEntryAddressToolStripMenuItem_Click);
- this.copyCRC32HashToolStripMenuItem.Name = "copyCRC32HashToolStripMenuItem";
- this.copyCRC32HashToolStripMenuItem.Size = new Size(175, 22);
- this.copyCRC32HashToolStripMenuItem.Text = "Copy CRC 32 Hash";
- this.copyCRC32HashToolStripMenuItem.Click += new EventHandler(this.copyCRC32HashToolStripMenuItem_Click);
- this.nsLabel2.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel2.Location = new Point(3, 297);
- this.nsLabel2.Name = "nsLabel2";
- this.nsLabel2.Size = new Size(904, 23);
- this.nsLabel2.TabIndex = 3;
- this.nsLabel2.Text = "Running Process";
- this.nsLabel2.Value1 = "Running Process: ";
- this.nsLabel2.Value2 = " None";
- this.tabPage5.BackColor = Color.FromArgb(50, 50, 50);
- this.tabPage5.Controls.Add((Control) this.nsButton27);
- this.tabPage5.Controls.Add((Control) this.nsLabel33);
- this.tabPage5.Controls.Add((Control) this.nsComboBox1);
- this.tabPage5.Controls.Add((Control) this.nsButton17);
- this.tabPage5.Controls.Add((Control) this.nsTextBox3);
- this.tabPage5.Controls.Add((Control) this.nsLabel16);
- this.tabPage5.Controls.Add((Control) this.nsButton16);
- this.tabPage5.Controls.Add((Control) this.nsListView2);
- this.tabPage5.Controls.Add((Control) this.nsGroupBox9);
- this.tabPage5.Location = new Point(119, 4);
- this.tabPage5.Name = "tabPage5";
- this.tabPage5.Padding = new Padding(3);
- this.tabPage5.Size = new Size(927, 364);
- this.tabPage5.TabIndex = 4;
- this.tabPage5.Text = "Game Launcher";
- this.nsButton27.Location = new Point(860, 190);
- this.nsButton27.Name = "nsButton27";
- this.nsButton27.Size = new Size(53, 23);
- this.nsButton27.TabIndex = 16;
- this.nsButton27.Text = "nsButton27";
- this.nsButton27.Visible = false;
- this.nsButton27.Click += new EventHandler(this.nsButton27_Click_1);
- this.nsLabel33.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel33.Location = new Point(860, 331);
- this.nsLabel33.Name = "nsLabel33";
- this.nsLabel33.Size = new Size(57, 23);
- this.nsLabel33.TabIndex = 15;
- this.nsLabel33.Text = "nsLabel33";
- this.nsLabel33.Value1 = "0/";
- this.nsLabel33.Value2 = "0";
- this.nsComboBox1.BackColor = Color.FromArgb(50, 50, 50);
- this.nsComboBox1.DrawMode = DrawMode.OwnerDrawFixed;
- this.nsComboBox1.DropDownStyle = ComboBoxStyle.DropDownList;
- this.nsComboBox1.ForeColor = Color.White;
- this.nsComboBox1.FormattingEnabled = true;
- this.nsComboBox1.Items.AddRange(new object[6]
- {
- (object) "Hdd:\\",
- (object) "USB0:\\",
- (object) "USB1:\\",
- (object) "USB2:\\",
- (object) "USB3:\\",
- (object) "USB4:\\"
- });
- this.nsComboBox1.Location = new Point((int) byte.MaxValue, 333);
- this.nsComboBox1.Name = "nsComboBox1";
- this.nsComboBox1.Size = new Size(169, 21);
- this.nsComboBox1.TabIndex = 14;
- this.nsComboBox1.SelectedIndexChanged += new EventHandler(this.nsComboBox1_SelectedIndexChanged);
- this.nsButton17.Location = new Point(746, 332);
- this.nsButton17.Name = "nsButton17";
- this.nsButton17.Size = new Size(95, 23);
- this.nsButton17.TabIndex = 12;
- this.nsButton17.Text = "Save Directory";
- this.nsButton17.Click += new EventHandler(this.nsButton17_Click_1);
- this.nsTextBox3.Cursor = Cursors.IBeam;
- this.nsTextBox3.Location = new Point(430, 332);
- this.nsTextBox3.MaxLength = (int) short.MaxValue;
- this.nsTextBox3.Multiline = false;
- this.nsTextBox3.Name = "nsTextBox3";
- this.nsTextBox3.ReadOnly = false;
- this.nsTextBox3.Size = new Size(314, 23);
- this.nsTextBox3.TabIndex = 11;
- this.nsTextBox3.Text = "Directory of your games folder on your JTAG / RGH";
- this.nsTextBox3.TextAlign = HorizontalAlignment.Left;
- this.nsTextBox3.UseSystemPasswordChar = false;
- this.nsTextBox3.TextChanged += new EventHandler(this.nsTextBox3_TextChanged);
- this.nsLabel16.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel16.Location = new Point(122, 331);
- this.nsLabel16.Name = "nsLabel16";
- this.nsLabel16.Size = new Size(133, 23);
- this.nsLabel16.TabIndex = 10;
- this.nsLabel16.Text = "nsLabel16";
- this.nsLabel16.Value1 = "Games";
- this.nsLabel16.Value2 = " Directory:";
- this.nsButton16.Location = new Point(7, 331);
- this.nsButton16.Name = "nsButton16";
- this.nsButton16.Size = new Size(109, 23);
- this.nsButton16.TabIndex = 9;
- this.nsButton16.Text = "Grab Games List";
- this.nsButton16.Click += new EventHandler(this.nsButton16_Click_1);
- viewColumnHeader7.Text = "Folder";
- viewColumnHeader7.Width = 300;
- viewColumnHeader8.Text = "Dir";
- viewColumnHeader8.Width = 600;
- this.nsListView2.Columns = new NSListView.NSListViewColumnHeader[2]
- {
- viewColumnHeader7,
- viewColumnHeader8
- };
- this.nsListView2.ContextMenuStrip = (ContextMenuStrip) this.nsContextMenu2;
- this.nsListView2.Items = new NSListView.NSListViewItem[0];
- this.nsListView2.Location = new Point(91, 44);
- this.nsListView2.MultiSelect = true;
- this.nsListView2.Name = "nsListView2";
- this.nsListView2.Size = new Size(743, 266);
- this.nsListView2.TabIndex = 8;
- this.nsListView2.Text = "nsListView2";
- this.nsListView2.Click += new EventHandler(this.nsListView2_Click_2);
- this.nsContextMenu2.ForeColor = Color.White;
- this.nsContextMenu2.Items.AddRange(new ToolStripItem[3]
- {
- (ToolStripItem) this.toolStripMenuItem1,
- (ToolStripItem) this.toolStripMenuItem2,
- (ToolStripItem) this.launchDefaultxbeToolStripMenuItem
- });
- this.nsContextMenu2.Name = "nsContextMenu1";
- this.nsContextMenu2.Size = new Size(196, 70);
- this.toolStripMenuItem1.Name = "toolStripMenuItem1";
- this.toolStripMenuItem1.Size = new Size(195, 22);
- this.toolStripMenuItem1.Text = "Launch default.xex";
- this.toolStripMenuItem1.Click += new EventHandler(this.toolStripMenuItem1_Click);
- this.toolStripMenuItem2.Name = "toolStripMenuItem2";
- this.toolStripMenuItem2.Size = new Size(195, 22);
- this.toolStripMenuItem2.Text = "Launch default_mp.xex";
- this.toolStripMenuItem2.Click += new EventHandler(this.toolStripMenuItem2_Click);
- this.launchDefaultxbeToolStripMenuItem.Name = "launchDefaultxbeToolStripMenuItem";
- this.launchDefaultxbeToolStripMenuItem.Size = new Size(195, 22);
- this.launchDefaultxbeToolStripMenuItem.Text = "Launch default.xbe";
- this.launchDefaultxbeToolStripMenuItem.Click += new EventHandler(this.launchDefaultxbeToolStripMenuItem_Click);
- this.nsGroupBox9.DrawSeperator = false;
- this.nsGroupBox9.Location = new Point(85, 10);
- this.nsGroupBox9.Name = "nsGroupBox9";
- this.nsGroupBox9.Size = new Size(756, 315);
- this.nsGroupBox9.SubTitle = "Launch your games here (Enter your games directory and click save then click get games list) right click on game you wish to launch";
- this.nsGroupBox9.TabIndex = 13;
- this.nsGroupBox9.Text = "nsGroupBox9";
- this.nsGroupBox9.Title = "Game Launcher";
- this.tabPage6.BackColor = Color.FromArgb(50, 50, 50);
- this.tabPage6.Controls.Add((Control) this.nsGroupBox4);
- this.tabPage6.Controls.Add((Control) this.nsGroupBox3);
- this.tabPage6.Controls.Add((Control) this.nsGroupBox8);
- this.tabPage6.Location = new Point(119, 4);
- this.tabPage6.Name = "tabPage6";
- this.tabPage6.Padding = new Padding(3);
- this.tabPage6.Size = new Size(927, 364);
- this.tabPage6.TabIndex = 5;
- this.tabPage6.Text = "Settings";
- this.nsGroupBox4.Controls.Add((Control) this.label2);
- this.nsGroupBox4.Controls.Add((Control) this.nsButton35);
- this.nsGroupBox4.Controls.Add((Control) this.nsLabel34);
- this.nsGroupBox4.Controls.Add((Control) this.nsButton24);
- this.nsGroupBox4.Controls.Add((Control) this.nsButton23);
- this.nsGroupBox4.Controls.Add((Control) this.nsButton22);
- this.nsGroupBox4.Controls.Add((Control) this.nsButton21);
- this.nsGroupBox4.Controls.Add((Control) this.nsLabel32);
- this.nsGroupBox4.Controls.Add((Control) this.nsOnOffBox3);
- this.nsGroupBox4.Controls.Add((Control) this.label4);
- this.nsGroupBox4.Controls.Add((Control) this.label3);
- this.nsGroupBox4.Controls.Add((Control) this.nsLabel30);
- this.nsGroupBox4.Controls.Add((Control) this.nsTrackBar1);
- this.nsGroupBox4.Controls.Add((Control) this.nsLabel31);
- this.nsGroupBox4.Controls.Add((Control) this.nsButton20);
- this.nsGroupBox4.Controls.Add((Control) this.nsButton19);
- this.nsGroupBox4.Controls.Add((Control) this.nsLabel28);
- this.nsGroupBox4.Controls.Add((Control) this.nsLabel27);
- this.nsGroupBox4.Controls.Add((Control) this.nsLabel26);
- this.nsGroupBox4.Controls.Add((Control) this.nsLabel25);
- this.nsGroupBox4.Controls.Add((Control) this.nsLabel24);
- this.nsGroupBox4.Controls.Add((Control) this.nsLabel23);
- this.nsGroupBox4.Controls.Add((Control) this.nsLabel22);
- this.nsGroupBox4.Controls.Add((Control) this.nsComboBox6);
- this.nsGroupBox4.Controls.Add((Control) this.nsComboBox5);
- this.nsGroupBox4.Controls.Add((Control) this.nsComboBox4);
- this.nsGroupBox4.Controls.Add((Control) this.nsComboBox3);
- this.nsGroupBox4.Controls.Add((Control) this.nsButton18);
- this.nsGroupBox4.Controls.Add((Control) this.nsLabel21);
- this.nsGroupBox4.Controls.Add((Control) this.nsLabel20);
- this.nsGroupBox4.Controls.Add((Control) this.nsLabel19);
- this.nsGroupBox4.Controls.Add((Control) this.nsLabel18);
- this.nsGroupBox4.Controls.Add((Control) this.nsButton7);
- this.nsGroupBox4.Controls.Add((Control) this.nsTextBox1);
- this.nsGroupBox4.Controls.Add((Control) this.nsLabel3);
- this.nsGroupBox4.DrawSeperator = false;
- this.nsGroupBox4.Location = new Point(431, 6);
- this.nsGroupBox4.Name = "nsGroupBox4";
- this.nsGroupBox4.Size = new Size(493, 352);
- this.nsGroupBox4.SubTitle = "These are the settings for your JTAG / RGH / XDK Console";
- this.nsGroupBox4.TabIndex = 7;
- this.nsGroupBox4.Text = "nsGroupBox4";
- this.nsGroupBox4.Title = "Console Settings";
- this.nsGroupBox4.Click += new EventHandler(this.nsGroupBox4_Click);
- this.label2.AutoSize = true;
- this.label2.BackColor = Color.Transparent;
- this.label2.Font = new Font("Verdana", 8.25f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
- this.label2.ForeColor = Color.Red;
- this.label2.Location = new Point(14, 160);
- this.label2.Name = "label2";
- this.label2.Size = new Size(319, 13);
- this.label2.TabIndex = 36;
- this.label2.Text = "Corner LED's cannot be set on slim consoels yet";
- this.nsButton35.Location = new Point(339, 154);
- this.nsButton35.Name = "nsButton35";
- this.nsButton35.Size = new Size(114, 23);
- this.nsButton35.TabIndex = 35;
- this.nsButton35.Text = "Slim Red Dot";
- this.nsButton35.Click += new EventHandler(this.nsButton35_Click);
- this.nsLabel34.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel34.Location = new Point(309, 130);
- this.nsLabel34.Name = "nsLabel34";
- this.nsLabel34.Size = new Size(181, 23);
- this.nsLabel34.TabIndex = 34;
- this.nsLabel34.Text = "nsLabel34";
- this.nsLabel34.Value1 = "AV Pack:";
- this.nsLabel34.Value2 = " None";
- this.nsButton24.Location = new Point(307, 101);
- this.nsButton24.Name = "nsButton24";
- this.nsButton24.Size = new Size(148, 23);
- this.nsButton24.TabIndex = 33;
- this.nsButton24.Text = " Power LED On";
- this.nsButton24.Click += new EventHandler(this.nsButton24_Click);
- this.nsButton23.Location = new Point(309, 72);
- this.nsButton23.Name = "nsButton23";
- this.nsButton23.Size = new Size(146, 23);
- this.nsButton23.TabIndex = 32;
- this.nsButton23.Text = "Animate LED's";
- this.nsButton23.Click += new EventHandler(this.nsButton23_Click);
- this.nsButton22.Location = new Point(309, 43);
- this.nsButton22.Name = "nsButton22";
- this.nsButton22.Size = new Size(146, 23);
- this.nsButton22.TabIndex = 31;
- this.nsButton22.Text = "Open / Close DVD Tray";
- this.nsButton22.Click += new EventHandler(this.nsButton22_Click);
- this.nsButton21.Location = new Point(117, 323);
- this.nsButton21.Name = "nsButton21";
- this.nsButton21.Size = new Size(94, 23);
- this.nsButton21.TabIndex = 30;
- this.nsButton21.Text = "Set Fan Speed";
- this.nsButton21.Click += new EventHandler(this.nsButton21_Click_1);
- this.nsLabel32.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel32.Location = new Point(307, 3);
- this.nsLabel32.Name = "nsLabel32";
- this.nsLabel32.Size = new Size(89, 23);
- this.nsLabel32.TabIndex = 29;
- this.nsLabel32.Text = "nsLabel32";
- this.nsLabel32.Value1 = "Disco";
- this.nsLabel32.Value2 = " LED's:";
- this.nsLabel32.Visible = false;
- this.nsOnOffBox3.Checked = false;
- this.nsOnOffBox3.Location = new Point(402, 2);
- this.nsOnOffBox3.MaximumSize = new Size(56, 24);
- this.nsOnOffBox3.MinimumSize = new Size(56, 24);
- this.nsOnOffBox3.Name = "nsOnOffBox3";
- this.nsOnOffBox3.Size = new Size(56, 24);
- this.nsOnOffBox3.TabIndex = 28;
- this.nsOnOffBox3.Text = "nsOnOffBox3";
- this.nsOnOffBox3.Visible = false;
- this.nsOnOffBox3.CheckedChanged += new NSOnOffBox.CheckedChangedEventHandler(this.nsOnOffBox3_CheckedChanged);
- this.label4.AutoSize = true;
- this.label4.Font = new Font("Verdana", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
- this.label4.ForeColor = Color.White;
- this.label4.Location = new Point(163, 262);
- this.label4.Name = "label4";
- this.label4.Size = new Size(14, 13);
- this.label4.TabIndex = 27;
- this.label4.Text = "0";
- this.label3.AutoSize = true;
- this.label3.BackColor = Color.Transparent;
- this.label3.Font = new Font("Verdana", 8.25f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
- this.label3.ForeColor = Color.Red;
- this.label3.Location = new Point(1, 279);
- this.label3.Name = "label3";
- this.label3.Size = new Size(182, 13);
- this.label3.TabIndex = 26;
- this.label3.Text = "WARNING!!! Fan Speed Low";
- this.nsLabel30.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel30.Location = new Point(3, 290);
- this.nsLabel30.Name = "nsLabel30";
- this.nsLabel30.Size = new Size(161, 23);
- this.nsLabel30.TabIndex = 25;
- this.nsLabel30.Text = "nsLabel30";
- this.nsLabel30.Value1 = "SMC Version:";
- this.nsLabel30.Value2 = " None";
- this.nsTrackBar1.Location = new Point(89, 259);
- this.nsTrackBar1.Maximum = 100;
- this.nsTrackBar1.Minimum = 10;
- this.nsTrackBar1.Name = "nsTrackBar1";
- this.nsTrackBar1.Size = new Size(75, 23);
- this.nsTrackBar1.TabIndex = 24;
- this.nsTrackBar1.Text = "nsTrackBar1";
- this.nsTrackBar1.Value = 10;
- this.nsTrackBar1.Scroll += new NSTrackBar.ScrollEventHandler(this.nsTrackBar1_Scroll);
- this.nsLabel31.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel31.Location = new Point(4, 257);
- this.nsLabel31.Name = "nsLabel31";
- this.nsLabel31.Size = new Size(89, 23);
- this.nsLabel31.TabIndex = 23;
- this.nsLabel31.Text = "nsLabel31";
- this.nsLabel31.Value1 = "Fan";
- this.nsLabel31.Value2 = " Speed:";
- this.nsLabel31.Click += new EventHandler(this.nsLabel31_Click);
- this.nsButton20.Location = new Point(291, 323);
- this.nsButton20.Name = "nsButton20";
- this.nsButton20.Size = new Size(130, 23);
- this.nsButton20.TabIndex = 21;
- this.nsButton20.Text = "Cold Reboot Console";
- this.nsButton20.Click += new EventHandler(this.nsButton20_Click);
- this.nsButton19.Location = new Point(221, 323);
- this.nsButton19.Name = "nsButton19";
- this.nsButton19.Size = new Size(61, 23);
- this.nsButton19.TabIndex = 20;
- this.nsButton19.Text = "Refresh";
- this.nsButton19.Click += new EventHandler(this.nsButton19_Click);
- this.nsLabel28.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel28.Location = new Point(20, 231);
- this.nsLabel28.Name = "nsLabel28";
- this.nsLabel28.Size = new Size(200, 23);
- this.nsLabel28.TabIndex = 19;
- this.nsLabel28.Text = "nsLabel28";
- this.nsLabel28.Value1 = "Console IP:";
- this.nsLabel28.Value2 = " None";
- this.nsLabel27.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel27.Location = new Point(333, 290);
- this.nsLabel27.Name = "nsLabel27";
- this.nsLabel27.Size = new Size(154, 23);
- this.nsLabel27.TabIndex = 18;
- this.nsLabel27.Text = "nsLabel27";
- this.nsLabel27.Value1 = "Mobo Temp:";
- this.nsLabel27.Value2 = " None";
- this.nsLabel26.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel26.Location = new Point(333, 257);
- this.nsLabel26.Name = "nsLabel26";
- this.nsLabel26.Size = new Size(154, 23);
- this.nsLabel26.TabIndex = 17;
- this.nsLabel26.Text = "nsLabel26";
- this.nsLabel26.Value1 = "RAM Temp:";
- this.nsLabel26.Value2 = " None";
- this.nsLabel25.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel25.Location = new Point(189, 290);
- this.nsLabel25.Name = "nsLabel25";
- this.nsLabel25.Size = new Size(158, 23);
- this.nsLabel25.TabIndex = 16;
- this.nsLabel25.Text = "nsLabel25";
- this.nsLabel25.Value1 = "CPU Temp:";
- this.nsLabel25.Value2 = " None";
- this.nsLabel24.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel24.Location = new Point(189, 257);
- this.nsLabel24.Name = "nsLabel24";
- this.nsLabel24.Size = new Size(158, 23);
- this.nsLabel24.TabIndex = 15;
- this.nsLabel24.Text = "nsLabel24";
- this.nsLabel24.Value1 = "GPU Temp:";
- this.nsLabel24.Value2 = " None";
- this.nsLabel23.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel23.Location = new Point(20, 205);
- this.nsLabel23.Name = "nsLabel23";
- this.nsLabel23.Size = new Size(430, 23);
- this.nsLabel23.TabIndex = 14;
- this.nsLabel23.Text = "nsLabel23";
- this.nsLabel23.Value1 = "Kernel:";
- this.nsLabel23.Value2 = " None";
- this.nsLabel22.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel22.Location = new Point(20, 179);
- this.nsLabel22.Name = "nsLabel22";
- this.nsLabel22.Size = new Size(430, 23);
- this.nsLabel22.TabIndex = 13;
- this.nsLabel22.Text = "nsLabel22";
- this.nsLabel22.Value1 = "CPU Key:";
- this.nsLabel22.Value2 = " None";
- this.nsComboBox6.BackColor = Color.FromArgb(50, 50, 50);
- this.nsComboBox6.DrawMode = DrawMode.OwnerDrawFixed;
- this.nsComboBox6.DropDownStyle = ComboBoxStyle.DropDownList;
- this.nsComboBox6.ForeColor = Color.White;
- this.nsComboBox6.FormattingEnabled = true;
- this.nsComboBox6.Items.AddRange(new object[4]
- {
- (object) "Green",
- (object) "Off",
- (object) "Orange",
- (object) "Red"
- });
- this.nsComboBox6.Location = new Point(158, 130);
- this.nsComboBox6.Name = "nsComboBox6";
- this.nsComboBox6.Size = new Size(140, 21);
- this.nsComboBox6.TabIndex = 11;
- this.nsComboBox5.BackColor = Color.FromArgb(50, 50, 50);
- this.nsComboBox5.DrawMode = DrawMode.OwnerDrawFixed;
- this.nsComboBox5.DropDownStyle = ComboBoxStyle.DropDownList;
- this.nsComboBox5.ForeColor = Color.White;
- this.nsComboBox5.FormattingEnabled = true;
- this.nsComboBox5.Items.AddRange(new object[4]
- {
- (object) "Green",
- (object) "Off",
- (object) "Orange",
- (object) "Red"
- });
- this.nsComboBox5.Location = new Point(158, 101);
- this.nsComboBox5.Name = "nsComboBox5";
- this.nsComboBox5.Size = new Size(140, 21);
- this.nsComboBox5.TabIndex = 10;
- this.nsComboBox4.BackColor = Color.FromArgb(50, 50, 50);
- this.nsComboBox4.DrawMode = DrawMode.OwnerDrawFixed;
- this.nsComboBox4.DropDownStyle = ComboBoxStyle.DropDownList;
- this.nsComboBox4.ForeColor = Color.White;
- this.nsComboBox4.FormattingEnabled = true;
- this.nsComboBox4.Items.AddRange(new object[4]
- {
- (object) "Green",
- (object) "Off",
- (object) "Orange",
- (object) "Red"
- });
- this.nsComboBox4.Location = new Point(158, 72);
- this.nsComboBox4.Name = "nsComboBox4";
- this.nsComboBox4.Size = new Size(140, 21);
- this.nsComboBox4.TabIndex = 9;
- this.nsComboBox3.BackColor = Color.FromArgb(50, 50, 50);
- this.nsComboBox3.DrawMode = DrawMode.OwnerDrawFixed;
- this.nsComboBox3.DropDownStyle = ComboBoxStyle.DropDownList;
- this.nsComboBox3.ForeColor = Color.White;
- this.nsComboBox3.FormattingEnabled = true;
- this.nsComboBox3.Items.AddRange(new object[4]
- {
- (object) "Green",
- (object) "Off",
- (object) "Orange",
- (object) "Red"
- });
- this.nsComboBox3.Location = new Point(158, 43);
- this.nsComboBox3.Name = "nsComboBox3";
- this.nsComboBox3.Size = new Size(140, 21);
- this.nsComboBox3.TabIndex = 8;
- this.nsButton18.Location = new Point(40, 323);
- this.nsButton18.Name = "nsButton18";
- this.nsButton18.Size = new Size(67, 23);
- this.nsButton18.TabIndex = 7;
- this.nsButton18.Text = "Set LED's";
- this.nsButton18.Click += new EventHandler(this.nsButton18_Click);
- this.nsLabel21.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel21.Location = new Point(21, 130);
- this.nsLabel21.Name = "nsLabel21";
- this.nsLabel21.Size = new Size(140, 23);
- this.nsLabel21.TabIndex = 6;
- this.nsLabel21.Text = "nsLabel21";
- this.nsLabel21.Value1 = "Bottom Right";
- this.nsLabel21.Value2 = " LED:";
- this.nsLabel20.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel20.Location = new Point(31, 101);
- this.nsLabel20.Name = "nsLabel20";
- this.nsLabel20.Size = new Size(130, 23);
- this.nsLabel20.TabIndex = 5;
- this.nsLabel20.Text = "nsLabel20";
- this.nsLabel20.Value1 = "Bottom Left";
- this.nsLabel20.Value2 = " LED:";
- this.nsLabel19.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel19.Location = new Point(46, 72);
- this.nsLabel19.Name = "nsLabel19";
- this.nsLabel19.Size = new Size(115, 23);
- this.nsLabel19.TabIndex = 4;
- this.nsLabel19.Text = "nsLabel19";
- this.nsLabel19.Value1 = "Top Right";
- this.nsLabel19.Value2 = " LED:";
- this.nsLabel18.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel18.Location = new Point(55, 43);
- this.nsLabel18.Name = "nsLabel18";
- this.nsLabel18.Size = new Size(106, 23);
- this.nsLabel18.TabIndex = 3;
- this.nsLabel18.Text = "nsLabel18";
- this.nsLabel18.Value1 = "Top Left";
- this.nsLabel18.Value2 = " LED:";
- this.nsButton7.Location = new Point(243, 356);
- this.nsButton7.Name = "nsButton7";
- this.nsButton7.Size = new Size(129, 23);
- this.nsButton7.TabIndex = 2;
- this.nsButton7.Text = "Connect To Console";
- this.nsButton7.Visible = false;
- this.nsButton7.Click += new EventHandler(this.nsButton7_Click);
- this.nsTextBox1.Cursor = Cursors.IBeam;
- this.nsTextBox1.Location = new Point(98, 357);
- this.nsTextBox1.MaxLength = (int) short.MaxValue;
- this.nsTextBox1.Multiline = false;
- this.nsTextBox1.Name = "nsTextBox1";
- this.nsTextBox1.ReadOnly = false;
- this.nsTextBox1.Size = new Size(139, 23);
- this.nsTextBox1.TabIndex = 1;
- this.nsTextBox1.Text = "Console IP";
- this.nsTextBox1.TextAlign = HorizontalAlignment.Left;
- this.nsTextBox1.UseSystemPasswordChar = false;
- this.nsTextBox1.Visible = false;
- this.nsLabel3.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel3.Location = new Point(12, 357);
- this.nsLabel3.Name = "nsLabel3";
- this.nsLabel3.Size = new Size(89, 23);
- this.nsLabel3.TabIndex = 0;
- this.nsLabel3.Text = "nsLabel3";
- this.nsLabel3.Value1 = "Console";
- this.nsLabel3.Value2 = " IP";
- this.nsLabel3.Visible = false;
- this.nsGroupBox3.Controls.Add((Control) this.nsOnOffBox4);
- this.nsGroupBox3.Controls.Add((Control) this.nsLabel38);
- this.nsGroupBox3.Controls.Add((Control) this.label6);
- this.nsGroupBox3.Controls.Add((Control) this.label5);
- this.nsGroupBox3.Controls.Add((Control) this.nsButton25);
- this.nsGroupBox3.Controls.Add((Control) this.nsOnOffBox2);
- this.nsGroupBox3.Controls.Add((Control) this.nsLabel29);
- this.nsGroupBox3.Controls.Add((Control) this.nsTextBox2);
- this.nsGroupBox3.Controls.Add((Control) this.nsLabel4);
- this.nsGroupBox3.Controls.Add((Control) this.nsLabel1);
- this.nsGroupBox3.Controls.Add((Control) this.nsOnOffBox1);
- this.nsGroupBox3.Controls.Add((Control) this.nsLabel5);
- this.nsGroupBox3.DrawSeperator = false;
- this.nsGroupBox3.Location = new Point(10, 6);
- this.nsGroupBox3.Name = "nsGroupBox3";
- this.nsGroupBox3.Size = new Size(403, 352);
- this.nsGroupBox3.SubTitle = "These settings will change the way the application works";
- this.nsGroupBox3.TabIndex = 6;
- this.nsGroupBox3.Text = "nsGroupBox3";
- this.nsGroupBox3.Title = "Application Settings";
- this.nsOnOffBox4.Checked = false;
- this.nsOnOffBox4.Location = new Point(334, 116);
- this.nsOnOffBox4.MaximumSize = new Size(56, 24);
- this.nsOnOffBox4.MinimumSize = new Size(56, 24);
- this.nsOnOffBox4.Name = "nsOnOffBox4";
- this.nsOnOffBox4.Size = new Size(56, 24);
- this.nsOnOffBox4.TabIndex = 30;
- this.nsOnOffBox4.Text = "nsOnOffBox4";
- this.nsOnOffBox4.Visible = false;
- this.nsLabel38.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel38.Location = new Point(11, 116);
- this.nsLabel38.Name = "nsLabel38";
- this.nsLabel38.Size = new Size(290, 23);
- this.nsLabel38.TabIndex = 29;
- this.nsLabel38.Text = "nsLabel38";
- this.nsLabel38.Value1 = "Save Game";
- this.nsLabel38.Value2 = " Launcher List";
- this.nsLabel38.Visible = false;
- this.label6.AutoSize = true;
- this.label6.BackColor = Color.Transparent;
- this.label6.Font = new Font("Verdana", 8.25f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
- this.label6.ForeColor = Color.Red;
- this.label6.Location = new Point(225, 244);
- this.label6.Name = "label6";
- this.label6.Size = new Size(100, 13);
- this.label6.TabIndex = 28;
- this.label6.Text = "Not connected";
- this.label5.AutoSize = true;
- this.label5.BackColor = Color.Transparent;
- this.label5.Font = new Font("Verdana", 8.25f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
- this.label5.ForeColor = Color.White;
- this.label5.Location = new Point(176, 243);
- this.label5.Name = "label5";
- this.label5.Size = new Size(52, 13);
- this.label5.TabIndex = 27;
- this.label5.Text = "Status:";
- this.nsButton25.Location = new Point(45, 239);
- this.nsButton25.Name = "nsButton25";
- this.nsButton25.Size = new Size(125, 23);
- this.nsButton25.TabIndex = 9;
- this.nsButton25.Text = "Connect to console";
- this.nsButton25.Click += new EventHandler(this.nsButton25_Click);
- this.nsOnOffBox2.Checked = false;
- this.nsOnOffBox2.Location = new Point(334, 87);
- this.nsOnOffBox2.MaximumSize = new Size(56, 24);
- this.nsOnOffBox2.MinimumSize = new Size(56, 24);
- this.nsOnOffBox2.Name = "nsOnOffBox2";
- this.nsOnOffBox2.Size = new Size(56, 24);
- this.nsOnOffBox2.TabIndex = 8;
- this.nsOnOffBox2.Text = "nsOnOffBox2";
- this.nsLabel29.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel29.Location = new Point(11, 87);
- this.nsLabel29.Name = "nsLabel29";
- this.nsLabel29.Size = new Size(290, 23);
- this.nsLabel29.TabIndex = 7;
- this.nsLabel29.Text = "nsLabel29";
- this.nsLabel29.Value1 = "Show Tempatures";
- this.nsLabel29.Value2 = " In Fahrenheit";
- this.nsTextBox2.Cursor = Cursors.IBeam;
- this.nsTextBox2.Location = new Point(27, 323);
- this.nsTextBox2.MaxLength = (int) short.MaxValue;
- this.nsTextBox2.Multiline = false;
- this.nsTextBox2.Name = "nsTextBox2";
- this.nsTextBox2.ReadOnly = false;
- this.nsTextBox2.Size = new Size(337, 23);
- this.nsTextBox2.TabIndex = 5;
- this.nsTextBox2.Text = "KV";
- this.nsTextBox2.TextAlign = HorizontalAlignment.Left;
- this.nsTextBox2.UseSystemPasswordChar = false;
- this.nsLabel4.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel4.Location = new Point(27, 273);
- this.nsLabel4.Name = "nsLabel4";
- this.nsLabel4.Size = new Size(350, 23);
- this.nsLabel4.TabIndex = 4;
- this.nsLabel4.Text = "nsLabel4";
- this.nsLabel4.Value1 = "What To Name Keyvault";
- this.nsLabel4.Value2 = " After It's Been Moved";
- this.nsLabel1.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel1.Location = new Point(11, 58);
- this.nsLabel1.Name = "nsLabel1";
- this.nsLabel1.Size = new Size(290, 23);
- this.nsLabel1.TabIndex = 1;
- this.nsLabel1.Text = "nsLabel1";
- this.nsLabel1.Value1 = "Delete Banned KV's";
- this.nsLabel1.Value2 = " When Scan Is Over";
- this.nsOnOffBox1.Checked = false;
- this.nsOnOffBox1.Location = new Point(334, 57);
- this.nsOnOffBox1.MaximumSize = new Size(56, 24);
- this.nsOnOffBox1.MinimumSize = new Size(56, 24);
- this.nsOnOffBox1.Name = "nsOnOffBox1";
- this.nsOnOffBox1.Size = new Size(56, 24);
- this.nsOnOffBox1.TabIndex = 0;
- this.nsOnOffBox1.Text = "nsOnOffBox1";
- this.nsOnOffBox1.CheckedChanged += new NSOnOffBox.CheckedChangedEventHandler(this.nsOnOffBox1_CheckedChanged);
- this.nsLabel5.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel5.Location = new Point(38, 268);
- this.nsLabel5.Name = "nsLabel5";
- this.nsLabel5.Size = new Size(350, 52);
- this.nsLabel5.TabIndex = 6;
- this.nsLabel5.Text = "nsLabel5";
- this.nsLabel5.Value1 = "";
- this.nsLabel5.Value2 = "(Name before numbers after kv is moved)";
- this.nsGroupBox8.Controls.Add((Control) this.nsButton15);
- this.nsGroupBox8.Controls.Add((Control) this.nsLabel13);
- this.nsGroupBox8.Controls.Add((Control) this.treeView2);
- this.nsGroupBox8.DrawSeperator = false;
- this.nsGroupBox8.Location = new Point(777, 21);
- this.nsGroupBox8.Name = "nsGroupBox8";
- this.nsGroupBox8.Size = new Size(144, 323);
- this.nsGroupBox8.SubTitle = "Explore files on your JTAG / RGH";
- this.nsGroupBox8.TabIndex = 1;
- this.nsGroupBox8.Text = "nsGroupBox8";
- this.nsGroupBox8.Title = "Xbox 360 Explorer";
- this.nsGroupBox8.Visible = false;
- this.nsButton15.Location = new Point(213, 295);
- this.nsButton15.Name = "nsButton15";
- this.nsButton15.Size = new Size(125, 25);
- this.nsButton15.TabIndex = 2;
- this.nsButton15.Text = "Connect to console";
- this.nsButton15.Click += new EventHandler(this.nsButton15_Click);
- this.nsLabel13.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel13.Location = new Point(3, 297);
- this.nsLabel13.Name = "nsLabel13";
- this.nsLabel13.Size = new Size(904, 23);
- this.nsLabel13.TabIndex = 3;
- this.nsLabel13.Text = "Running Process";
- this.nsLabel13.Value1 = "Running Process: ";
- this.nsLabel13.Value2 = " None";
- this.treeView2.ImageKey = "open.png";
- this.treeView2.Location = new Point(3, 34);
- this.treeView2.Name = "treeView2";
- treeNode.Name = "fileExplorer";
- treeNode.Text = "File Explorer";
- this.treeView2.Nodes.AddRange(new TreeNode[1]{ treeNode });
- this.treeView2.Size = new Size(904, 245);
- this.treeView2.TabIndex = 2;
- this.tabPage7.BackColor = Color.FromArgb(50, 50, 50);
- this.tabPage7.Controls.Add((Control) this.nsGroupBox10);
- this.tabPage7.Location = new Point(119, 4);
- this.tabPage7.Name = "tabPage7";
- this.tabPage7.Padding = new Padding(3);
- this.tabPage7.Size = new Size(927, 364);
- this.tabPage7.TabIndex = 6;
- this.tabPage7.Text = "JTAG Tutorials";
- this.nsGroupBox10.Controls.Add((Control) this.nsButton26);
- this.nsGroupBox10.Controls.Add((Control) this.webBrowser1);
- this.nsGroupBox10.Controls.Add((Control) this.nsListView4);
- this.nsGroupBox10.Controls.Add((Control) this.nsLabel36);
- this.nsGroupBox10.Controls.Add((Control) this.nsLabel35);
- this.nsGroupBox10.DrawSeperator = false;
- this.nsGroupBox10.Location = new Point(6, 6);
- this.nsGroupBox10.Name = "nsGroupBox10";
- this.nsGroupBox10.Size = new Size(915, 352);
- this.nsGroupBox10.SubTitle = "Here you will find videos that will help you with your JTAG or RGH.";
- this.nsGroupBox10.TabIndex = 0;
- this.nsGroupBox10.Text = "nsGroupBox10";
- this.nsGroupBox10.Title = "JTAG / RGH Help Videos";
- this.nsButton26.Location = new Point(512, 6);
- this.nsButton26.Name = "nsButton26";
- this.nsButton26.Size = new Size(306, 23);
- this.nsButton26.TabIndex = 7;
- this.nsButton26.Text = "Click here if you cannot see the video in the browser";
- this.nsButton26.Click += new EventHandler(this.nsButton26_Click_1);
- this.webBrowser1.Location = new Point(3, 35);
- this.webBrowser1.MinimumSize = new Size(20, 20);
- this.webBrowser1.Name = "webBrowser1";
- this.webBrowser1.Size = new Size(479, 314);
- this.webBrowser1.TabIndex = 6;
- this.webBrowser1.Url = new Uri("https://www.youtube.com/v/HFvQjYxHa3Q", UriKind.Absolute);
- this.webBrowser1.WebBrowserShortcutsEnabled = false;
- viewColumnHeader9.Text = "Tutorial";
- viewColumnHeader9.Width = 250;
- viewColumnHeader10.Text = "Length";
- viewColumnHeader10.Width = 175;
- viewColumnHeader11.Text = "Index";
- viewColumnHeader11.Width = 30;
- this.nsListView4.Columns = new NSListView.NSListViewColumnHeader[3]
- {
- viewColumnHeader9,
- viewColumnHeader10,
- viewColumnHeader11
- };
- this.nsListView4.ContextMenuStrip = (ContextMenuStrip) this.nsContextMenu3;
- this.nsListView4.Items = new NSListView.NSListViewItem[0];
- this.nsListView4.Location = new Point(512, 93);
- this.nsListView4.MultiSelect = true;
- this.nsListView4.Name = "nsListView4";
- this.nsListView4.Size = new Size(361, 244);
- this.nsListView4.TabIndex = 5;
- this.nsListView4.Text = "nsListView4";
- this.nsListView4.Click += new EventHandler(this.nsListView4_Click);
- this.nsListView4.DoubleClick += new EventHandler(this.nsListView4_DoubleClick);
- this.nsContextMenu3.ForeColor = Color.White;
- this.nsContextMenu3.Items.AddRange(new ToolStripItem[1]
- {
- (ToolStripItem) this.watchVideoToolStripMenuItem
- });
- this.nsContextMenu3.Name = "nsContextMenu3";
- this.nsContextMenu3.Size = new Size(141, 26);
- this.watchVideoToolStripMenuItem.Name = "watchVideoToolStripMenuItem";
- this.watchVideoToolStripMenuItem.Size = new Size(140, 22);
- this.watchVideoToolStripMenuItem.Text = "Watch video";
- this.watchVideoToolStripMenuItem.Click += new EventHandler(this.watchVideoToolStripMenuItem_Click);
- this.nsLabel36.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel36.Location = new Point(512, 64);
- this.nsLabel36.Name = "nsLabel36";
- this.nsLabel36.Size = new Size(217, 23);
- this.nsLabel36.TabIndex = 4;
- this.nsLabel36.Text = "nsLabel36";
- this.nsLabel36.Value1 = "Credit:";
- this.nsLabel36.Value2 = " xXModdedWarfareXx";
- this.nsLabel35.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel35.Location = new Point(512, 35);
- this.nsLabel35.Name = "nsLabel35";
- this.nsLabel35.Size = new Size(446, 23);
- this.nsLabel35.TabIndex = 1;
- this.nsLabel35.Text = "nsLabel35";
- this.nsLabel35.Value1 = "Tutorial:";
- this.nsLabel35.Value2 = " Updating Your Dashboard Version";
- this.tabPage8.BackColor = Color.FromArgb(50, 50, 50);
- this.tabPage8.Controls.Add((Control) this.nsGroupBox11);
- this.tabPage8.Controls.Add((Control) this.nsListView5);
- this.tabPage8.Controls.Add((Control) this.nsGroupBox12);
- this.tabPage8.Location = new Point(119, 4);
- this.tabPage8.Name = "tabPage8";
- this.tabPage8.Padding = new Padding(3);
- this.tabPage8.Size = new Size(927, 364);
- this.tabPage8.TabIndex = 7;
- this.tabPage8.Text = "Party / XUID";
- this.nsGroupBox11.Controls.Add((Control) this.label7);
- this.nsGroupBox11.Controls.Add((Control) this.nsLabel43);
- this.nsGroupBox11.Controls.Add((Control) this.nsTextBox4);
- this.nsGroupBox11.Controls.Add((Control) this.nsButton29);
- this.nsGroupBox11.Controls.Add((Control) this.nsLabel42);
- this.nsGroupBox11.Controls.Add((Control) this.nsLabel41);
- this.nsGroupBox11.Controls.Add((Control) this.nsLabel40);
- this.nsGroupBox11.Controls.Add((Control) this.nsLabel39);
- this.nsGroupBox11.Controls.Add((Control) this.nsTextBox8);
- this.nsGroupBox11.Controls.Add((Control) this.nsTextBox9);
- this.nsGroupBox11.Controls.Add((Control) this.nsButton33);
- this.nsGroupBox11.Controls.Add((Control) this.nsTextBox6);
- this.nsGroupBox11.Controls.Add((Control) this.nsTextBox7);
- this.nsGroupBox11.Controls.Add((Control) this.nsButton31);
- this.nsGroupBox11.Controls.Add((Control) this.nsButton32);
- this.nsGroupBox11.DrawSeperator = false;
- this.nsGroupBox11.Location = new Point(520, 11);
- this.nsGroupBox11.Name = "nsGroupBox11";
- this.nsGroupBox11.Size = new Size(393, 342);
- this.nsGroupBox11.SubTitle = "Spoof your XUID and Gamertag here.";
- this.nsGroupBox11.TabIndex = 6;
- this.nsGroupBox11.Text = "nsGroupBox11";
- this.nsGroupBox11.Title = "XUID and Gamertag spoofing";
- this.label7.AutoSize = true;
- this.label7.Font = new Font("Verdana", 8.25f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
- this.label7.ForeColor = Color.Red;
- this.label7.Location = new Point(30, 307);
- this.label7.Name = "label7";
- this.label7.Size = new Size(337, 26);
- this.label7.TabIndex = 21;
- this.label7.Text = "You will need to download XDRPC plugin for this to \r\njoin party to work (Click here if you need it)";
- this.label7.Click += new EventHandler(this.label7_Click);
- this.nsLabel43.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel43.Location = new Point(24, 249);
- this.nsLabel43.Name = "nsLabel43";
- this.nsLabel43.Size = new Size(140, 23);
- this.nsLabel43.TabIndex = 20;
- this.nsLabel43.Text = "nsLabel43";
- this.nsLabel43.Value1 = "Gamertag";
- this.nsLabel43.Value2 = " To Join:";
- this.nsTextBox4.Cursor = Cursors.IBeam;
- this.nsTextBox4.Location = new Point(166, 249);
- this.nsTextBox4.MaxLength = (int) short.MaxValue;
- this.nsTextBox4.Multiline = false;
- this.nsTextBox4.Name = "nsTextBox4";
- this.nsTextBox4.ReadOnly = false;
- this.nsTextBox4.Size = new Size(212, 23);
- this.nsTextBox4.TabIndex = 19;
- this.nsTextBox4.Text = "Gamertag to join's party";
- this.nsTextBox4.TextAlign = HorizontalAlignment.Left;
- this.nsTextBox4.UseSystemPasswordChar = false;
- this.nsButton29.Location = new Point(20, 278);
- this.nsButton29.Name = "nsButton29";
- this.nsButton29.Size = new Size(358, 23);
- this.nsButton29.TabIndex = 18;
- this.nsButton29.Text = " Join party via gamertag (Must be on friends list)";
- this.nsButton29.Click += new EventHandler(this.nsButton29_Click);
- this.nsLabel42.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel42.Location = new Point(20, 174);
- this.nsLabel42.Name = "nsLabel42";
- this.nsLabel42.Size = new Size(100, 23);
- this.nsLabel42.TabIndex = 17;
- this.nsLabel42.Text = "nsLabel42";
- this.nsLabel42.Value1 = "Spoof";
- this.nsLabel42.Value2 = " XUID:";
- this.nsLabel41.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel41.Location = new Point(20, 145);
- this.nsLabel41.Name = "nsLabel41";
- this.nsLabel41.Size = new Size(129, 23);
- this.nsLabel41.TabIndex = 16;
- this.nsLabel41.Text = "nsLabel41";
- this.nsLabel41.Value1 = "Spoof";
- this.nsLabel41.Value2 = " Gamertag:";
- this.nsLabel40.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel40.Location = new Point(20, 85);
- this.nsLabel40.Name = "nsLabel40";
- this.nsLabel40.Size = new Size(140, 23);
- this.nsLabel40.TabIndex = 15;
- this.nsLabel40.Text = "nsLabel40";
- this.nsLabel40.Value1 = "Default";
- this.nsLabel40.Value2 = " XUID:";
- this.nsLabel39.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold);
- this.nsLabel39.Location = new Point(20, 56);
- this.nsLabel39.Name = "nsLabel39";
- this.nsLabel39.Size = new Size(140, 23);
- this.nsLabel39.TabIndex = 14;
- this.nsLabel39.Text = "nsLabel39";
- this.nsLabel39.Value1 = "Default";
- this.nsLabel39.Value2 = " Gamertag:";
- this.nsTextBox8.Cursor = Cursors.IBeam;
- this.nsTextBox8.Location = new Point(166, 56);
- this.nsTextBox8.MaxLength = (int) short.MaxValue;
- this.nsTextBox8.Multiline = false;
- this.nsTextBox8.Name = "nsTextBox8";
- this.nsTextBox8.ReadOnly = true;
- this.nsTextBox8.Size = new Size(212, 23);
- this.nsTextBox8.TabIndex = 13;
- this.nsTextBox8.Text = "Gamertag";
- this.nsTextBox8.TextAlign = HorizontalAlignment.Left;
- this.nsTextBox8.UseSystemPasswordChar = false;
- this.nsTextBox9.Cursor = Cursors.IBeam;
- this.nsTextBox9.Location = new Point(166, 85);
- this.nsTextBox9.MaxLength = (int) short.MaxValue;
- this.nsTextBox9.Multiline = false;
- this.nsTextBox9.Name = "nsTextBox9";
- this.nsTextBox9.ReadOnly = true;
- this.nsTextBox9.Size = new Size(212, 23);
- this.nsTextBox9.TabIndex = 12;
- this.nsTextBox9.Text = "XUID Result";
- this.nsTextBox9.TextAlign = HorizontalAlignment.Left;
- this.nsTextBox9.UseSystemPasswordChar = false;
- this.nsButton33.Location = new Point(166, 114);
- this.nsButton33.Name = "nsButton33";
- this.nsButton33.Size = new Size(212, 23);
- this.nsButton33.TabIndex = 11;
- this.nsButton33.Text = "Set XUID and Gamertag to default";
- this.nsButton33.Click += new EventHandler(this.nsButton33_Click);
- this.nsTextBox6.Cursor = Cursors.IBeam;
- this.nsTextBox6.Location = new Point(155, 145);
- this.nsTextBox6.MaxLength = (int) short.MaxValue;
- this.nsTextBox6.Multiline = false;
- this.nsTextBox6.Name = "nsTextBox6";
- this.nsTextBox6.ReadOnly = false;
- this.nsTextBox6.Size = new Size(223, 23);
- this.nsTextBox6.TabIndex = 9;
- this.nsTextBox6.Text = "Gamertag";
- this.nsTextBox6.TextAlign = HorizontalAlignment.Left;
- this.nsTextBox6.UseSystemPasswordChar = false;
- this.nsTextBox7.Cursor = Cursors.IBeam;
- this.nsTextBox7.Location = new Point(143, 174);
- this.nsTextBox7.MaxLength = (int) short.MaxValue;
- this.nsTextBox7.Multiline = false;
- this.nsTextBox7.Name = "nsTextBox7";
- this.nsTextBox7.ReadOnly = true;
- this.nsTextBox7.Size = new Size(235, 23);
- this.nsTextBox7.TabIndex = 8;
- this.nsTextBox7.Text = "XUID Result";
- this.nsTextBox7.TextAlign = HorizontalAlignment.Left;
- this.nsTextBox7.UseSystemPasswordChar = false;
- this.nsButton31.Location = new Point(225, 203);
- this.nsButton31.Name = "nsButton31";
- this.nsButton31.Size = new Size(153, 23);
- this.nsButton31.TabIndex = 7;
- this.nsButton31.Text = "Set XUID and Gamertag";
- this.nsButton31.Click += new EventHandler(this.nsButton31_Click);
- this.nsButton32.Location = new Point(143, 203);
- this.nsButton32.Name = "nsButton32";
- this.nsButton32.Size = new Size(75, 23);
- this.nsButton32.TabIndex = 6;
- this.nsButton32.Text = "Get XUID";
- this.nsButton32.Click += new EventHandler(this.nsButton32_Click);
- viewColumnHeader12.Text = "Gamertag";
- viewColumnHeader12.Width = 120;
- viewColumnHeader13.Text = "XUID";
- viewColumnHeader13.Width = 140;
- viewColumnHeader14.Text = "Index";
- viewColumnHeader14.Width = 100;
- this.nsListView5.Columns = new NSListView.NSListViewColumnHeader[3]
- {
- viewColumnHeader12,
- viewColumnHeader13,
- viewColumnHeader14
- };
- this.nsListView5.ContextMenuStrip = (ContextMenuStrip) this.nsContextMenu5;
- this.nsListView5.Items = new NSListView.NSListViewItem[0];
- this.nsListView5.Location = new Point(36, 60);
- this.nsListView5.MultiSelect = true;
- this.nsListView5.Name = "nsListView5";
- this.nsListView5.Size = new Size(340, 150);
- this.nsListView5.TabIndex = 0;
- this.nsListView5.Text = "nsListView5";
- this.nsListView5.Click += new EventHandler(this.nsListView5_Click);
- this.nsContextMenu5.ForeColor = Color.White;
- this.nsContextMenu5.Items.AddRange(new ToolStripItem[1]
- {
- (ToolStripItem) this.kickToolStripMenuItem
- });
- this.nsContextMenu5.Name = "nsContextMenu5";
- this.nsContextMenu5.Size = new Size(97, 26);
- this.kickToolStripMenuItem.Name = "kickToolStripMenuItem";
- this.kickToolStripMenuItem.Size = new Size(96, 22);
- this.kickToolStripMenuItem.Text = "Kick";
- this.kickToolStripMenuItem.Click += new EventHandler(this.kickToolStripMenuItem_Click);
- this.nsGroupBox12.Controls.Add((Control) this.pictureBox2);
- this.nsGroupBox12.Controls.Add((Control) this.nsButton28);
- this.nsGroupBox12.Controls.Add((Control) this.pictureBox1);
- this.nsGroupBox12.DrawSeperator = false;
- this.nsGroupBox12.Location = new Point(18, 11);
- this.nsGroupBox12.Name = "nsGroupBox12";
- this.nsGroupBox12.Size = new Size(496, 342);
- this.nsGroupBox12.SubTitle = "Your xbox live party members will show in here (Right click to kick)";
- this.nsGroupBox12.TabIndex = 7;
- this.nsGroupBox12.Text = "nsGroupBox12";
- this.nsGroupBox12.Title = "Party list";
- this.pictureBox2.Location = new Point(133, 205);
- this.pictureBox2.Name = "pictureBox2";
- this.pictureBox2.Size = new Size(208, 134);
- this.pictureBox2.TabIndex = 3;
- this.pictureBox2.TabStop = false;
- this.nsButton28.Location = new Point(18, 205);
- this.nsButton28.Name = "nsButton28";
- this.nsButton28.Size = new Size(96, 23);
- this.nsButton28.TabIndex = 1;
- this.nsButton28.Text = "Get Party List";
- this.nsButton28.Click += new EventHandler(this.nsButton28_Click);
- this.pictureBox1.Location = new Point(348, 3);
- this.pictureBox1.Name = "pictureBox1";
- this.pictureBox1.Size = new Size(145, 336);
- this.pictureBox1.TabIndex = 2;
- this.pictureBox1.TabStop = false;
- this.tabPage9.BackColor = Color.FromArgb(50, 50, 50);
- this.tabPage9.Controls.Add((Control) this.nsGroupBox13);
- this.tabPage9.Location = new Point(119, 4);
- this.tabPage9.Name = "tabPage9";
- this.tabPage9.Padding = new Padding(3);
- this.tabPage9.Size = new Size(927, 364);
- this.tabPage9.TabIndex = 8;
- this.tabPage9.Text = "Friends List";
- this.nsGroupBox13.Controls.Add((Control) this.label8);
- this.nsGroupBox13.Controls.Add((Control) this.nsListView6);
- this.nsGroupBox13.Controls.Add((Control) this.pictureBox3);
- this.nsGroupBox13.Controls.Add((Control) this.nsButton34);
- this.nsGroupBox13.Controls.Add((Control) this.pictureBox4);
- this.nsGroupBox13.DrawSeperator = false;
- this.nsGroupBox13.Location = new Point(18, 11);
- this.nsGroupBox13.Name = "nsGroupBox13";
- this.nsGroupBox13.Size = new Size(895, 342);
- this.nsGroupBox13.SubTitle = "Your xbox live friends will show here. (Right click to join party)";
- this.nsGroupBox13.TabIndex = 8;
- this.nsGroupBox13.Text = "nsGroupBox13";
- this.nsGroupBox13.Title = "Friends list";
- this.nsGroupBox13.Click += new EventHandler(this.nsGroupBox13_Click);
- this.label8.AutoSize = true;
- this.label8.Font = new Font("Verdana", 8.25f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
- this.label8.ForeColor = Color.Red;
- this.label8.Location = new Point(210, 313);
- this.label8.Name = "label8";
- this.label8.Size = new Size(337, 26);
- this.label8.TabIndex = 22;
- this.label8.Text = "You will need to download XDRPC plugin for this to \r\njoin party to work (Click here if you need it)";
- this.label8.Click += new EventHandler(this.label8_Click);
- viewColumnHeader15.Text = "Gamertag";
- viewColumnHeader15.Width = 130;
- viewColumnHeader16.Text = "XUID";
- viewColumnHeader16.Width = 140;
- viewColumnHeader17.Text = "Game ID";
- viewColumnHeader17.Width = 100;
- viewColumnHeader18.Text = "Status";
- viewColumnHeader18.Width = 100;
- viewColumnHeader19.Text = "Machine";
- viewColumnHeader19.Width = 100;
- viewColumnHeader20.Text = "Friend Status";
- viewColumnHeader20.Width = 100;
- this.nsListView6.Columns = new NSListView.NSListViewColumnHeader[6]
- {
- viewColumnHeader15,
- viewColumnHeader16,
- viewColumnHeader17,
- viewColumnHeader18,
- viewColumnHeader19,
- viewColumnHeader20
- };
- this.nsListView6.ContextMenuStrip = (ContextMenuStrip) this.nsContextMenu4;
- this.nsListView6.Items = new NSListView.NSListViewItem[0];
- this.nsListView6.Location = new Point(18, 49);
- this.nsListView6.MultiSelect = true;
- this.nsListView6.Name = "nsListView6";
- this.nsListView6.Size = new Size(707, 261);
- this.nsListView6.TabIndex = 4;
- this.nsListView6.Text = "nsListView6";
- this.nsListView6.Click += new EventHandler(this.nsListView6_Click);
- this.nsContextMenu4.ForeColor = Color.White;
- this.nsContextMenu4.Items.AddRange(new ToolStripItem[1]
- {
- (ToolStripItem) this.joinPartyToolStripMenuItem
- });
- this.nsContextMenu4.Name = "nsContextMenu4";
- this.nsContextMenu4.Size = new Size(126, 26);
- this.joinPartyToolStripMenuItem.Name = "joinPartyToolStripMenuItem";
- this.joinPartyToolStripMenuItem.Size = new Size(125, 22);
- this.joinPartyToolStripMenuItem.Text = "Join Party";
- this.joinPartyToolStripMenuItem.Click += new EventHandler(this.joinPartyToolStripMenuItem_Click);
- this.pictureBox3.Location = new Point(715, 167);
- this.pictureBox3.Name = "pictureBox3";
- this.pictureBox3.Size = new Size(10, 134);
- this.pictureBox3.TabIndex = 3;
- this.pictureBox3.TabStop = false;
- this.nsButton34.Location = new Point(18, 316);
- this.nsButton34.Name = "nsButton34";
- this.nsButton34.Size = new Size(109, 23);
- this.nsButton34.TabIndex = 1;
- this.nsButton34.Text = "Get Friends List";
- this.nsButton34.Click += new EventHandler(this.nsButton34_Click);
- this.pictureBox4.Location = new Point(731, 3);
- this.pictureBox4.Name = "pictureBox4";
- this.pictureBox4.Size = new Size(145, 336);
- this.pictureBox4.TabIndex = 2;
- this.pictureBox4.TabStop = false;
- this.Label1.AutoSize = true;
- this.Label1.Location = new Point(53, 660);
- this.Label1.Name = "Label1";
- this.Label1.Size = new Size(41, 13);
- this.Label1.TabIndex = 40;
- this.Label1.Text = "label1";
- this.Label1.Visible = false;
- this.Button6.Location = new Point(133, 592);
- this.Button6.Name = "Button6";
- this.Button6.Size = new Size(75, 23);
- this.Button6.TabIndex = 39;
- this.Button6.Text = "get log";
- this.Button6.UseVisualStyleBackColor = true;
- this.Button6.Visible = false;
- this.Button6.Click += new EventHandler(this.Button6_Click);
- this.Button5.Location = new Point(133, 620);
- this.Button5.Name = "Button5";
- this.Button5.Size = new Size(75, 23);
- this.Button5.TabIndex = 38;
- this.Button5.Text = "delete";
- this.Button5.UseVisualStyleBackColor = true;
- this.Button5.Visible = false;
- this.Button4.Location = new Point(133, 563);
- this.Button4.Name = "Button4";
- this.Button4.Size = new Size(75, 23);
- this.Button4.TabIndex = 37;
- this.Button4.Text = "clear";
- this.Button4.UseVisualStyleBackColor = true;
- this.Button4.Visible = false;
- this.Button4.Click += new EventHandler(this.Button4_Click);
- this.RichTextBox1.Location = new Point(214, 538);
- this.RichTextBox1.Name = "RichTextBox1";
- this.RichTextBox1.Size = new Size(807, 76);
- this.RichTextBox1.TabIndex = 36;
- this.RichTextBox1.Text = "";
- this.RichTextBox1.Visible = false;
- this.Button3.Location = new Point(133, 534);
- this.Button3.Name = "Button3";
- this.Button3.Size = new Size(75, 23);
- this.Button3.TabIndex = 35;
- this.Button3.Text = "check ind";
- this.Button3.UseVisualStyleBackColor = true;
- this.Button3.Visible = false;
- this.Button3.Click += new EventHandler(this.Button3_Click);
- this.TextBox3.Location = new Point(214, 620);
- this.TextBox3.Name = "TextBox3";
- this.TextBox3.Size = new Size(807, 20);
- this.TextBox3.TabIndex = 34;
- this.TextBox3.Visible = false;
- this.Button2.Location = new Point(133, 505);
- this.Button2.Name = "Button2";
- this.Button2.Size = new Size(75, 23);
- this.Button2.TabIndex = 33;
- this.Button2.Text = "check";
- this.Button2.UseVisualStyleBackColor = true;
- this.Button2.Visible = false;
- this.Button2.Click += new EventHandler(this.Button2_Click);
- this.TextBox1.Location = new Point(214, 424);
- this.TextBox1.Multiline = true;
- this.TextBox1.Name = "TextBox1";
- this.TextBox1.ScrollBars = ScrollBars.Vertical;
- this.TextBox1.Size = new Size(807, 108);
- this.TextBox1.TabIndex = 32;
- this.TextBox1.Visible = false;
- this.Button1.Location = new Point(133, 424);
- this.Button1.Name = "Button1";
- this.Button1.Size = new Size(75, 23);
- this.Button1.TabIndex = 31;
- this.Button1.Text = "run";
- this.Button1.UseVisualStyleBackColor = true;
- this.Button1.Visible = false;
- this.Button1.Click += new EventHandler(this.Button1_Click);
- this.AutoScaleDimensions = new SizeF(6f, 13f);
- this.AutoScaleMode = AutoScaleMode.Font;
- this.ClientSize = new Size(1074, 415);
- this.Controls.Add((Control) this.nsTheme1);
- this.FormBorderStyle = FormBorderStyle.None;
- this.Icon = (System.Drawing.Icon) componentResourceManager.GetObject("$this.Icon");
- this.Name = "Form1";
- this.StartPosition = FormStartPosition.Manual;
- this.Text = "Chr0m3 x MoDz, HEX 1A4, JTAG / RGH Toolbox";
- this.FormClosing += new FormClosingEventHandler(this.Form1_FormClosing);
- this.Load += new EventHandler(this.Form1_Load);
- this.contextMenuStrip.ResumeLayout(false);
- this.nsTheme1.ResumeLayout(false);
- this.nsTheme1.PerformLayout();
- this.nsTabControl1.ResumeLayout(false);
- this.tabPage1.ResumeLayout(false);
- this.nsGroupBox2.ResumeLayout(false);
- this.tabPage2.ResumeLayout(false);
- this.nsGroupBox5.ResumeLayout(false);
- this.tabPage3.ResumeLayout(false);
- this.nsGroupBox6.ResumeLayout(false);
- this.tabPage4.ResumeLayout(false);
- this.nsGroupBox7.ResumeLayout(false);
- this.nsContextMenu1.ResumeLayout(false);
- this.tabPage5.ResumeLayout(false);
- this.nsContextMenu2.ResumeLayout(false);
- this.tabPage6.ResumeLayout(false);
- this.nsGroupBox4.ResumeLayout(false);
- this.nsGroupBox4.PerformLayout();
- this.nsGroupBox3.ResumeLayout(false);
- this.nsGroupBox3.PerformLayout();
- this.nsGroupBox8.ResumeLayout(false);
- this.tabPage7.ResumeLayout(false);
- this.nsGroupBox10.ResumeLayout(false);
- this.nsContextMenu3.ResumeLayout(false);
- this.tabPage8.ResumeLayout(false);
- this.nsGroupBox11.ResumeLayout(false);
- this.nsGroupBox11.PerformLayout();
- this.nsContextMenu5.ResumeLayout(false);
- this.nsGroupBox12.ResumeLayout(false);
- ((ISupportInitialize) this.pictureBox2).EndInit();
- ((ISupportInitialize) this.pictureBox1).EndInit();
- this.tabPage9.ResumeLayout(false);
- this.nsGroupBox13.ResumeLayout(false);
- this.nsGroupBox13.PerformLayout();
- this.nsContextMenu4.ResumeLayout(false);
- ((ISupportInitialize) this.pictureBox3).EndInit();
- ((ISupportInitialize) this.pictureBox4).EndInit();
- this.ResumeLayout(false);
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- this.nsListView4.AddItem("Updating your dash", "26:53", "0");
- this.nsListView4.AddItem("Setting up stealth", "15:03", "1");
- this.nsListView4.AddItem("Installing xex menu", "8:40", "2");
- this.nsListView4.AddItem("Installing freestyle dash", "8:05", "3");
- this.nsListView4.AddItem("Installing dashlaunch", "9:57", "4");
- this.nsListView4.AddItem("Downloading games", "13:11", "5");
- this.nsListView4.AddItem("Unlocking games / DLC", "15:11", "6");
- this.nsListView4.AddItem("Setting up FTP", "10:55", "7");
- this.nsListView4.AddItem("Installing emulators", "12:10", "8");
- this.nsListView4.AddItem("Installing TU's, Skins, Covers (FSD)", "17:16", "9");
- this.nsListView4.AddItem("Downloading / Installing DLC", "14:27", "10");
- this.nsListView4.AddItem("Installing xbox original games", "16:39", "11");
- this.nsListView4.AddItem("Setting up LiNK", "19:31", "12");
- this.nsListView4.AddItem("Installing Xbox 360 Neighborhood (SDK)", "18:54", "13");
- this.nsComboBox3.SelectedIndex = 0;
- this.nsComboBox4.SelectedIndex = 1;
- this.nsComboBox5.SelectedIndex = 1;
- this.nsComboBox6.SelectedIndex = 1;
- this.nsComboBox7.SelectedIndex = 0;
- NSTheme nsTheme = this.nsTheme1;
- string str = nsTheme.Text + " Version " + this.myversion;
- nsTheme.Text = str;
- this.CenterToParent();
- this.timer4.Start();
- Form3 form3 = new Form3();
- this.nsTextBox3.Text = Settings.Default.GameDir;
- this.nsComboBox1.SelectedIndex = Settings.Default.PartionIndex;
- this.nsComboBox2.SelectedIndex = Settings.Default.LaunchIndex;
- int num1 = (int) form3.ShowDialog();
- if (System.IO.File.Exists(this.path + "old.exe"))
- System.IO.File.Delete(this.path + "old.exe");
- this.version = this.download.DownloadString(this.dlversion);
- if (new Version(this.version) > new Version(this.myversion) && MsgBox.Show("There is an update available, would you like to download it?", "Quick Question", MsgBox.Buttons.YesNo, MsgBox.Icon.Question, MsgBox.AnimateStyle.FadeIn) == DialogResult.Yes)
- {
- int num2 = (int) MsgBox.Show("Application will restart after update", "Info", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- try
- {
- System.IO.File.Move(this.path + "JTAG Sidekick.exe", "old.exe");
- this.download.DownloadFile("https://dl.dropbox.com/s/0wavybe0zcpyyjv/JTAG%20Sidekick.exe?dl=0", "JTAG Sidekick.exe");
- Process.Start(this.path + "JTAG Sidekick.exe");
- Environment.Exit(0);
- }
- catch (Exception ex)
- {
- int num3 = (int) MsgBox.Show("Update failed!", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- }
- }
- if (MsgBox.Show("Would you like to connect to your console now?", "Confirmation", MsgBox.Buttons.YesNo, MsgBox.Icon.Question, MsgBox.AnimateStyle.FadeIn) != DialogResult.Yes)
- return;
- // ISSUE: explicit reference operation
- // ISSUE: cast to a reference type
- // if (((IXboxConsole) this.Jtag).Connect((IXboxConsole&) @this.Jtag, "default"))
- {
- this.jtagconnected = true;
- // int num2 = (int) MsgBox.Show("Connected to " + Jtag[], "Success", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- this.label6.Text = "Connected";
- this.label6.ForeColor = Color.LimeGreen;
- //uint Address = Jtag.ResolveFunction("xam.xex", 2601U) + 12288U;
- this.jtagconnected = true;
- Array.Clear((Array) this.SMCMessage, 0, this.SMCMessage.Length);
- Array.Clear((Array) this.SMCReturn, 0, this.SMCReturn.Length);
- this.SMCMessage[0] = (byte) 18;
- // int num3 = (int) ((IXboxConsole)Jtag).Call<uint>("xboxkrnl.exe", 41, (object) this.SMCMessage, (object) Address, null);
- // byte[] memory = ((IXboxConsole) this.Jtag).GetMemory(Address, 4U);
- // this.nsLabel30.Value2 = " " + (object) memory[2] + "." + (object) memory[3];
- // this.nsLabel22.Value2 = " " + ((IXboxConsole) this.Jtag).GetCPUKey();
- // this.nsLabel23.Value2 = " " + ((IXboxConsole) this.Jtag).GetKernalVersion().ToString();
- // this.nsLabel28.Value2 = " " + ((IXboxConsole) this.Jtag).XboxIP();
- int num4 = (int) this.GetAVPack();
- switch (this.GetAVPack())
- {
- }
- int num5 = this.nsTrackBar1.Value;
- this.nsTrackBar1.Value = 45;
- if (!this.nsOnOffBox2.Checked)
- {
- object temperature1 = null;
- this.nsLabel24.Value2 = " " + temperature1.ToString("0.0") + "°C";
- this.nsLabel25.Value2 = " " + temperature2.ToString("0.0") + "°C";
- this.nsLabel26.Value2 = " " + temperature3.ToString("0.0") + "°C";
- this.nsLabel27.Value2 = " " + temperature4.ToString("0.0") + "°C";
- }
- else
- {
- this.nsLabel24.Value2 = " " + temperature1.ToString("0.0") + "°F";
- this.nsLabel25.Value2 = " " + temperature2.ToString("0.0") + "°F";
- this.nsLabel26.Value2 = " " + temperature3.ToString("0.0") + "°F";
- this.nsLabel27.Value2 = " " + temperature4.ToString("0.0") + "°F";
- }
- }
- else
- {
- int num2 = (int) MsgBox.Show("Failed to connect to console!", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- this.label6.Text = "Not connected";
- this.label6.ForeColor = Color.Red;
- }
- }
- private float GetTemperature(object gPU)
- {
- throw new NotImplementedException();
- }
- private int GetAVPack()
- {
- throw new NotImplementedException();
- }
- private bool checkforprocess()
- {
- return Process.GetProcessesByName(this.sprocess).Length > 0;
- }
- // public Form1.XPARTY_USER_LIST GetPartyUserList()
- {
- // uint Address = ((IXboxConsole) this.Jtag).ResolveFunction("xam.xex", 2601U) + 12288U;
- // int num = (int) ((IXboxConsole) this.Jtag).Call<uint>("xam.xex", 2815, (object) 1, (object) Address, null);
- // return (Form1.XPARTY_USER_LIST) Marshal.PtrToStructure(Marshal.UnsafeAddrOfPinnedArrayElement((Array) ((IXboxConsole) this.Jtag).GetMemory(Address, 2024U), 0), typeof (Form1.XPARTY_USER_LIST));
- }
- public void GetPartyMembers()
- {
- label_0:
- try
- {
- // Form1.XPARTY_USER_LIST partyUserList = this.GetPartyUserList();
- // int num = Form1.pUtil.Bitswap32(partyUserList.dwUserCount);
- // if (num > 8)
- return;
- // this.PartyUsersCount = num;
- // for (int index = 0; index < num; ++index)
- {
- byte[] incomingData = new byte[120];
- // Array.Copy((Array) partyUserList.Users, index * 120, (Array) incomingData, 0, incomingData.Length);
- XDRPCStructArgumentInfo<Form1.XPARTY_USER_INFO> structArgumentInfo = new XDRPCStructArgumentInfo<Form1.XPARTY_USER_INFO>(new Form1.XPARTY_USER_INFO(), ArgumentType.Out);
- structArgumentInfo.UnpackBufferData(incomingData);
- // this.ListGamerTags[index] = structArgumentInfo.Value.GamerTag;
- // Form1.ListSXuid[index] = structArgumentInfo.Value.Xuid.ToString("X16");
- // Form1.ListLXuid[index] = structArgumentInfo.Value.Xuid;
- }
- }
- catch (Exception ex)
- {
- if (ex.ToString().Contains("0x82DA0101"))
- goto label_0;
- }
- }
- private void Button1_Click_1(object sender, EventArgs e)
- {
- this.TextBox1.Text = string.Empty;
- foreach (string directory in Directory.GetDirectories(this.path + "KVMOVER\\"))
- {
- DirectoryInfo directoryInfo = new DirectoryInfo(directory);
- this.TextBox1.AppendText(directoryInfo.Name);
- if (System.IO.File.Exists(this.path + "KVMOVER\\" + directoryInfo.Name + "\\KV.bin"))
- {
- this.TextBox1.AppendText(this.path + "KVMOVER\\" + directoryInfo.Name + "\\KV.bin FOUND\r\n");
- if (System.IO.File.Exists(this.path + "\\KVs\\KV_dec" + directoryInfo.Name + ".bin"))
- {
- System.IO.File.Delete(this.path + "\\KVs\\KV_dec" + directoryInfo.Name + ".bin");
- System.IO.File.Copy(this.path + "KVMOVER\\" + directoryInfo.Name + "\\KV.bin", this.path + "\\KVs\\KV_dec" + directoryInfo.Name + ".bin");
- }
- else
- System.IO.File.Copy(this.path + "KVMOVER\\" + directoryInfo.Name + "\\KV.bin", this.path + "\\KVs\\KV_dec" + directoryInfo.Name + ".bin");
- }
- else
- {
- this.TextBox1.AppendText(this.path + "KVMOVER\\" + directoryInfo.Name + "\\KV.bin NOT FOUND\r\n");
- try
- {
- System.IO.File.Copy(this.path + "KVMOVER\\" + directoryInfo.Name + "\\KV.bin", this.path + "\\KVs\\KV_dec" + directoryInfo.Name + ".bin");
- }
- catch (Exception ex)
- {
- }
- }
- }
- try
- {
- Process.Start(this.path + "XenonKerbAuthenticator.exe");
- Thread.Sleep(1000);
- this.Timer1.Start();
- }
- catch (Exception ex)
- {
- }
- }
- private void Button2_Click_1(object sender, EventArgs e)
- {
- if (System.IO.File.Exists(this.TextBox3.Text))
- {
- int num = (int) MessageBox.Show("PATH FOUND SUCCESS");
- Clipboard.SetText(this.TextBox3.Text);
- }
- else
- {
- int num1 = (int) MessageBox.Show("FAILED");
- }
- }
- private void Button3_Click_1(object sender, EventArgs e)
- {
- OpenFileDialog openFileDialog = new OpenFileDialog();
- openFileDialog.InitialDirectory = this.path + "\\KVMOVER";
- openFileDialog.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*";
- openFileDialog.FilterIndex = 2;
- openFileDialog.RestoreDirectory = true;
- if (openFileDialog.ShowDialog() != DialogResult.OK)
- return;
- try
- {
- if (System.IO.File.Exists(this.path + "\\KVs\\KV_dec.bin"))
- System.IO.File.Delete(this.path + "\\KVs\\KV_dec.bin");
- System.IO.File.Copy(openFileDialog.FileName, this.path + "\\KVs\\KV_dec.bin");
- this.TextBox3.Text = openFileDialog.FileName;
- Process.Start(this.path + "XenonKerbAuthenticator.exe");
- Thread.Sleep(1000);
- this.Timer1.Start();
- this.TextBox1.ScrollToCaret();
- }
- catch (Exception ex)
- {
- int num = (int) MessageBox.Show("Cannot read file from disk. Original error: " + ex.Message);
- }
- }
- private void Button4_Click_1(object sender, EventArgs e)
- {
- this.TextBox1.Text = string.Empty;
- this.RichTextBox1.Text = string.Empty;
- }
- private void Button6_Click_1(object sender, EventArgs e)
- {
- if (System.IO.File.Exists(this.path + "\\KVs\\log.txt"))
- {
- StreamReader streamReader = new StreamReader(this.path + "\\KVs\\log.txt");
- this.log = streamReader.ReadToEnd();
- this.RichTextBox1.AppendText(this.log);
- streamReader.Dispose();
- int num = 0;
- string text = this.RichTextBox1.Text;
- this.RichTextBox1.Text = string.Empty;
- for (this.RichTextBox1.Text = text; num < this.RichTextBox1.Text.LastIndexOf("banned"); num = this.RichTextBox1.Text.IndexOf("banned", num) + 1)
- {
- this.RichTextBox1.Find("banned", num, this.RichTextBox1.TextLength, RichTextBoxFinds.None);
- this.RichTextBox1.SelectionBackColor = Color.Red;
- }
- for (int index = 0; index < this.RichTextBox1.Text.LastIndexOf("unbanned"); index = this.RichTextBox1.Text.IndexOf("unbanned", index) + 1)
- {
- this.RichTextBox1.Find("unbanned", index, this.RichTextBox1.TextLength, RichTextBoxFinds.None);
- this.RichTextBox1.SelectionBackColor = Color.LightGreen;
- }
- }
- else
- {
- int num1 = (int) MsgBox.Show("Failed to load log", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- }
- }
- private void Button5_Click_1(object sender, EventArgs e)
- {
- }
- private void TextBox2_TextChanged(object sender, EventArgs e)
- {
- }
- private void Button3_Click(object sender, EventArgs e)
- {
- }
- private void Button6_Click(object sender, EventArgs e)
- {
- this.timer2.Start();
- this.timer3.Start();
- }
- private void timer2_Tick(object sender, EventArgs e)
- {
- }
- private void Button1_Click(object sender, EventArgs e)
- {
- }
- private void Form1_FormClosing(object sender, FormClosingEventArgs e)
- {
- this.timer2.Stop();
- this.timer3.Stop();
- this.timer4.Stop();
- }
- private void playyoutube()
- {
- this.webBrowser1.DocumentText = string.Format("<html><head><title></title></head><body>{0}</body></html>", (object) "<iframe width=\"560\" height=\"315\" src=\"http://www.youtube.com/embed/yg2u_De8j5o\" frameborder=\"0\" allowfullscreen></iframe>");
- }
- private void nsButton1_Click(object sender, EventArgs e)
- {
- int num1 = 0;
- int num2 = 0;
- int num3 = 0;
- if (MsgBox.Show("You will not be able to use this app at all why it's checking KV's, would you like to continue?", "Quick Question", MsgBox.Buttons.YesNo, MsgBox.Icon.Question, MsgBox.AnimateStyle.FadeIn) != DialogResult.Yes)
- return;
- this.richTextBox2.Clear();
- this.richTextBox3.Clear();
- DateTime now = DateTime.Now;
- string path = AppDomain.CurrentDomain.BaseDirectory + "KVs\\";
- string str1 = AppDomain.CurrentDomain.BaseDirectory + "files\\";
- string[] files = Directory.GetFiles(path);
- TextWriter textWriter = (TextWriter) new StreamWriter(path + "log.txt");
- foreach (string str2 in files)
- {
- if (!(str2 == path + "log.txt"))
- {
- byte[] xmacsLogonKey = Form1.GetXmacsLogonKey(str2);
- if (xmacsLogonKey == null)
- {
- this.richTextBox2.AppendText("GetXmacsLogonKey timed out. Trying one more time...\r\n");
- this.richTextBox2.Update();
- xmacsLogonKey = Form1.GetXmacsLogonKey(str2);
- if (xmacsLogonKey == null)
- {
- textWriter.WriteLine(str2 + " = skipped");
- this.richTextBox3.SelectionColor = Color.Cyan;
- this.richTextBox3.AppendText(str2 + " skipped :/\r\n");
- ++num3;
- this.richTextBox3.Update();
- continue;
- }
- }
- FileInfo fileInfo = new FileInfo(str2);
- string string1 = fileInfo.Length.ToString();
- float num4 = 0.0f;
- if (string1.Length > 3)
- num4 = (float) (fileInfo.Length / 1L);
- Convert.ToString(num4);
- if ((double) num4 == 16352.0)
- this.artoung = "-16";
- if ((double) num4 == 16368.0)
- this.artoung = "0";
- if ((double) num4 == 16384.0)
- this.artoung = "16";
- Form1.EndianIO endianIo1 = new Form1.EndianIO(str2, Form1.EndianType.BigEndian);
- endianIo1.Open();
- int int32 = Convert.ToInt32(this.artoung, 10);
- endianIo1.In.BaseStream.Position = (long) (3186 + int32);
- endianIo1.In.BaseStream.Position = (long) (160 + int32);
- string str3 = " " + this.HexString2Ascii(Form1.conversions.HexToAscii(endianIo1.In.ReadBytes(12)));
- endianIo1.Close();
- Form1.EndianIO endianIo2 = new Form1.EndianIO(str2, Form1.EndianType.BigEndian);
- endianIo2.Open();
- endianIo2.In.BaseStream.Position = 2506L;
- byte[] ConsoleId = endianIo2.In.ReadBytes(5);
- endianIo2.In.BaseStream.Position = 2504L;
- byte[] hash = SHA1.Create().ComputeHash(endianIo2.In.ReadBytes(168));
- byte[] dgram1 = System.IO.File.ReadAllBytes(str1 + "apreq1.bin");
- byte[] clientName = Form1.ComputeClientName(ConsoleId);
- this.richTextBox2.AppendText("Attempting logon for \"" + Encoding.ASCII.GetString(clientName) + "\"...\r\n");
- this.richTextBox2.Update();
- this.richTextBox2.AppendText("Creating Kerberos AS-REQ...\r\n");
- this.richTextBox2.Update();
- Array.Copy((Array) clientName, 0, (Array) dgram1, 258, 24);
- Array.Copy((Array) hash, 0, (Array) dgram1, 36, 20);
- byte[] timeStamp1 = Form1.GenerateTimeStamp();
- Array.Copy((Array) Form1.RC4HMACEncrypt(xmacsLogonKey, 16, timeStamp1, timeStamp1.Length, 1), 0, (Array) dgram1, 176, 52);
- UdpClient udpClient1 = new UdpClient();
- udpClient1.Connect("XEAS.gtm.XBOXLIVE.COM", 88);
- udpClient1.Send(dgram1, dgram1.Length);
- this.richTextBox2.AppendText("Sending Kerberos AS-REQ...\r\n");
- this.richTextBox2.Update();
- IPEndPoint remoteEP = new IPEndPoint(0L, 0);
- byte[] numArray1;
- while (true)
- {
- try
- {
- Thread.Sleep(10);
- if (udpClient1.Available > 0)
- {
- numArray1 = udpClient1.Receive(ref remoteEP);
- break;
- }
- udpClient1.Send(dgram1, dgram1.Length);
- }
- catch (Exception ex)
- {
- }
- }
- udpClient1.Close();
- this.richTextBox2.AppendText("AS replied wanting pre-auth data...\r\n");
- this.richTextBox2.Update();
- this.richTextBox2.AppendText("Creating new Kerberos AS-REQ...\r\n");
- this.richTextBox2.Update();
- byte[] numArray2 = new byte[16];
- Array.Copy((Array) numArray1, numArray1.Length - 16, (Array) numArray2, 0, 16);
- byte[] dgram2 = System.IO.File.ReadAllBytes(str1 + "apreq2.bin");
- Array.Copy((Array) clientName, 0, (Array) dgram2, 286, 24);
- Array.Copy((Array) hash, 0, (Array) dgram2, 36, 20);
- byte[] timeStamp2 = Form1.GenerateTimeStamp();
- Array.Copy((Array) Form1.RC4HMACEncrypt(xmacsLogonKey, 16, timeStamp2, timeStamp2.Length, 1), 0, (Array) dgram2, 204, 52);
- Array.Copy((Array) numArray2, 0, (Array) dgram2, 68, 16);
- UdpClient udpClient2 = new UdpClient();
- udpClient2.Connect("XEAS.XBOXLIVE.COM", 88);
- udpClient2.Send(dgram2, dgram2.Length);
- this.richTextBox2.AppendText("Sending Kerberos AS-REQ...\r\n");
- this.richTextBox2.Update();
- byte[] bytes1;
- while (true)
- {
- try
- {
- Thread.Sleep(10);
- if (udpClient2.Available > 0)
- {
- bytes1 = udpClient2.Receive(ref remoteEP);
- break;
- }
- Thread.Sleep(50);
- this.richTextBox2.AppendText("server timeout.. retrying...\r\n");
- this.richTextBox2.Update();
- udpClient2.Send(dgram2, dgram2.Length);
- }
- catch (Exception ex)
- {
- }
- }
- udpClient2.Close();
- System.IO.File.WriteAllBytes(str1 + "APRESP.bin", bytes1);
- this.richTextBox2.AppendText("Got AS-REP...\r\n");
- this.richTextBox2.Update();
- this.richTextBox2.AppendText("Decrypting our session key...\r\n");
- this.richTextBox2.Update();
- this.richTextBox2.AppendText("Creating Kerberos TGS-REQ...\r\n");
- this.richTextBox2.Update();
- byte[] data1 = new byte[210];
- Array.Copy((Array) bytes1, bytes1.Length - 210, (Array) data1, 0, 210);
- byte[] bytes2 = Form1.RC4HMACDecrypt(xmacsLogonKey, 16, data1, 210, 8);
- byte[] numArray3 = new byte[16];
- System.IO.File.WriteAllBytes(str1 + "test.bin", bytes2);
- Array.Copy((Array) bytes2, 27, (Array) numArray3, 0, 16);
- this.richTextBox2.AppendText("Setting TGS ticket...\r\n");
- this.richTextBox2.Update();
- byte[] numArray4 = new byte[345];
- Array.Copy((Array) bytes1, 168, (Array) numArray4, 0, 345);
- byte[] numArray5 = System.IO.File.ReadAllBytes(str1 + "TGSREQ.bin");
- Array.Copy((Array) numArray4, 0, (Array) numArray5, 437, 345);
- byte[] data2 = System.IO.File.ReadAllBytes(str1 + "authenticator.bin");
- Array.Copy((Array) clientName, 0, (Array) data2, 40, 15);
- Encoding ascii = Encoding.ASCII;
- DateTime dateTime = DateTime.Now;
- dateTime = dateTime.ToUniversalTime();
- string string2 = dateTime.ToString("yyyyMMddHHmmssZ");
- Array.Copy((Array) ascii.GetBytes(string2), 0, (Array) data2, 109, 15);
- Array.Copy((Array) MD5.Create().ComputeHash(numArray5, 954, 75), 0, (Array) data2, 82, 16);
- Array.Copy((Array) Form1.RC4HMACEncrypt(numArray3, 16, data2, data2.Length, 7), 0, (Array) numArray5, 799, 153);
- byte[] kdcNoonce = Form1.ComputeKdcNoonce(numArray3, 16);
- byte[] data3 = System.IO.File.ReadAllBytes(str1 + "servicereq.bin");
- Array.Copy((Array) Form1.RC4HMACEncrypt(kdcNoonce, 16, data3, data3.Length, 1201), 0, (Array) numArray5, 55, 150);
- byte[] titleData = new byte[66];
- Array.Copy((Array) dgram2, 116, (Array) titleData, 0, 66);
- Array.Copy((Array) Form1.GetTitleAuthData(numArray3, 16, titleData), 0, (Array) numArray5, 221, 82);
- this.richTextBox2.AppendText("Sending our TGS-REQ...\r\n");
- this.richTextBox2.Update();
- UdpClient udpClient3 = new UdpClient();
- udpClient3.Connect("XETGS.XBOXLIVE.COM", 88);
- udpClient3.Send(numArray5, numArray5.Length);
- remoteEP = new IPEndPoint(0L, 0);
- byte[] bytes3;
- while (true)
- {
- try
- {
- Thread.Sleep(10);
- if (udpClient3.Available > 0)
- {
- bytes3 = udpClient3.Receive(ref remoteEP);
- break;
- }
- Thread.Sleep(50);
- this.richTextBox2.AppendText("server timeout.. retrying...\r\n");
- this.richTextBox2.Update();
- udpClient3.Send(numArray5, numArray5.Length);
- }
- catch (Exception ex)
- {
- }
- }
- this.richTextBox2.AppendText("Got TGS-REP...");
- this.richTextBox2.Update();
- System.IO.File.WriteAllBytes(str1 + "tgsres.bin", bytes3);
- this.richTextBox2.AppendText("Decrypting Logon status...\r\n");
- this.richTextBox2.Update();
- byte[] data4 = new byte[84];
- Array.Copy((Array) bytes3, 50, (Array) data4, 0, 84);
- byte[] numArray6 = Form1.RC4HMACDecrypt(kdcNoonce, 16, data4, 84, 1202);
- byte[] data5 = new byte[208];
- Array.Copy((Array) bytes3, 58, (Array) data5, 0, 208);
- byte[] bytes4 = Form1.RC4HMACDecrypt(kdcNoonce, 16, data5, 208, 1202);
- System.IO.File.WriteAllBytes(str1 + "resp.bin", bytes4);
- uint uint32 = BitConverter.ToUInt32(numArray6, 8);
- this.richTextBox2.AppendText("Logon Status: " + uint32.ToString("X2") + "\r\n");
- this.richTextBox2.Update();
- if ((int) uint32 != -2146100979)
- {
- this.richTextBox2.AppendText(str2 + " Serial (" + str3 + " ) is unbanned :D");
- textWriter.WriteLine(str2 + " Serial (" + str3 + " ) = unbanned");
- textWriter.Flush();
- this.richTextBox3.SelectionColor = Color.LimeGreen;
- ++num2;
- this.richTextBox3.AppendText(str2 + " Serial (" + str3 + " ) is unbanned\r\n");
- this.richTextBox3.Update();
- Thread.Sleep(300);
- }
- else
- {
- this.richTextBox2.AppendText(str2 + " Serial (" + str3 + " ) is banned :(");
- textWriter.WriteLine(str2 + " Serial (" + str3 + " ) = banned");
- textWriter.Flush();
- ++num1;
- this.richTextBox3.SelectionColor = Color.Red;
- this.richTextBox3.AppendText(str2 + " Serial (" + str3 + " ) is banned\r\n");
- this.richTextBox3.Update();
- Thread.Sleep(300);
- }
- endianIo2.Close();
- }
- }
- textWriter.Close();
- int num5 = (int) MsgBox.Show("Skipped = " + num3.ToString() + "\nUnbanned = " + num2.ToString() + "\nBanned = " + num1.ToString(), "Results", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- }
- private void timer3_Tick(object sender, EventArgs e)
- {
- if (this.checkforprocess())
- {
- this.Label1.Text = "XenonKerbAuthenticator RUNNING";
- this.Button1.Enabled = false;
- this.Button2.Enabled = false;
- this.Button3.Enabled = false;
- this.Button4.Enabled = false;
- this.Button5.Enabled = false;
- this.Button6.Enabled = false;
- }
- else
- {
- if (this.checkforprocess())
- return;
- this.Label1.Text = "XenonKerbAuthenticator NOT RUNNING";
- this.Button1.Enabled = true;
- this.Button2.Enabled = true;
- this.Button3.Enabled = true;
- this.Button4.Enabled = true;
- this.Button5.Enabled = true;
- this.Button6.Enabled = true;
- try
- {
- StreamReader streamReader = new StreamReader(this.path + "\\KVs\\log.txt");
- this.log = streamReader.ReadToEnd();
- this.richTextBox3.AppendText(this.log);
- streamReader.Dispose();
- }
- catch (Exception ex)
- {
- int num = (int) MsgBox.Show("Failed to load log", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- this.timer3.Stop();
- }
- int num1 = 0;
- string text = this.richTextBox3.Text;
- this.richTextBox3.Text = string.Empty;
- for (this.richTextBox3.Text = text; num1 < this.richTextBox3.Text.LastIndexOf("banned"); num1 = this.richTextBox3.Text.IndexOf("banned", num1) + 1)
- {
- this.richTextBox3.Find("banned", num1, this.richTextBox3.TextLength, RichTextBoxFinds.None);
- this.richTextBox3.SelectionBackColor = Color.Red;
- }
- int num2 = 0;
- while (num2 < this.richTextBox3.Text.LastIndexOf("unbanned"))
- {
- this.richTextBox3.Find("unbanned", num2, this.richTextBox3.TextLength, RichTextBoxFinds.None);
- this.richTextBox3.SelectionBackColor = Color.LightGreen;
- num2 = this.richTextBox3.Text.IndexOf("unbanned", num2) + 1;
- this.timer3.Stop();
- if (MsgBox.Show("KV is unbanned. Would you like to send it to your console?", "Quick Question", MsgBox.Buttons.YesNo, MsgBox.Icon.Question, MsgBox.AnimateStyle.FadeIn) == DialogResult.Yes)
- {
- int num3 = (int) MessageBox.Show("test");
- if (this.jtagconnected)
- {
- // ISSUE: reference to a compiler-generated method
- this.Jtag.SendFile(AppDomain.CurrentDomain.BaseDirectory + "\\KVs\\KV.bin", "HDD:\\KV.bin");
- int num4 = (int) MsgBox.Show("KV sent to console", "Success", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- this.timer3.Stop();
- }
- else
- {
- int num4 = (int) MsgBox.Show("Please connect to your console first (This can be done in the settings tab)", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- this.timer3.Stop();
- }
- }
- }
- for (int index = 0; index < this.richTextBox3.Text.LastIndexOf("skipped"); index = this.richTextBox3.Text.IndexOf("skipped", index) + 1)
- {
- this.richTextBox3.Find("skipped", index, this.richTextBox3.TextLength, RichTextBoxFinds.None);
- this.richTextBox3.SelectionBackColor = Color.Yellow;
- }
- this.timer3.Stop();
- }
- }
- private void Button2_Click(object sender, EventArgs e)
- {
- }
- private void nsTheme1_Click(object sender, EventArgs e)
- {
- }
- private string GetLine(string fileName, int line)
- {
- using (StreamReader streamReader = new StreamReader(fileName))
- {
- for (int index = 1; index < line; ++index)
- streamReader.ReadLine();
- return streamReader.ReadLine();
- }
- }
- private void deletebanned()
- {
- int num1 = 0;
- int length = ((IEnumerable<string>) this.richTextBox3.Lines).Count<string>();
- string[] strArray1 = new string[length];
- string[] strArray2 = new string[length];
- string[] strArray3 = new string[length];
- for (int line = 0; line < length; ++line)
- {
- string[] strArray4 = this.GetLine(this.path + "\\KVs\\log.txt", line).Split('=');
- if (strArray4 != null)
- {
- strArray1[line] = strArray4[0];
- strArray3[line] = strArray4[1];
- if (System.IO.File.Exists(strArray1[line]) && strArray3[line] == " banned")
- {
- ++num1;
- System.IO.File.Delete(strArray1[line]);
- }
- }
- }
- int num2 = (int) MsgBox.Show("All " + num1.ToString() + " banned keyvaults have been deleted", "Success", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- num1 = 0;
- this.richTextBox2.Clear();
- this.richTextBox3.Clear();
- }
- private int GetCharpos(StreamReader s)
- {
- int num1 = (int) s.GetType().InvokeMember("charPos", BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.GetField, (Binder) null, (object) s, (object[]) null);
- int num2 = (int) s.GetType().InvokeMember("charLen", BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.GetField, (Binder) null, (object) s, (object[]) null);
- return (int) s.BaseStream.Position - num2 + num1;
- }
- private void Timer1_Tick_1(object sender, EventArgs e)
- {
- if (this.checkforprocess())
- {
- this.Label1.Text = "XenonKerbAuthenticator RUNNING";
- this.Button1.Enabled = false;
- this.Button2.Enabled = false;
- this.Button3.Enabled = false;
- this.Button4.Enabled = false;
- this.Button5.Enabled = false;
- this.Button6.Enabled = false;
- }
- else
- {
- if (this.checkforprocess())
- return;
- this.Label1.Text = "XenonKerbAuthenticator NOT RUNNING";
- this.Button1.Enabled = true;
- this.Button2.Enabled = true;
- this.Button3.Enabled = true;
- this.Button4.Enabled = true;
- this.Button5.Enabled = true;
- this.Button6.Enabled = true;
- try
- {
- StreamReader streamReader = new StreamReader(this.path + "\\KVs\\log.txt");
- this.log = streamReader.ReadToEnd();
- this.richTextBox3.AppendText(this.log);
- streamReader.Dispose();
- }
- catch (Exception ex)
- {
- int num = (int) MsgBox.Show("Failed to load log", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- this.Timer1.Stop();
- }
- int num1 = 0;
- string text = this.richTextBox3.Text;
- this.richTextBox3.Text = string.Empty;
- for (this.richTextBox3.Text = text; num1 < this.richTextBox3.Text.LastIndexOf("banned"); num1 = this.richTextBox3.Text.IndexOf("banned", num1) + 1)
- {
- this.richTextBox3.Find("banned", num1, this.richTextBox3.TextLength, RichTextBoxFinds.None);
- this.richTextBox3.SelectionBackColor = Color.Red;
- }
- for (int index = 0; index < this.richTextBox3.Text.LastIndexOf("unbanned"); index = this.richTextBox3.Text.IndexOf("unbanned", index) + 1)
- {
- this.richTextBox3.Find("unbanned", index, this.richTextBox3.TextLength, RichTextBoxFinds.None);
- this.richTextBox3.SelectionBackColor = Color.LightGreen;
- }
- for (int index = 0; index < this.richTextBox3.Text.LastIndexOf("skipped"); index = this.richTextBox3.Text.IndexOf("skipped", index) + 1)
- {
- this.richTextBox3.Find("skipped", index, this.richTextBox3.TextLength, RichTextBoxFinds.None);
- this.richTextBox3.SelectionBackColor = Color.Yellow;
- }
- this.Timer1.Stop();
- if (!this.nsOnOffBox1.Checked)
- return;
- this.deletebanned();
- }
- }
- private void richTextBox2_TextChanged(object sender, EventArgs e)
- {
- this.richTextBox2.SelectionStart = this.richTextBox2.Text.Length;
- this.richTextBox2.ScrollToCaret();
- }
- private void Button4_Click(object sender, EventArgs e)
- {
- }
- private void nsButton4_Click(object sender, EventArgs e)
- {
- this.deletebanned();
- }
- private void button7_Click(object sender, EventArgs e)
- {
- }
- private void nsButton5_Click(object sender, EventArgs e)
- {
- this.Close();
- }
- private void nsButton6_Click(object sender, EventArgs e)
- {
- this.WindowState = FormWindowState.Minimized;
- }
- private void nsTextBox2_TextChanged(object sender, EventArgs e)
- {
- Settings.Default["KVName"] = (object) this.nsTextBox2.Text;
- Settings.Default.Save();
- }
- private void InitializeChildForm()
- {
- Form2 form2 = new Form2();
- form2.FormClosed += new FormClosedEventHandler(this.ChildFormClosed);
- int num = (int) form2.ShowDialog();
- }
- private void ChildFormClosed(object sender, FormClosedEventArgs e)
- {
- if (!Globals.inimodified)
- return;
- this.nsListView1.SelectedItems[0].Text = Globals.ini_value;
- this.nsListView1.Update();
- this.nsListView1.Refresh();
- }
- private void cleanlistview()
- {
- this.nsListView1.RemoveItems(this.nsListView1.Items);
- this.nsListView1.Update();
- this.nsListView1.Refresh();
- }
- private void cleanlistview1()
- {
- this.nsListView2.RemoveItems(this.nsListView2.Items);
- this.nsListView2.Update();
- this.nsListView2.Refresh();
- }
- private void cleanlistview2()
- {
- this.nsListView3.RemoveItems(this.nsListView3.Items);
- this.nsListView3.Update();
- this.nsListView3.Refresh();
- }
- private void cleanlistview5()
- {
- this.nsListView5.RemoveItems(this.nsListView5.Items);
- this.nsListView5.Update();
- this.nsListView5.Refresh();
- }
- private void cleanlistview6()
- {
- this.nsListView6.RemoveItems(this.nsListView6.Items);
- this.nsListView6.Update();
- this.nsListView6.Refresh();
- }
- private void nsButton8_Click(object sender, EventArgs e)
- {
- if (this.jtagconnected)
- {
- DialogResult dialogResult = MsgBox.Show("Would you like to backup your .ini? (Previous backup will be replaced)", "Quick Question", MsgBox.Buttons.YesNo, MsgBox.Icon.Question, MsgBox.AnimateStyle.FadeIn);
- try
- {
- if (this.nsComboBox7.SelectedIndex == 0)
- {
- // ISSUE: reference to a compiler-generated method
- this.Jtag.ReceiveFile(AppDomain.CurrentDomain.BaseDirectory + "\\launch.ini", this.nsComboBox2.SelectedItem.ToString() + "launch.ini");
- }
- if (this.nsComboBox7.SelectedIndex == 1)
- {
- // ISSUE: reference to a compiler-generated method
- this.Jtag.ReceiveFile(AppDomain.CurrentDomain.BaseDirectory + "\\JRPC.ini", this.nsComboBox2.SelectedItem.ToString() + "JRPC.ini");
- }
- if (this.nsComboBox7.SelectedIndex == 2)
- {
- // ISSUE: reference to a compiler-generated method
- this.Jtag.ReceiveFile(AppDomain.CurrentDomain.BaseDirectory + "\\rgloader.ini", this.nsComboBox2.SelectedItem.ToString() + "rgloader.ini");
- }
- this.cleanlistview();
- if (this.nsComboBox7.SelectedIndex == 0)
- {
- foreach (SectionData section in this.parser.LoadFile(AppDomain.CurrentDomain.BaseDirectory + "\\launch.ini").Sections)
- {
- this.nsListView1.AddItem("[" + section.SectionName + "]");
- foreach (KeyData key in section.Keys)
- this.nsListView1.AddItem(key.KeyName + " = " + key.Value);
- }
- if (dialogResult == DialogResult.Yes)
- {
- if (System.IO.File.Exists(AppDomain.CurrentDomain.BaseDirectory + "\\launch-backup.ini"))
- System.IO.File.Delete(AppDomain.CurrentDomain.BaseDirectory + "\\launch-backup.ini");
- System.IO.File.Move(AppDomain.CurrentDomain.BaseDirectory + "\\launch.ini", AppDomain.CurrentDomain.BaseDirectory + "\\launch-backup.ini");
- }
- if (dialogResult == DialogResult.No)
- {
- int num1 = (int) MsgBox.Show("launch.ini retrieved from console succsesfully", "Success", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- }
- else
- {
- int num2 = (int) MsgBox.Show("launch.ini retrieved from console succsesfully, launch-backup.ini is also in the folder of this application.", "Success", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- }
- }
- if (this.nsComboBox7.SelectedIndex == 1)
- {
- foreach (string readAllLine in System.IO.File.ReadAllLines(AppDomain.CurrentDomain.BaseDirectory + "\\JRPC.ini"))
- this.nsListView1.AddItem(readAllLine);
- if (dialogResult == DialogResult.Yes)
- {
- if (System.IO.File.Exists(AppDomain.CurrentDomain.BaseDirectory + "\\JRPC-backup.ini"))
- System.IO.File.Delete(AppDomain.CurrentDomain.BaseDirectory + "\\JRPC-backup.ini");
- System.IO.File.Move(AppDomain.CurrentDomain.BaseDirectory + "\\JRPC.ini", AppDomain.CurrentDomain.BaseDirectory + "\\JRPC-backup.ini");
- }
- if (dialogResult == DialogResult.No)
- {
- int num1 = (int) MsgBox.Show("JRPC.ini retrieved from console succsesfully", "Success", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- }
- else
- {
- int num2 = (int) MsgBox.Show("JRPC.ini retrieved from console succsesfully, JRPC-backup.ini is also in the folder of this application.", "Success", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- }
- }
- if (this.nsComboBox7.SelectedIndex != 2)
- return;
- foreach (SectionData section in this.parser.LoadFile(AppDomain.CurrentDomain.BaseDirectory + "\\rgloader.ini").Sections)
- {
- this.nsListView1.AddItem("[" + section.SectionName + "]");
- foreach (KeyData key in section.Keys)
- this.nsListView1.AddItem(key.KeyName + " = " + key.Value);
- }
- if (dialogResult == DialogResult.Yes)
- {
- if (System.IO.File.Exists(AppDomain.CurrentDomain.BaseDirectory + "\\rgloader-backup.ini"))
- System.IO.File.Delete(AppDomain.CurrentDomain.BaseDirectory + "\\rgloader-backup.ini");
- System.IO.File.Move(AppDomain.CurrentDomain.BaseDirectory + "\\rgloader.ini", AppDomain.CurrentDomain.BaseDirectory + "\\rgloader-backup.ini");
- }
- if (dialogResult == DialogResult.No)
- {
- int num3 = (int) MsgBox.Show("rgloader.ini retrieved from console succsesfully", "Success", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- }
- else
- {
- int num4 = (int) MsgBox.Show("rgloader.ini retrieved from console succsesfully, launch-backup.ini is also in the folder of this application.", "Success", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- }
- }
- catch (Exception ex)
- {
- int num = (int) MsgBox.Show("Failed to retrieve .ini from console, please make sure you have your console selected as the default console in neighourhood and that you have a launch.ini on your console", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- }
- }
- else
- {
- int num5 = (int) MsgBox.Show("Please connect to your console first (This can be done in the settings tab)", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- }
- }
- private void nsListView1_DoubleClick(object sender, EventArgs e)
- {
- try
- {
- Globals.ini_value = this.nsListView1.SelectedItems[0].Text;
- this.InitializeChildForm();
- }
- catch (Exception ex)
- {
- int num = (int) MsgBox.Show("Make sure you select something first. (Left click on the item before you right click)", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- }
- }
- private void nsLabel13_Click(object sender, EventArgs e)
- {
- }
- private void tabPage3_Click(object sender, EventArgs e)
- {
- }
- private static byte[] ComputeClientName(byte[] ConsoleId)
- {
- long num1 = 0;
- for (int index = 0; index < 5; ++index)
- num1 = (num1 | (long) ConsoleId[index]) << 8;
- long num2 = num1 >> 8;
- int num3 = (int) num2 & 15;
- string s = string.Format("XE.{0}{1}@xbox.com", (object) (num2 >> 4).ToString(), (object) num3.ToString());
- if (s.Length != 24)
- {
- int length = s.Length;
- for (int index = 0; index < 24 - (s.Length - 1); ++index)
- s = s.Insert(3, "0");
- }
- return Encoding.ASCII.GetBytes(s);
- }
- private static byte[] GetTitleAuthData(byte[] Key, int keyLen, byte[] titleData)
- {
- byte[] hash = new HMACSHA1(Form1.ComputeKdcNoonce(Key, 16)).ComputeHash(titleData, 0, 66);
- byte[] numArray = new byte[82];
- Array.Copy((Array) hash, (Array) numArray, 16);
- Array.Copy((Array) titleData, 0, (Array) numArray, 16, 66);
- return numArray;
- }
- private static byte[] ComputeKdcNoonce(byte[] Key, int keyLen)
- {
- byte[] buffer = new byte[13]{ (byte) 115, (byte) 105, (byte) 103, (byte) 110, (byte) 97, (byte) 116, (byte) 117, (byte) 114, (byte) 101, (byte) 107, (byte) 101, (byte) 121, (byte) 0 };
- byte[] hash1 = new HMACMD5(Key).ComputeHash(buffer, 0, 13);
- byte[] inputBuffer1 = new byte[4];
- byte[] inputBuffer2 = new byte[4]{ (byte) 2, (byte) 4, (byte) 0, (byte) 0 };
- MD5 md5 = (MD5) new MD5CryptoServiceProvider();
- md5.TransformBlock(inputBuffer2, 0, 4, (byte[]) null, 0);
- md5.TransformFinalBlock(inputBuffer1, 0, 4);
- byte[] hash2 = md5.Hash;
- return new HMACMD5(hash1).ComputeHash(hash2);
- }
- private static byte[] GenerateTimeStamp()
- {
- byte[] bytes = Misc.HexStringToBytes("301aa011180f32303132313231323139303533305aa10502030b3543");
- Encoding ascii = Encoding.ASCII;
- DateTime dateTime = DateTime.Now;
- dateTime = dateTime.ToUniversalTime();
- string @string = dateTime.ToString("yyyyMMddHHmmssZ");
- Array.Copy((Array) ascii.GetBytes(@string), 0, (Array) bytes, 6, 15);
- return bytes;
- }
- private static byte[] RC4HMACDecrypt(byte[] key, int keyLen, byte[] data, int dataLen, int Idk)
- {
- HMACMD5 hmacmD5 = new HMACMD5(key);
- byte[] bytes = BitConverter.GetBytes(Idk);
- byte[] hash1 = hmacmD5.ComputeHash(bytes, 0, 4);
- byte[] buffer = new byte[16];
- Array.Copy((Array) data, (Array) buffer, 16);
- byte[] Data = new byte[data.Length - 16];
- Array.Copy((Array) data, 16, (Array) Data, 0, data.Length - 16);
- hmacmD5.Key = hash1;
- byte[] hash2 = hmacmD5.ComputeHash(buffer);
- Core.Security.RC4(ref Data, hash2);
- return Data;
- }
- private static byte[] RC4HMACEncrypt(byte[] key, int keyLen, byte[] data, int dataLen, int Idk)
- {
- HMACMD5 hmacmD5 = new HMACMD5(key);
- byte[] bytes1 = BitConverter.GetBytes(Idk);
- byte[] hash1 = hmacmD5.ComputeHash(bytes1, 0, 4);
- byte[] bytes2 = Misc.HexStringToBytes("9b6bfacb5c488190");
- byte[] Data = new byte[data.Length + 8];
- Array.Copy((Array) bytes2, (Array) Data, 8);
- Array.Copy((Array) data, 0, (Array) Data, 8, data.Length);
- hmacmD5.Key = hash1;
- byte[] hash2 = hmacmD5.ComputeHash(Data);
- byte[] hash3 = hmacmD5.ComputeHash(hash2);
- Core.Security.RC4(ref Data, hash3);
- byte[] numArray = new byte[dataLen + 24];
- Array.Copy((Array) hash2, 0, (Array) numArray, 0, 16);
- Array.Copy((Array) Data, 0, (Array) numArray, 16, Data.Length);
- return numArray;
- }
- private static void LogonFromTicketCache()
- {
- string str1 = AppDomain.CurrentDomain.BaseDirectory + "KVs\\";
- string str2 = AppDomain.CurrentDomain.BaseDirectory + "\\files\\";
- Form1.EndianIO endianIo = new Form1.EndianIO(str2 + "kerb_ticket.bin", Form1.EndianType.BigEndian);
- endianIo.In.BaseStream.Position = 212L;
- byte[] numArray1 = endianIo.In.ReadBytes(16);
- endianIo.In.BaseStream.Position = 318L;
- byte[] numArray2 = endianIo.In.ReadBytes(345);
- byte[] numArray3 = System.IO.File.ReadAllBytes(str2 + "TGSREQ.bin");
- Array.Copy((Array) numArray2, 0, (Array) numArray3, 437, 345);
- byte[] data1 = System.IO.File.ReadAllBytes(str2 + "authenticator.bin");
- MD5.Create().ComputeHash(numArray3, 954, 75);
- Encoding ascii = Encoding.ASCII;
- DateTime dateTime = DateTime.Now;
- dateTime = dateTime.ToUniversalTime();
- string @string = dateTime.ToString("yyyyMMddHHmmssZ");
- Array.Copy((Array) ascii.GetBytes(@string), 0, (Array) data1, 109, 15);
- Array.Copy((Array) Form1.RC4HMACEncrypt(numArray1, 16, data1, data1.Length, 7), 0, (Array) numArray3, 799, 153);
- byte[] kdcNoonce = Form1.ComputeKdcNoonce(numArray1, 16);
- byte[] data2 = System.IO.File.ReadAllBytes(str2 + "servicereq.bin");
- Array.Copy((Array) Form1.RC4HMACEncrypt(kdcNoonce, 16, data2, 126, 1201), 0, (Array) numArray3, 55, 150);
- byte[] numArray4 = System.IO.File.ReadAllBytes(str2 + "apreq2.bin");
- byte[] titleData = new byte[66];
- Array.Copy((Array) numArray4, 116, (Array) titleData, 0, 66);
- Array.Copy((Array) Form1.GetTitleAuthData(numArray1, 16, titleData), 0, (Array) numArray3, 221, 82);
- UdpClient udpClient = new UdpClient(88);
- udpClient.Connect("XETGS.XBOXLIVE.COM", 88);
- udpClient.Send(numArray3, numArray3.Length);
- IPEndPoint remoteEP = new IPEndPoint(0L, 0);
- byte[] bytes = udpClient.Receive(ref remoteEP);
- System.IO.File.WriteAllBytes(str2 + "tgsresp.bin", bytes);
- udpClient.Close();
- byte[] data3 = new byte[84];
- Array.Copy((Array) bytes, 50, (Array) data3, 0, 84);
- int num = (int) BitConverter.ToUInt32(Form1.RC4HMACDecrypt(kdcNoonce, 16, data3, 84, 1202), 8);
- }
- private static byte[] Reverse8(byte[] input)
- {
- byte[] numArray = new byte[input.Length];
- int num1 = input.Length - 8;
- int num2 = 0;
- for (int index1 = 0; index1 < input.Length / 8; ++index1)
- {
- for (int index2 = 0; index2 < 8; ++index2)
- numArray[num2 + index2] = input[num1 + index2];
- num1 -= 8;
- num2 += 8;
- }
- return numArray;
- }
- private static RSACryptoServiceProvider LoadXmacsKey()
- {
- Form1.EndianIO endianIo = new Form1.EndianIO(RSAKeys.XMACS_RSA_PUB2048, Form1.EndianType.BigEndian);
- endianIo.Open();
- endianIo.In.BaseStream.Position = 4L;
- byte[] numArray1 = endianIo.In.ReadBytes(4);
- endianIo.In.BaseStream.Position = 16L;
- byte[] numArray2 = Form1.Reverse8(endianIo.In.ReadBytes(256));
- RSAParameters parameters = new RSAParameters();
- parameters.Exponent = numArray1;
- parameters.Modulus = numArray2;
- RSACryptoServiceProvider cryptoServiceProvider = new RSACryptoServiceProvider();
- cryptoServiceProvider.ImportParameters(parameters);
- endianIo.Close();
- return cryptoServiceProvider;
- }
- private static RSACryptoServiceProvider LoadConsolePrivateKey(byte[] Exponent, byte[] KeyParams)
- {
- Form1.EndianIO endianIo = new Form1.EndianIO(KeyParams, Form1.EndianType.BigEndian);
- endianIo.Open();
- byte[] numArray1 = Form1.Reverse8(endianIo.In.ReadBytes(128));
- byte[] numArray2 = Form1.Reverse8(endianIo.In.ReadBytes(64));
- byte[] numArray3 = Form1.Reverse8(endianIo.In.ReadBytes(64));
- byte[] numArray4 = Form1.Reverse8(endianIo.In.ReadBytes(64));
- byte[] numArray5 = Form1.Reverse8(endianIo.In.ReadBytes(64));
- byte[] numArray6 = Form1.Reverse8(endianIo.In.ReadBytes(64));
- RSAParameters parameters = new RSAParameters();
- parameters.Exponent = Exponent;
- parameters.Modulus = numArray1;
- parameters.P = numArray2;
- parameters.Q = numArray3;
- parameters.DP = numArray4;
- parameters.DQ = numArray5;
- parameters.InverseQ = numArray6;
- parameters.D = new byte[128];
- new Random(Environment.TickCount).NextBytes(parameters.D);
- RSACryptoServiceProvider cryptoServiceProvider = new RSACryptoServiceProvider();
- cryptoServiceProvider.ImportParameters(parameters);
- endianIo.Close();
- return cryptoServiceProvider;
- }
- private static byte[] GetXmacsLogonKey(string fileName)
- {
- string str = AppDomain.CurrentDomain.BaseDirectory + "\\files\\";
- RSACryptoServiceProvider cryptoServiceProvider1 = Form1.LoadXmacsKey();
- byte[] numArray1 = new byte[16];
- new Random(Environment.TickCount).NextBytes(numArray1);
- byte[] numArray2 = cryptoServiceProvider1.Encrypt(numArray1, true);
- Array.Reverse((Array) numArray2);
- byte[] dgram = System.IO.File.ReadAllBytes(str + "XMACSREQ.bin");
- Array.Copy((Array) numArray2, 0, (Array) dgram, 44, 256);
- Form1.EndianIO endianIo = new Form1.EndianIO(fileName, Form1.EndianType.BigEndian);
- endianIo.Open();
- endianIo.In.BaseStream.Position = 176L;
- byte[] inputBuffer = endianIo.In.ReadBytes(12);
- endianIo.In.BaseStream.Position = 2504L;
- byte[] numArray3 = endianIo.In.ReadBytes(424);
- endianIo.In.BaseStream.Position = 668L;
- byte[] Exponent = endianIo.In.ReadBytes(4);
- endianIo.In.BaseStream.Position = 680L;
- byte[] KeyParams = endianIo.In.ReadBytes(448);
- endianIo.In.BaseStream.Position = 2506L;
- byte[] ConsoleId = endianIo.In.ReadBytes(5);
- endianIo.Close();
- byte[] clientName = Form1.ComputeClientName(ConsoleId);
- RSACryptoServiceProvider cryptoServiceProvider2 = Form1.LoadConsolePrivateKey(Exponent, KeyParams);
- byte[] bytes = BitConverter.GetBytes(DateTime.UtcNow.ToFileTime());
- Array.Reverse((Array) bytes);
- byte[] timeStamp = Form1.GenerateTimeStamp();
- byte[] numArray4 = Form1.RC4HMACEncrypt(numArray1, 16, timeStamp, timeStamp.Length, 1);
- byte[] hash1 = SHA1.Create().ComputeHash(numArray1);
- SHA1CryptoServiceProvider cryptoServiceProvider3 = new SHA1CryptoServiceProvider();
- cryptoServiceProvider3.TransformBlock(bytes, 0, 8, (byte[]) null, 0);
- cryptoServiceProvider3.TransformBlock(inputBuffer, 0, 12, (byte[]) null, 0);
- cryptoServiceProvider3.TransformFinalBlock(hash1, 0, 20);
- byte[] hash2 = cryptoServiceProvider3.Hash;
- RSAPKCS1SignatureFormatter signatureFormatter = new RSAPKCS1SignatureFormatter((AsymmetricAlgorithm) cryptoServiceProvider2);
- signatureFormatter.SetHashAlgorithm("SHA1");
- byte[] signature = signatureFormatter.CreateSignature(hash2);
- Array.Reverse((Array) signature);
- Array.Copy((Array) bytes, 0, (Array) dgram, 300, 8);
- Array.Copy((Array) inputBuffer, 0, (Array) dgram, 308, 12);
- Array.Copy((Array) signature, 0, (Array) dgram, 320, 128);
- Array.Copy((Array) numArray3, 0, (Array) dgram, 448, 424);
- Array.Copy((Array) numArray4, 0, (Array) dgram, 992, 52);
- Array.Copy((Array) clientName, 0, (Array) dgram, 1072, 15);
- UdpClient udpClient = new UdpClient();
- udpClient.Connect("XEAS.XBOXLIVE.COM", 88);
- udpClient.Send(dgram, dgram.Length);
- IPEndPoint remoteEP = new IPEndPoint(0L, 0);
- int num = 0;
- byte[] numArray5;
- while (true)
- {
- try
- {
- do
- {
- Thread.Sleep(10);
- if (udpClient.Available > 0)
- {
- numArray5 = udpClient.Receive(ref remoteEP);
- goto label_6;
- }
- else
- {
- Thread.Sleep(500);
- ++num;
- }
- }
- while (num != 10);
- return (byte[]) null;
- }
- catch (Exception ex)
- {
- }
- }
- label_6:
- byte[] data = new byte[108];
- Array.Copy((Array) numArray5, 53, (Array) data, 0, 108);
- byte[] numArray6 = Form1.RC4HMACDecrypt(Form1.ComputeKdcNoonce(numArray1, 16), 16, data, 108, 1203);
- byte[] numArray7 = new byte[16];
- Array.Copy((Array) numArray6, 76, (Array) numArray7, 0, 16);
- return numArray7;
- }
- public static byte[] StringToByteArray(string hex)
- {
- return Enumerable.Range(0, hex.Length).Where<int>((Func<int, bool>) (x => x % 2 == 0)).Select<int, byte>((Func<int, byte>) (x => Convert.ToByte(hex.Substring(x, 2), 16))).ToArray<byte>();
- }
- private string HexString2Ascii(string hexString)
- {
- StringBuilder stringBuilder = new StringBuilder();
- int startIndex = 0;
- while (startIndex <= hexString.Length - 2)
- {
- stringBuilder.Append(Convert.ToString(Convert.ToChar(int.Parse(hexString.Substring(startIndex, 2), NumberStyles.HexNumber))));
- startIndex += 2;
- }
- return stringBuilder.ToString();
- }
- private void nsButton11_Click(object sender, EventArgs e)
- {
- string str1 = "00000000";
- string str2 = "4F534947";
- OpenFileDialog openFileDialog = new OpenFileDialog();
- openFileDialog.Filter = "bin files (*.bin)|*.bin|All files (*.*)|*.*";
- openFileDialog.FilterIndex = 2;
- openFileDialog.RestoreDirectory = true;
- openFileDialog.FileName = "";
- openFileDialog.Title = "Select Keyvault";
- int num1 = (int) openFileDialog.ShowDialog();
- if (!(openFileDialog.FileName != ""))
- return;
- this.kvdir = openFileDialog.FileName;
- FileInfo fileInfo = new FileInfo(openFileDialog.FileName);
- string string1 = fileInfo.Length.ToString();
- float num2 = 0.0f;
- if (string1.Length > 3)
- num2 = (float) (fileInfo.Length / 1L);
- Convert.ToString(num2);
- if ((double) num2 == 16352.0)
- this.artoung = "-16";
- if ((double) num2 == 16368.0)
- this.artoung = "0";
- if ((double) num2 == 16384.0)
- this.artoung = "16";
- Form1.EndianIO endianIo1 = new Form1.EndianIO(openFileDialog.FileName, Form1.EndianType.BigEndian);
- endianIo1.Open();
- int int32 = Convert.ToInt32(this.artoung, 10);
- endianIo1.In.BaseStream.Position = (long) (3186 + int32);
- string ascii1 = Form1.conversions.HexToAscii(endianIo1.In.ReadBytes(4));
- if (ascii1 == str1)
- this.nsLabel12.Value2 = " 1";
- if (ascii1 == str2)
- this.nsLabel12.Value2 = " 2";
- endianIo1.In.BaseStream.Position = (long) (160 + int32);
- this.nsLabel7.Value2 = " " + this.HexString2Ascii(Form1.conversions.HexToAscii(endianIo1.In.ReadBytes(12)));
- endianIo1.In.BaseStream.Position = (long) (2516 + int32);
- this.nsLabel11.Value2 = " " + this.HexString2Ascii(Form1.conversions.HexToAscii(endianIo1.In.ReadBytes(8)));
- endianIo1.In.BaseStream.Position = (long) (240 + int32);
- this.nsLabel8.Value2 = " " + Form1.conversions.HexToAscii(endianIo1.In.ReadBytes(16));
- endianIo1.In.BaseStream.Position = (long) (3202 + int32);
- this.nsLabel14.Value2 = " " + this.HexString2Ascii(Form1.conversions.HexToAscii(endianIo1.In.ReadBytes(28)));
- endianIo1.In.BaseStream.Position = (long) (2490 + int32);
- this.nsLabel6.Value2 = " " + Form1.conversions.HexToAscii(endianIo1.In.ReadBytes(5));
- endianIo1.In.BaseStream.Position = (long) (184 + int32);
- string ascii2 = Form1.conversions.HexToAscii(endianIo1.In.ReadBytes(2));
- string str3 = "02FE";
- string str4 = "01FE";
- string str5 = "00FF";
- string str6 = "01FC";
- string str7 = "0201";
- if (ascii2 == str3)
- this.nsLabel10.Value2 = " PAL-Euro";
- if (ascii2 == str5)
- this.nsLabel10.Value2 = " NTSC-U";
- if (ascii2 == str4)
- this.nsLabel10.Value2 = " NTSC-J";
- if (ascii2 == str6)
- this.nsLabel10.Value2 = " NTSC-Kor";
- if (ascii2 == str7)
- this.nsLabel10.Value2 = " PAL-Aus";
- endianIo1.In.BaseStream.Position = (long) (7656 + int32);
- Form1.conversions.HexToAscii(endianIo1.In.ReadBytes(256));
- endianIo1.Close();
- string fileName = openFileDialog.FileName;
- DateTime now = DateTime.Now;
- string path = AppDomain.CurrentDomain.BaseDirectory + "KVs\\";
- string str8 = AppDomain.CurrentDomain.BaseDirectory + "files\\";
- Form1.EndianIO endianIo2 = new Form1.EndianIO(openFileDialog.FileName, Form1.EndianType.BigEndian);
- Directory.GetFiles(path);
- byte[] xmacsLogonKey = Form1.GetXmacsLogonKey(fileName);
- if (xmacsLogonKey == null)
- {
- this.richTextBox3.SelectionColor = Color.Cyan;
- this.richTextBox3.AppendText(fileName + " skipped\r\n");
- this.richTextBox3.Update();
- }
- endianIo2.Open();
- endianIo2.In.BaseStream.Position = 2506L;
- byte[] ConsoleId = endianIo2.In.ReadBytes(5);
- endianIo2.In.BaseStream.Position = 2504L;
- byte[] hash = SHA1.Create().ComputeHash(endianIo2.In.ReadBytes(168));
- byte[] dgram1 = System.IO.File.ReadAllBytes(str8 + "apreq1.bin");
- byte[] clientName = Form1.ComputeClientName(ConsoleId);
- this.richTextBox2.AppendText("Attempting logon for \"" + Encoding.ASCII.GetString(clientName) + "\"...");
- this.richTextBox2.AppendText("Creating Kerberos AS-REQ...");
- Array.Copy((Array) clientName, 0, (Array) dgram1, 258, 24);
- Array.Copy((Array) hash, 0, (Array) dgram1, 36, 20);
- byte[] timeStamp1 = Form1.GenerateTimeStamp();
- Array.Copy((Array) Form1.RC4HMACEncrypt(xmacsLogonKey, 16, timeStamp1, timeStamp1.Length, 1), 0, (Array) dgram1, 176, 52);
- UdpClient udpClient1 = new UdpClient();
- udpClient1.Connect("XEAS.gtm.XBOXLIVE.COM", 88);
- udpClient1.Send(dgram1, dgram1.Length);
- this.richTextBox2.AppendText("Sending Kerberos AS-REQ...");
- IPEndPoint remoteEP = new IPEndPoint(0L, 0);
- byte[] numArray1;
- while (true)
- {
- try
- {
- Thread.Sleep(10);
- if (udpClient1.Available > 0)
- {
- numArray1 = udpClient1.Receive(ref remoteEP);
- break;
- }
- udpClient1.Send(dgram1, dgram1.Length);
- }
- catch (Exception ex)
- {
- }
- }
- udpClient1.Close();
- this.richTextBox2.AppendText("AS replied wanting pre-auth data...");
- this.richTextBox2.AppendText("Creating new Kerberos AS-REQ...");
- byte[] numArray2 = new byte[16];
- Array.Copy((Array) numArray1, numArray1.Length - 16, (Array) numArray2, 0, 16);
- byte[] dgram2 = System.IO.File.ReadAllBytes(str8 + "apreq2.bin");
- Array.Copy((Array) clientName, 0, (Array) dgram2, 286, 24);
- Array.Copy((Array) hash, 0, (Array) dgram2, 36, 20);
- byte[] timeStamp2 = Form1.GenerateTimeStamp();
- Array.Copy((Array) Form1.RC4HMACEncrypt(xmacsLogonKey, 16, timeStamp2, timeStamp2.Length, 1), 0, (Array) dgram2, 204, 52);
- Array.Copy((Array) numArray2, 0, (Array) dgram2, 68, 16);
- UdpClient udpClient2 = new UdpClient();
- udpClient2.Connect("XEAS.XBOXLIVE.COM", 88);
- udpClient2.Send(dgram2, dgram2.Length);
- this.richTextBox2.AppendText("Sending Kerberos AS-REQ...");
- byte[] bytes1;
- while (true)
- {
- try
- {
- Thread.Sleep(10);
- if (udpClient2.Available > 0)
- {
- bytes1 = udpClient2.Receive(ref remoteEP);
- break;
- }
- Thread.Sleep(50);
- this.richTextBox2.AppendText("server timeout.. retrying...");
- udpClient2.Send(dgram2, dgram2.Length);
- }
- catch (Exception ex)
- {
- }
- }
- udpClient2.Close();
- System.IO.File.WriteAllBytes(str8 + "APRESP.bin", bytes1);
- this.richTextBox2.AppendText("Got AS-REP...");
- this.richTextBox2.AppendText("Decrypting our session key...");
- this.richTextBox2.AppendText("Creating Kerberos TGS-REQ...");
- byte[] data1 = new byte[210];
- Array.Copy((Array) bytes1, bytes1.Length - 210, (Array) data1, 0, 210);
- byte[] bytes2 = Form1.RC4HMACDecrypt(xmacsLogonKey, 16, data1, 210, 8);
- byte[] numArray3 = new byte[16];
- System.IO.File.WriteAllBytes(str8 + "test.bin", bytes2);
- Array.Copy((Array) bytes2, 27, (Array) numArray3, 0, 16);
- this.richTextBox2.AppendText("Setting TGS ticket...");
- byte[] numArray4 = new byte[345];
- Array.Copy((Array) bytes1, 168, (Array) numArray4, 0, 345);
- byte[] numArray5 = System.IO.File.ReadAllBytes(str8 + "TGSREQ.bin");
- Array.Copy((Array) numArray4, 0, (Array) numArray5, 437, 345);
- byte[] data2 = System.IO.File.ReadAllBytes(str8 + "authenticator.bin");
- Array.Copy((Array) clientName, 0, (Array) data2, 40, 15);
- Encoding ascii3 = Encoding.ASCII;
- DateTime dateTime = DateTime.Now;
- dateTime = dateTime.ToUniversalTime();
- string string2 = dateTime.ToString("yyyyMMddHHmmssZ");
- Array.Copy((Array) ascii3.GetBytes(string2), 0, (Array) data2, 109, 15);
- Array.Copy((Array) MD5.Create().ComputeHash(numArray5, 954, 75), 0, (Array) data2, 82, 16);
- Array.Copy((Array) Form1.RC4HMACEncrypt(numArray3, 16, data2, data2.Length, 7), 0, (Array) numArray5, 799, 153);
- byte[] kdcNoonce = Form1.ComputeKdcNoonce(numArray3, 16);
- byte[] data3 = System.IO.File.ReadAllBytes(str8 + "servicereq.bin");
- Array.Copy((Array) Form1.RC4HMACEncrypt(kdcNoonce, 16, data3, data3.Length, 1201), 0, (Array) numArray5, 55, 150);
- byte[] titleData = new byte[66];
- Array.Copy((Array) dgram2, 116, (Array) titleData, 0, 66);
- Array.Copy((Array) Form1.GetTitleAuthData(numArray3, 16, titleData), 0, (Array) numArray5, 221, 82);
- this.richTextBox2.AppendText("Sending our TGS-REQ...");
- UdpClient udpClient3 = new UdpClient();
- udpClient3.Connect("XETGS.XBOXLIVE.COM", 88);
- udpClient3.Send(numArray5, numArray5.Length);
- remoteEP = new IPEndPoint(0L, 0);
- byte[] bytes3;
- while (true)
- {
- try
- {
- Thread.Sleep(10);
- if (udpClient3.Available > 0)
- {
- bytes3 = udpClient3.Receive(ref remoteEP);
- break;
- }
- Thread.Sleep(50);
- this.richTextBox2.AppendText("server timeout.. retrying...");
- udpClient3.Send(numArray5, numArray5.Length);
- }
- catch (Exception ex)
- {
- }
- }
- this.richTextBox2.AppendText("Got TGS-REP...");
- System.IO.File.WriteAllBytes(str8 + "tgsres.bin", bytes3);
- this.richTextBox2.AppendText("Decrypting Logon status...");
- byte[] data4 = new byte[84];
- Array.Copy((Array) bytes3, 50, (Array) data4, 0, 84);
- byte[] numArray6 = Form1.RC4HMACDecrypt(kdcNoonce, 16, data4, 84, 1202);
- byte[] data5 = new byte[208];
- Array.Copy((Array) bytes3, 58, (Array) data5, 0, 208);
- byte[] bytes4 = Form1.RC4HMACDecrypt(kdcNoonce, 16, data5, 208, 1202);
- System.IO.File.WriteAllBytes(str8 + "resp.bin", bytes4);
- uint uint32 = BitConverter.ToUInt32(numArray6, 8);
- this.richTextBox2.AppendText("Logon Status: " + uint32.ToString("X2"));
- if ((int) uint32 != -2146100979)
- {
- this.nsLabel9.Value2 = " 0x" + uint32.ToString("X2") + " (Unbanned)";
- if (MsgBox.Show("KV is unbanned, would you like to send it to your console?", "Quick Question", MsgBox.Buttons.YesNo, MsgBox.Icon.Question, MsgBox.AnimateStyle.FadeIn) == DialogResult.Yes)
- {
- openFileDialog.Dispose();
- endianIo2.Close();
- this.sendkvtojtag();
- }
- }
- else
- this.nsLabel9.Value2 = " 0x" + uint32.ToString("X2") + " (Banned)";
- this.richTextBox2.AppendText("Took " + (object) (DateTime.Now - now).Seconds + " second(s)! =P");
- openFileDialog.Dispose();
- endianIo2.Close();
- }
- private void sendkvtojtag()
- {
- if (this.jtagconnected)
- {
- // ISSUE: reference to a compiler-generated method
- this.Jtag.SendFile(this.kvdir, "HDD:\\KV.bin");
- int num = (int) MsgBox.Show("KV has been sent to your console", "Success", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- }
- else
- {
- int num1 = (int) MsgBox.Show("Please connect to your console first (This can be done in the settings tab)", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- }
- }
- private void nsButton2_Click(object sender, EventArgs e)
- {
- this.richTextBox2.Clear();
- this.richTextBox3.Clear();
- OpenFileDialog openFileDialog = new OpenFileDialog();
- openFileDialog.Filter = "bin files (*.bin)|*.bin|All files (*.*)|*.*";
- openFileDialog.FilterIndex = 2;
- openFileDialog.RestoreDirectory = true;
- openFileDialog.FileName = "";
- openFileDialog.Title = "Select KV";
- int num1 = (int) openFileDialog.ShowDialog();
- if (!(openFileDialog.FileName != ""))
- return;
- string fileName = openFileDialog.FileName;
- this.kvdir = fileName;
- this.kvtosend = openFileDialog.FileName;
- FileInfo fileInfo = new FileInfo(openFileDialog.FileName);
- string string1 = fileInfo.Length.ToString();
- float num2 = 0.0f;
- if (string1.Length > 3)
- num2 = (float) (fileInfo.Length / 1L);
- Convert.ToString(num2);
- if ((double) num2 == 16352.0)
- this.artoung = "-16";
- if ((double) num2 == 16368.0)
- this.artoung = "0";
- if ((double) num2 == 16384.0)
- this.artoung = "16";
- DateTime now = DateTime.Now;
- string path = AppDomain.CurrentDomain.BaseDirectory + "KVs\\";
- string str1 = AppDomain.CurrentDomain.BaseDirectory + "files\\";
- Directory.GetFiles(path);
- byte[] xmacsLogonKey = Form1.GetXmacsLogonKey(fileName);
- if (xmacsLogonKey == null)
- {
- this.richTextBox3.SelectionColor = Color.Cyan;
- this.richTextBox3.AppendText(fileName + " skipped\r\n");
- this.richTextBox3.Update();
- }
- Form1.EndianIO endianIo1 = new Form1.EndianIO(fileName, Form1.EndianType.BigEndian);
- endianIo1.Open();
- int int32 = Convert.ToInt32(this.artoung, 10);
- endianIo1.In.BaseStream.Position = (long) (3186 + int32);
- endianIo1.In.BaseStream.Position = (long) (160 + int32);
- string str2 = " " + this.HexString2Ascii(Form1.conversions.HexToAscii(endianIo1.In.ReadBytes(12)));
- endianIo1.Close();
- Form1.EndianIO endianIo2 = new Form1.EndianIO(fileName, Form1.EndianType.BigEndian);
- endianIo2.Open();
- endianIo2.In.BaseStream.Position = 2506L;
- byte[] ConsoleId = endianIo2.In.ReadBytes(5);
- endianIo2.In.BaseStream.Position = 2504L;
- byte[] hash = SHA1.Create().ComputeHash(endianIo2.In.ReadBytes(168));
- byte[] dgram1 = System.IO.File.ReadAllBytes(str1 + "apreq1.bin");
- byte[] clientName = Form1.ComputeClientName(ConsoleId);
- this.richTextBox2.AppendText("Attempting logon for \"" + Encoding.ASCII.GetString(clientName) + "\"...\r\n");
- this.richTextBox2.AppendText("Creating Kerberos AS-REQ...\r\n");
- this.richTextBox2.Update();
- Array.Copy((Array) clientName, 0, (Array) dgram1, 258, 24);
- Array.Copy((Array) hash, 0, (Array) dgram1, 36, 20);
- byte[] timeStamp1 = Form1.GenerateTimeStamp();
- Array.Copy((Array) Form1.RC4HMACEncrypt(xmacsLogonKey, 16, timeStamp1, timeStamp1.Length, 1), 0, (Array) dgram1, 176, 52);
- UdpClient udpClient1 = new UdpClient();
- udpClient1.Connect("XEAS.gtm.XBOXLIVE.COM", 88);
- udpClient1.Send(dgram1, dgram1.Length);
- this.richTextBox2.AppendText("Sending Kerberos AS-REQ...\r\n");
- this.richTextBox2.Update();
- IPEndPoint remoteEP1 = new IPEndPoint(0L, 0);
- byte[] numArray1;
- while (true)
- {
- try
- {
- Thread.Sleep(10);
- if (udpClient1.Available > 0)
- {
- numArray1 = udpClient1.Receive(ref remoteEP1);
- break;
- }
- udpClient1.Send(dgram1, dgram1.Length);
- }
- catch (Exception ex)
- {
- }
- }
- udpClient1.Close();
- this.richTextBox2.AppendText("AS replied wanting pre-auth data...\r\n");
- this.richTextBox2.Update();
- this.richTextBox2.AppendText("Creating new Kerberos AS-REQ...\r\n");
- this.richTextBox2.Update();
- byte[] numArray2 = new byte[16];
- Array.Copy((Array) numArray1, numArray1.Length - 16, (Array) numArray2, 0, 16);
- byte[] dgram2 = System.IO.File.ReadAllBytes(str1 + "apreq2.bin");
- Array.Copy((Array) clientName, 0, (Array) dgram2, 286, 24);
- Array.Copy((Array) hash, 0, (Array) dgram2, 36, 20);
- byte[] timeStamp2 = Form1.GenerateTimeStamp();
- Array.Copy((Array) Form1.RC4HMACEncrypt(xmacsLogonKey, 16, timeStamp2, timeStamp2.Length, 1), 0, (Array) dgram2, 204, 52);
- Array.Copy((Array) numArray2, 0, (Array) dgram2, 68, 16);
- UdpClient udpClient2 = new UdpClient();
- udpClient2.Connect("XEAS.XBOXLIVE.COM", 88);
- udpClient2.Send(dgram2, dgram2.Length);
- this.richTextBox2.AppendText("Sending Kerberos AS-REQ...\r\n");
- this.richTextBox2.Update();
- byte[] bytes1;
- while (true)
- {
- try
- {
- Thread.Sleep(10);
- if (udpClient2.Available > 0)
- {
- bytes1 = udpClient2.Receive(ref remoteEP1);
- break;
- }
- Thread.Sleep(50);
- this.richTextBox2.AppendText("server timeout.. retrying...\r\n");
- this.richTextBox2.Update();
- udpClient2.Send(dgram2, dgram2.Length);
- }
- catch (Exception ex)
- {
- }
- }
- udpClient2.Close();
- System.IO.File.WriteAllBytes(str1 + "APRESP.bin", bytes1);
- this.richTextBox2.AppendText("Got AS-REP...\r\n");
- this.richTextBox2.Update();
- this.richTextBox2.AppendText("Decrypting our session key...\r\n");
- this.richTextBox2.Update();
- this.richTextBox2.AppendText("Creating Kerberos TGS-REQ...\r\n");
- this.richTextBox2.Update();
- byte[] data1 = new byte[210];
- Array.Copy((Array) bytes1, bytes1.Length - 210, (Array) data1, 0, 210);
- byte[] bytes2 = Form1.RC4HMACDecrypt(xmacsLogonKey, 16, data1, 210, 8);
- byte[] numArray3 = new byte[16];
- System.IO.File.WriteAllBytes(str1 + "test.bin", bytes2);
- Array.Copy((Array) bytes2, 27, (Array) numArray3, 0, 16);
- this.richTextBox2.AppendText("Setting TGS ticket...\r\n");
- this.richTextBox2.Update();
- byte[] numArray4 = new byte[345];
- Array.Copy((Array) bytes1, 168, (Array) numArray4, 0, 345);
- byte[] numArray5 = System.IO.File.ReadAllBytes(str1 + "TGSREQ.bin");
- Array.Copy((Array) numArray4, 0, (Array) numArray5, 437, 345);
- byte[] data2 = System.IO.File.ReadAllBytes(str1 + "authenticator.bin");
- Array.Copy((Array) clientName, 0, (Array) data2, 40, 15);
- Encoding ascii = Encoding.ASCII;
- DateTime dateTime = DateTime.Now;
- dateTime = dateTime.ToUniversalTime();
- string string2 = dateTime.ToString("yyyyMMddHHmmssZ");
- Array.Copy((Array) ascii.GetBytes(string2), 0, (Array) data2, 109, 15);
- Array.Copy((Array) MD5.Create().ComputeHash(numArray5, 954, 75), 0, (Array) data2, 82, 16);
- Array.Copy((Array) Form1.RC4HMACEncrypt(numArray3, 16, data2, data2.Length, 7), 0, (Array) numArray5, 799, 153);
- byte[] kdcNoonce = Form1.ComputeKdcNoonce(numArray3, 16);
- byte[] data3 = System.IO.File.ReadAllBytes(str1 + "servicereq.bin");
- Array.Copy((Array) Form1.RC4HMACEncrypt(kdcNoonce, 16, data3, data3.Length, 1201), 0, (Array) numArray5, 55, 150);
- byte[] titleData = new byte[66];
- Array.Copy((Array) dgram2, 116, (Array) titleData, 0, 66);
- Array.Copy((Array) Form1.GetTitleAuthData(numArray3, 16, titleData), 0, (Array) numArray5, 221, 82);
- this.richTextBox2.AppendText("Sending our TGS-REQ...\r\n");
- this.richTextBox2.Update();
- UdpClient udpClient3 = new UdpClient();
- udpClient3.Connect("XETGS.XBOXLIVE.COM", 88);
- udpClient3.Send(numArray5, numArray5.Length);
- IPEndPoint remoteEP2 = new IPEndPoint(0L, 0);
- byte[] bytes3;
- while (true)
- {
- try
- {
- Thread.Sleep(10);
- if (udpClient3.Available > 0)
- {
- bytes3 = udpClient3.Receive(ref remoteEP2);
- break;
- }
- Thread.Sleep(50);
- this.richTextBox2.AppendText("server timeout.. retrying...\r\n");
- this.richTextBox2.Update();
- udpClient3.Send(numArray5, numArray5.Length);
- }
- catch (Exception ex)
- {
- }
- }
- this.richTextBox2.AppendText("Got TGS-REP...\r\n");
- this.richTextBox2.Update();
- System.IO.File.WriteAllBytes(str1 + "tgsres.bin", bytes3);
- this.richTextBox2.AppendText("Decrypting Logon status...\r\n");
- this.richTextBox2.Update();
- byte[] data4 = new byte[84];
- Array.Copy((Array) bytes3, 50, (Array) data4, 0, 84);
- byte[] numArray6 = Form1.RC4HMACDecrypt(kdcNoonce, 16, data4, 84, 1202);
- byte[] data5 = new byte[208];
- Array.Copy((Array) bytes3, 58, (Array) data5, 0, 208);
- byte[] bytes4 = Form1.RC4HMACDecrypt(kdcNoonce, 16, data5, 208, 1202);
- System.IO.File.WriteAllBytes(str1 + "resp.bin", bytes4);
- uint uint32 = BitConverter.ToUInt32(numArray6, 8);
- this.richTextBox2.AppendText("Logon Status: " + uint32.ToString("X2") + "\r\n");
- this.richTextBox2.Update();
- if ((int) uint32 != -2146100979)
- {
- this.richTextBox2.AppendText(fileName + " Serial (" + str2 + " ) is unbanned :D");
- this.richTextBox3.SelectionColor = Color.LimeGreen;
- this.richTextBox3.AppendText(fileName + " Serial (" + str2 + " ) is unbanned\r\n");
- this.richTextBox3.Update();
- if (MsgBox.Show("KV is unbanned, would you like to send it to your console?", "Quick Question", MsgBox.Buttons.YesNo, MsgBox.Icon.Question, MsgBox.AnimateStyle.FadeIn) == DialogResult.Yes)
- {
- openFileDialog.Dispose();
- endianIo2.Close();
- this.sendkvtojtag();
- }
- }
- else
- {
- this.richTextBox2.AppendText(fileName + " Serial (" + str2 + " ) is banned :(");
- this.richTextBox3.SelectionColor = Color.Red;
- this.richTextBox3.AppendText(fileName + " Serial (" + str2 + " ) is banned\r\n");
- this.richTextBox3.Update();
- Thread.Sleep(500);
- }
- openFileDialog.Dispose();
- endianIo2.Close();
- }
- private void nsGroupBox6_Click(object sender, EventArgs e)
- {
- }
- private void nsButton12_Click(object sender, EventArgs e)
- {
- try
- {
- if (MsgBox.Show("Have you already loaded a KV that has a cpukey.txt file in the same folder", "Quick Question", MsgBox.Buttons.YesNo, MsgBox.Icon.Question, MsgBox.AnimateStyle.FadeIn) == DialogResult.Yes)
- {
- StreamReader streamReader = new StreamReader(Path.GetDirectoryName(this.kvdir) + "\\cpukey.txt");
- string end = streamReader.ReadToEnd();
- streamReader.Close();
- System.IO.File.WriteAllBytes(Path.GetDirectoryName(this.kvdir) + "\\CPUKey.bin", Form1.StringToByteArray(end));
- if (System.IO.File.Exists(AppDomain.CurrentDomain.BaseDirectory + "\\CPUKey.bin"))
- System.IO.File.Delete(AppDomain.CurrentDomain.BaseDirectory + "\\CPUKey.bin");
- System.IO.File.Copy(Path.GetDirectoryName(this.kvdir) + "\\CPUKey.bin", AppDomain.CurrentDomain.BaseDirectory + "\\CPUKey.bin");
- int num = (int) MsgBox.Show("CPUKey.bin has been created and is located at " + AppDomain.CurrentDomain.BaseDirectory + "\\CPUKey.bin", "Information", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- }
- else
- {
- OpenFileDialog openFileDialog = new OpenFileDialog();
- openFileDialog.Filter = "text files (*.text)|*.text|All files (*.*)|*.*";
- openFileDialog.FilterIndex = 2;
- openFileDialog.RestoreDirectory = true;
- openFileDialog.FileName = "";
- openFileDialog.Title = "Select cpukey.txt";
- int num = (int) openFileDialog.ShowDialog();
- if (!(openFileDialog.FileName != ""))
- return;
- StreamReader streamReader = new StreamReader(openFileDialog.FileName);
- string end = streamReader.ReadToEnd();
- streamReader.Close();
- System.IO.File.WriteAllBytes(Path.GetDirectoryName(openFileDialog.FileName) + "\\CPUKey.bin", Form1.StringToByteArray(end));
- if (System.IO.File.Exists(AppDomain.CurrentDomain.BaseDirectory + "\\CPUKey.bin"))
- System.IO.File.Delete(AppDomain.CurrentDomain.BaseDirectory + "\\CPUKey.bin");
- System.IO.File.Copy(Path.GetDirectoryName(openFileDialog.FileName) + "\\CPUKey.bin", AppDomain.CurrentDomain.BaseDirectory + "\\CPUKey.bin");
- }
- if (MsgBox.Show("Would you like to connect to your console and send the KV.bin and CPUKey.bin to your HDD?", "Quick Question", MsgBox.Buttons.YesNo, MsgBox.Icon.Question, MsgBox.AnimateStyle.FadeIn) == DialogResult.No)
- return;
- if (this.jtagconnected)
- {
- if (MsgBox.Show("Do you have a KV loaded in this application?", "Quick Question", MsgBox.Buttons.YesNo, MsgBox.Icon.Question, MsgBox.AnimateStyle.FadeIn) == DialogResult.Yes)
- {
- // ISSUE: reference to a compiler-generated method
- this.Jtag.SendFile(AppDomain.CurrentDomain.BaseDirectory + "\\CPUKey.bin", "HDD:\\CPUKey.bin");
- // ISSUE: reference to a compiler-generated method
- this.Jtag.SendFile(this.kvdir, "HDD:\\KV.bin");
- int num = (int) MsgBox.Show("KV.bin and CPUKey.bin sent to console.", "Success", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- }
- else
- {
- OpenFileDialog openFileDialog = new OpenFileDialog();
- openFileDialog.Filter = "Bin files (*.bin)|*.bin|All files (*.*)|*.*";
- openFileDialog.FilterIndex = 2;
- openFileDialog.RestoreDirectory = true;
- openFileDialog.FileName = "";
- openFileDialog.Title = "Select KV.bin to send to console";
- int num1 = (int) openFileDialog.ShowDialog();
- if (!(openFileDialog.FileName != ""))
- return;
- // ISSUE: reference to a compiler-generated method
- this.Jtag.SendFile(AppDomain.CurrentDomain.BaseDirectory + "\\CPUKey.bin", "HDD:\\CPUKey.bin");
- // ISSUE: reference to a compiler-generated method
- this.Jtag.SendFile(openFileDialog.FileName, "HDD:\\KV.bin");
- int num2 = (int) MsgBox.Show("KV.bin and CPUKey.bin sent to console.", "Success", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- }
- }
- else
- {
- int num3 = (int) MsgBox.Show("Please connect to your console first (This can be done in the settings tab)", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- }
- }
- catch (Exception ex)
- {
- int num = (int) MsgBox.Show("Application has ran in to an error :(", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- }
- }
- private void nsButton10_Click(object sender, EventArgs e)
- {
- if (this.nsComboBox7.SelectedIndex == 0)
- this.sPath = "launch.ini";
- if (this.nsComboBox7.SelectedIndex == 1)
- this.sPath = "JRPC.ini";
- if (this.nsComboBox7.SelectedIndex == 2)
- this.sPath = "rgloader.ini";
- if (this.jtagconnected)
- {
- try
- {
- StreamWriter streamWriter = new StreamWriter(this.sPath);
- foreach (NSListView.NSListViewItem nsListViewItem in this.nsListView1.Items)
- streamWriter.WriteLine((object) nsListViewItem);
- streamWriter.Close();
- if (this.nsComboBox7.SelectedIndex == 0)
- {
- // ISSUE: reference to a compiler-generated method
- this.Jtag.SendFile(AppDomain.CurrentDomain.BaseDirectory + "\\launch.ini", this.nsComboBox2.SelectedItem.ToString() + "launch.ini");
- System.IO.File.Delete(AppDomain.CurrentDomain.BaseDirectory + "\\launch.ini");
- }
- if (this.nsComboBox7.SelectedIndex == 1)
- {
- // ISSUE: reference to a compiler-generated method
- this.Jtag.SendFile(AppDomain.CurrentDomain.BaseDirectory + "\\JRPC.ini", this.nsComboBox2.SelectedItem.ToString() + "JRPC.ini");
- System.IO.File.Delete(AppDomain.CurrentDomain.BaseDirectory + "\\JRPC.ini");
- }
- if (this.nsComboBox7.SelectedIndex == 2)
- {
- // ISSUE: reference to a compiler-generated method
- this.Jtag.SendFile(AppDomain.CurrentDomain.BaseDirectory + "\\rgloader.ini", this.nsComboBox2.SelectedItem.ToString() + "rgloader.ini");
- System.IO.File.Delete(AppDomain.CurrentDomain.BaseDirectory + "\\rgloader.ini");
- }
- if (MsgBox.Show("The edited .ini has been sent to your console, would you like to reboot?", "Confirmation", MsgBox.Buttons.YesNo, MsgBox.Icon.Question, MsgBox.AnimateStyle.FadeIn) == DialogResult.Yes)
- {
- // ISSUE: reference to a compiler-generated method
- // this.Jtag.Reboot((string) null, (string) null, (string) null, XboxRebootFlags.Cold);
- }
- }
- catch (Exception ex)
- {
- int num = (int) MsgBox.Show("Failed to send .ini to your console, it has still been saved locally in the folder of this app.", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- }
- }
- else
- {
- int num1 = (int) MsgBox.Show("Please connect to your console first (This can be done in the settings tab)", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- }
- }
- private void nsButton9_Click(object sender, EventArgs e)
- {
- }
- private void nsButton13_Click_1(object sender, EventArgs e)
- {
- int num1 = (int) MsgBox.Show("Welcome to FederationHax Jtag / Rgh Tool. \nMade By: FederationHax.", "About", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- int num2 = (int) MsgBox.Show("Thanks to HEX 1A4 for the Original idea and for the kv checker source.", "About Page Two", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- }
- private void nsButton3_Click(object sender, EventArgs e)
- {
- }
- private void tabPage4_Click(object sender, EventArgs e)
- {
- }
- private void nsButton3_Click_1(object sender, EventArgs e)
- {
- }
- private void nsListView2_Click(object sender, EventArgs e)
- {
- }
- private static string SizeSuffix(long value)
- {
- if (value < 0L)
- return "-" + Form1.SizeSuffix(-value);
- if (value == 0L)
- return "0.0 bytes";
- int index = (int) Math.Log((double) value, 1024.0);
- return string.Format("{0:n1} {1}", (object) ((Decimal) value / (Decimal) (1L << index * 10)), (object) Form1.SizeSuffixes[index]);
- }
- private void nsButton9_Click_1(object sender, EventArgs e)
- {
- label_0:
- try
- {
- if (this.jtagconnected)
- {
- this.cleanlistview2();
- // ISSUE: variable of a compiler-generated type
- IXboxDebugTarget debugTarget = this.Jtag.DebugTarget;
- if (!this.connected)
- {
- // ISSUE: reference to a compiler-generated method
- // debugTarget.ConnectAsDebugger(((IXboxConsole) this.Jtag).XboxIP(), XboxDebugConnectFlags.Force);
- this.connected = true;
- }
- int num1 = 0;
- // foreach (IXboxModule module in debugTarget.Modules)
- {
- // ISSUE: reference to a compiler-generated field
- // string @string = module[].CheckSum.ToString();
- // ISSUE: reference to a compiler-generated field
- // string text = module[].FullName;
- // ISSUE: reference to a compiler-generated field
- // uint num2 = module[].BaseAddress;
- // ISSUE: reference to a compiler-generated field
- // long num3 = (long) module[].Size;
- // ISSUE: reference to a compiler-generated method
- // uint entryPointAddress = module.GetEntryPointAddress();
- // ISSUE: variable of a compiler-generated type
- // XBOX_FUNCTION_INFO FunctionInfo;
- // ISSUE: reference to a compiler-generated method
- // module.GetFunctionInfo(entryPointAddress, out FunctionInfo);
- ++num1;
- this.nsProgressBar1.Value = (int) ((Decimal) num1 / new Decimal(100));
- // int hashCode = module.GetHashCode();
- // this.nsListView3.AddItem(text, "0x" + num2.ToString("X"), "0x" + entryPointAddress.ToString("X"), Form1.SizeSuffix(num3).ToString(), hashCode.ToString(), @string);
- }
- // ISSUE: variable of a compiler-generated type
- XBOX_PROCESS_INFO runningProcessInfo = this.Jtag.RunningProcessInfo;
- // ISSUE: reference to a compiler-generated field
- this.nsLabel2.Value2 = " " + runningProcessInfo.ProgramName;
- this.nsLabel15.Value2 = " " + num1.ToString();
- this.nsProgressBar1.Value = 100;
- int num4 = (int) MsgBox.Show("All module information has been loaded", "Info", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- }
- else
- {
- int num = (int) MsgBox.Show("Please connect to your console first (This can be done in the settings tab)", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- }
- }
- catch (Exception ex)
- {
- if (!ex.ToString().Contains("0x82DA0101"))
- {
- int num = (int) MsgBox.Show("Application has ran in to an error :(", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- }
- else
- goto label_0;
- }
- }
- private void tabPage1_Click(object sender, EventArgs e)
- {
- }
- private void nsButton14_Click(object sender, EventArgs e)
- {
- int num1 = (int) MsgBox.Show("Please choose a folder where your KV's are located like this ex: KV's/Folder/kv.bin this tool will move all the kv's out of their folders and rename them.", "Info", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog();
- folderBrowserDialog.Description = "Choose KV Folder You Wish To Check";
- int num2 = (int) folderBrowserDialog.ShowDialog();
- foreach (string directory in Directory.GetDirectories(folderBrowserDialog.SelectedPath))
- {
- DirectoryInfo directoryInfo = new DirectoryInfo(directory);
- if (System.IO.File.Exists(folderBrowserDialog.SelectedPath + "\\" + directoryInfo.Name + "\\KV.bin"))
- {
- this.richTextBox2.AppendText(folderBrowserDialog.SelectedPath + "\\" + directoryInfo.Name + "\\KV.bin FOUND\r\n");
- if (System.IO.File.Exists(this.path + "\\KVs\\" + Settings.Default.KVName + directoryInfo.Name + ".bin"))
- {
- System.IO.File.Delete(this.path + "\\KVs\\" + Settings.Default.KVName + directoryInfo.Name + ".bin");
- System.IO.File.Copy(folderBrowserDialog.SelectedPath + "\\" + directoryInfo.Name + "\\KV.bin", this.path + "\\KVs\\" + Settings.Default.KVName + directoryInfo.Name + ".bin");
- }
- else
- System.IO.File.Copy(folderBrowserDialog.SelectedPath + "\\" + directoryInfo.Name + "\\KV.bin", this.path + "\\KVs\\" + Settings.Default.KVName + directoryInfo.Name + ".bin");
- }
- else
- {
- this.TextBox1.AppendText(folderBrowserDialog.SelectedPath + "\\" + directoryInfo.Name + "\\KV.bin NOT FOUND\r\n");
- try
- {
- System.IO.File.Copy(folderBrowserDialog.SelectedPath + "\\" + directoryInfo.Name + "\\KV.bin", this.path + "\\KVs\\KV_dec" + directoryInfo.Name + ".bin");
- }
- catch (Exception ex)
- {
- }
- }
- }
- }
- private void nsListView3_DoubleClick(object sender, EventArgs e)
- {
- }
- private void richTextBox3_TextChanged(object sender, EventArgs e)
- {
- this.richTextBox3.SelectionStart = this.richTextBox3.Text.Length;
- this.richTextBox3.ScrollToCaret();
- }
- private void nsControlButton1_Click(object sender, EventArgs e)
- {
- }
- private void nsButton15_Click(object sender, EventArgs e)
- {
- if (!this.jtagconnected)
- return;
- int num1 = (int) MsgBox.Show("Please be patient, it may take a while to grab your filesystem.", "Please Wait", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- // ISSUE: reference to a compiler-generated method
- // ISSUE: variable of a compiler-generated type
- // IXboxFiles xboxFiles1 = this.Jtag.DirectoryFiles("HDD:\\");
- // for (int index1 = 0; index1 < xboxFiles1.Count; ++index1)
- {
- Thread.Sleep(300);
- // ISSUE: variable of a compiler-generated type
- // IXboxFile xboxFile1 = xboxFiles1[index1];
- // ISSUE: reference to a compiler-generated method
- // ISSUE: variable of a compiler-generated type
- // IXboxFile fileObject = this.Jtag.GetFileObject(xboxFile1[]);
- // if (fileObject.IsDirectory)
- {
- // ISSUE: reference to a compiler-generated method
- // ISSUE: variable of a compiler-generated type
- // IXboxFiles xboxFiles2 = this.Jtag.DirectoryFiles(fileObject[]);
- // TreeNode treeNode = this.treeView2.Nodes[0].Nodes.Add(fileObject[]);
- // for (int index2 = 0; index2 < xboxFiles2.Count; ++index2)
- {
- // ISSUE: variable of a compiler-generated type
- // IXboxFile xboxFile2 = xboxFiles2[index2];
- // this.treeView2.Nodes[0].Nodes[treeNode.Index].Nodes.Add(xboxFile2[]);
- }
- // }
- else
- // this.treeView2.Nodes[0].Nodes.Add(xboxFile1[]);
- }
- int num2 = (int) MsgBox.Show("Finished reading filesystem.", "Done", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- }
- private void copyBaseAddressToolStripMenuItem_Click(object sender, EventArgs e)
- {
- NSListView.NSListViewItem[] selectedItems = this.nsListView3.SelectedItems;
- try
- {
- Clipboard.SetText(selectedItems[0].SubItems[0].Text);
- }
- catch
- {
- int num = (int) MsgBox.Show("Make sure you select something first. (Left click on the item before you right click)", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- }
- }
- private void copyEntryAddressToolStripMenuItem_Click(object sender, EventArgs e)
- {
- NSListView.NSListViewItem[] selectedItems = this.nsListView3.SelectedItems;
- try
- {
- Clipboard.SetText(selectedItems[0].SubItems[1].Text);
- }
- catch
- {
- int num = (int) MsgBox.Show("Make sure you select something first. (Left click on the item before you right click)", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- }
- }
- private void copyCRC32HashToolStripMenuItem_Click(object sender, EventArgs e)
- {
- NSListView.NSListViewItem[] selectedItems = this.nsListView3.SelectedItems;
- try
- {
- Clipboard.SetText(selectedItems[0].SubItems[3].Text);
- }
- catch
- {
- int num = (int) MsgBox.Show("Make sure you select something first. (Left click on the item before you right click)", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- }
- }
- private void nsListView3_MouseUp(object sender, MouseEventArgs e)
- {
- }
- private void nsButton3_Click_2(object sender, EventArgs e)
- {
- FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog();
- folderBrowserDialog.Description = "Choose Folder You Wish To Transfer Unbanned KV's To";
- int num1 = (int) folderBrowserDialog.ShowDialog();
- int num2 = 0;
- int length = ((IEnumerable<string>) this.richTextBox3.Lines).Count<string>();
- string[] strArray1 = new string[length];
- string[] strArray2 = new string[length];
- string[] strArray3 = new string[length];
- for (int line = 0; line < length; ++line)
- {
- string[] strArray4 = this.GetLine(this.path + "\\KVs\\log.txt", line).Split('=');
- if (strArray4 != null)
- {
- strArray1[line] = strArray4[0];
- strArray3[line] = strArray4[1];
- if (System.IO.File.Exists(strArray1[line]) && strArray3[line] == " unbanned")
- {
- ++num2;
- string fileName = Path.GetFileName(strArray1[line]);
- if (!System.IO.File.Exists(folderBrowserDialog.SelectedPath + "\\" + fileName))
- System.IO.File.Copy(strArray1[line], folderBrowserDialog.SelectedPath + "\\" + fileName);
- }
- }
- }
- int num3 = (int) MsgBox.Show("All " + (num2 - 1).ToString() + " unbanned keyvaults have been moved", "Success", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- this.richTextBox2.Clear();
- this.richTextBox3.Clear();
- }
- private void nsButton16_Click(object sender, EventArgs e)
- {
- }
- private void toolStripMenuItem2_Click(object sender, EventArgs e)
- {
- bool flag = false;
- NSListView.NSListViewItem[] selectedItems = this.nsListView2.SelectedItems;
- try
- {
- // ISSUE: reference to a compiler-generated method
- // ISSUE: variable of a compiler-generated type
- // IXboxFiles xboxFiles1 = this.Jtag.DirectoryFiles(selectedItems[0].SubItems[0].Text);
- // for (int index1 = 0; index1 < xboxFiles1.Count; ++index1)
- {
- // ISSUE: variable of a compiler-generated type
- // IXboxFile xboxFile1 = xboxFiles1[index1];
- // ISSUE: reference to a compiler-generated method
- // ISSUE: variable of a compiler-generated type
- // IXboxFile fileObject = this.Jtag.GetFileObject(xboxFile1[]);
- // if (fileObject.IsDirectory)
- {
- // ISSUE: reference to a compiler-generated method
- // ISSUE: variable of a compiler-generated type
- // IXboxFiles xboxFiles2 = this.Jtag.DirectoryFiles(fileObject[]);
- // for (int index2 = 0; index2 < xboxFiles2.Count; ++index2)
- {
- // ISSUE: variable of a compiler-generated type
- // IXboxFile xboxFile2 = xboxFiles2[index2];
- // if (xboxFile2[].Equals(fileObject[] + "\\default_mp.xex") || xboxFile1[].Equals(fileObject[] + "\\Default_mp.xex"))
- {
- // ISSUE: reference to a compiler-generated method
- // this.Jtag.Reboot(xboxFile2[], fileObject[], (string) null, XboxRebootFlags.Title);
- // int num = (int) MsgBox.Show("Launched " + selectedItems[0].Text, "Success!", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- flag = true;
- // break;
- }
- }
- //}
- // else if (xboxFile1[].Equals(selectedItems[0].SubItems[0].Text + "\\default_mp.xex") || xboxFile1[].Equals(selectedItems[0].SubItems[0].Text + "\\Default_mp.xex"))
- {
- // ISSUE: reference to a compiler-generated method
- // this.Jtag.Reboot(xboxFile1[], selectedItems[0].SubItems[0].Text, (string) null, XboxRebootFlags.Title);
- int num = (int) MsgBox.Show("Launched " + selectedItems[0].Text, "Success!", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- flag = true;
- // break;
- }
- }
- if (!flag)
- {
- int num1 = (int) MsgBox.Show("Couldn't find default_mp.xex in specified folder.", "Sorry", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- // }
- // }
- catch
- {
- int num = (int) MsgBox.Show("Make sure you select something first. (Left click on the item before you right click)", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- }
- }
- private void toolStripMenuItem1_Click(object sender, EventArgs e)
- {
- bool flag = false;
- NSListView.NSListViewItem[] selectedItems = this.nsListView2.SelectedItems;
- try
- {
- // ISSUE: reference to a compiler-generated method
- // ISSUE: variable of a compiler-generated type
- // IXboxFiles xboxFiles1 = this.Jtag.DirectoryFiles(selectedItems[0].SubItems[0].Text);
- // for (int index1 = 0; index1 < xboxFiles1.Count; ++index1)
- {
- // ISSUE: variable of a compiler-generated type
- // IXboxFile xboxFile1 = xboxFiles1[index1];
- // ISSUE: reference to a compiler-generated method
- // ISSUE: variable of a compiler-generated type
- // IXboxFile fileObject = this.Jtag.GetFileObject(xboxFile1[]);
- // if (fileObject.IsDirectory)
- {
- // ISSUE: reference to a compiler-generated method
- // ISSUE: variable of a compiler-generated type
- // IXboxFiles xboxFiles2 = this.Jtag.DirectoryFiles(fileObject[]);
- // for (int index2 = 0; index2 < xboxFiles2.Count; ++index2)
- {
- // ISSUE: variable of a compiler-generated type
- // IXboxFile xboxFile2 = xboxFiles2[index2];
- // if (xboxFile2[].Equals(fileObject[] + "\\default.xex") || xboxFile1[].Equals(fileObject[] + "\\Default.xex") || (xboxFile1[].Equals(fileObject[] + "\\DEFAULT.XEX") || xboxFile1[].Equals(fileObject[] + "\\DEFAULT.xex")))
- {
- // ISSUE: reference to a compiler-generated method
- // this.Jtag.Reboot(xboxFile2[], fileObject[], (string) null, XboxRebootFlags.Title);
- // int num = (int) MsgBox.Show("Launched " + selectedItems[0].Text, "Success!", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- flag = true;
- // break;
- }
- }
- // }
- // else if (xboxFile1[].Equals(selectedItems[0].SubItems[0].Text + "\\default.xex") || xboxFile1[].Equals(selectedItems[0].SubItems[0].Text + "\\Default.xex") || (xboxFile1[].Equals(selectedItems[0].SubItems[0].Text + "\\DEFAULT.XEX") || xboxFile1[].Equals(selectedItems[0].SubItems[0].Text + "\\DEFAULT.xex")))
- {
- // ISSUE: reference to a compiler-generated method
- // this.Jtag.Reboot(xboxFile1[], selectedItems[0].SubItems[0].Text, (string) null, XboxRebootFlags.Title);
- // int num = (int) MsgBox.Show("Launched " + selectedItems[0].Text, "Success!", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- // flag = true;
- // break;
- }
- }
- if (!flag)
- {
- int num1 = (int) MsgBox.Show("Couldn't find default.xex in specified folder.", "Sorry", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- // }
- //}
- catch
- {
- int num = (int) MsgBox.Show("Make sure you select something first. (Left click on the item before you right click)", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- }
- }
- private void nsListView2_Click_1(object sender, EventArgs e)
- {
- }
- private void launchDefaultxbeToolStripMenuItem_Click(object sender, EventArgs e)
- {
- bool flag = false;
- NSListView.NSListViewItem[] selectedItems = this.nsListView2.SelectedItems;
- try
- {
- // ISSUE: reference to a compiler-generated method
- // ISSUE: variable of a compiler-generated type
- // IXboxFiles xboxFiles1 = this.Jtag.DirectoryFiles(selectedItems[0].SubItems[0].Text);
- // for (int index1 = 0; index1 < xboxFiles1.Count; ++index1)
- {
- // ISSUE: variable of a compiler-generated type
- // IXboxFile xboxFile1 = xboxFiles1[index1];
- // ISSUE: reference to a compiler-generated method
- // ISSUE: variable of a compiler-generated type
- // IXboxFile fileObject = this.Jtag.GetFileObject(xboxFile1[]);
- // if (fileObject.IsDirectory)
- {
- // ISSUE: reference to a compiler-generated method
- // ISSUE: variable of a compiler-generated type
- // IXboxFiles xboxFiles2 = this.Jtag.DirectoryFiles(fileObject[]);
- // for (int index2 = 0; index2 < xboxFiles2.Count; ++index2)
- {
- // ISSUE: variable of a compiler-generated type
- // IXboxFile xboxFile2 = xboxFiles2[index2];
- // if (xboxFile2[].Equals(fileObject[] + "\\default.xbe") || xboxFile2[].Equals(fileObject[] + "\\Default.xbe"))
- {
- // ISSUE: reference to a compiler-generated method
- // this.Jtag.Reboot(xboxFile2[], fileObject[], (string) null, XboxRebootFlags.Title);
- int num = (int) MsgBox.Show("Launched " + selectedItems[0].Text, "Success!", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- flag = true;
- // break;
- }
- }
- // }
- // else if (xboxFile1[].Equals(selectedItems[0].SubItems[0].Text + "\\default.xbe") || xboxFile1[].Equals(selectedItems[0].SubItems[0].Text + "\\Default.xbe"))
- {
- // ISSUE: reference to a compiler-generated method
- // this.Jtag.Reboot(xboxFile1[], selectedItems[0].SubItems[0].Text, (string) null, XboxRebootFlags.Title);
- int num = (int) MsgBox.Show("Launched " + selectedItems[0].Text, "Success!", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- flag = true;
- // break;
- }
- }
- if (!flag)
- {
- int num1 = (int) MsgBox.Show("Couldn't find default.xex in specified folder.", "Sorry", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- // }
- // }
- catch
- {
- int num = (int) MsgBox.Show("Make sure you select something first. (Left click on the item before you right click)", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- }
- }
- private void nsTextBox2_TextChanged_1(object sender, EventArgs e)
- {
- }
- private void nsButton17_Click(object sender, EventArgs e)
- {
- }
- private void nsButton16_Click_1(object sender, EventArgs e)
- {
- this.backgroundWorker1.RunWorkerAsync();
- }
- private void nsOnOffBox1_CheckedChanged(object sender)
- {
- }
- private void nsButton7_Click(object sender, EventArgs e)
- {
- }
- private void nsButton17_Click_1(object sender, EventArgs e)
- {
- if (System.IO.File.Exists(Application.StartupPath + "\\items.txt"))
- System.IO.File.Delete(Application.StartupPath + "\\items.txt");
- TextWriter textWriter = (TextWriter) new StreamWriter(Application.StartupPath + "\\items.txt");
- foreach (NSListView.NSListViewItem nsListViewItem in this.nsListView2.Items)
- {
- textWriter.Write(nsListViewItem.Text + "/");
- textWriter.Write(nsListViewItem.SubItems.Count);
- foreach (NSListView.NSListViewSubItem subItem in nsListViewItem.SubItems)
- textWriter.Write(subItem.Text + ">");
- }
- textWriter.Close();
- }
- private void nsComboBox1_SelectedIndexChanged(object sender, EventArgs e)
- {
- switch (this.nsComboBox1.SelectedIndex)
- {
- case 0:
- Settings.Default["PartionIndex"] = (object) 0;
- Settings.Default.Save();
- break;
- case 1:
- Settings.Default["PartionIndex"] = (object) 1;
- Settings.Default.Save();
- break;
- case 2:
- Settings.Default["PartionIndex"] = (object) 2;
- Settings.Default.Save();
- break;
- case 3:
- Settings.Default["PartionIndex"] = (object) 3;
- Settings.Default.Save();
- break;
- case 4:
- Settings.Default["PartionIndex"] = (object) 4;
- Settings.Default.Save();
- break;
- }
- }
- private void nsComboBox2_SelectedIndexChanged(object sender, EventArgs e)
- {
- switch (this.nsComboBox2.SelectedIndex)
- {
- case 0:
- Settings.Default["LaunchIndex"] = (object) 0;
- Settings.Default.Save();
- break;
- case 1:
- Settings.Default["LaunchIndex"] = (object) 1;
- Settings.Default.Save();
- break;
- case 2:
- Settings.Default["LaunchIndex"] = (object) 2;
- Settings.Default.Save();
- break;
- case 3:
- Settings.Default["LaunchIndex"] = (object) 3;
- Settings.Default.Save();
- break;
- case 4:
- Settings.Default["LaunchIndex"] = (object) 4;
- Settings.Default.Save();
- break;
- }
- }
- private void nsButton18_Click(object sender, EventArgs e)
- {
- JRPC.LEDState Top_Left = JRPC.LEDState.RED;
- JRPC.LEDState Top_Right = JRPC.LEDState.RED;
- JRPC.LEDState Bottom_Left = JRPC.LEDState.GREEN;
- JRPC.LEDState Bottom_Right = JRPC.LEDState.GREEN;
- switch (this.nsComboBox3.SelectedIndex)
- {
- case 0:
- Top_Left = JRPC.LEDState.GREEN;
- break;
- case 1:
- Top_Left = JRPC.LEDState.OFF;
- break;
- case 2:
- Top_Left = JRPC.LEDState.ORANGE;
- break;
- case 3:
- Top_Left = JRPC.LEDState.RED;
- break;
- }
- switch (this.nsComboBox4.SelectedIndex)
- {
- case 0:
- Top_Right = JRPC.LEDState.GREEN;
- break;
- case 1:
- Top_Right = JRPC.LEDState.OFF;
- break;
- case 2:
- Top_Right = JRPC.LEDState.ORANGE;
- break;
- case 3:
- Top_Right = JRPC.LEDState.RED;
- break;
- }
- switch (this.nsComboBox5.SelectedIndex)
- {
- case 0:
- Bottom_Left = JRPC.LEDState.GREEN;
- break;
- case 1:
- Bottom_Left = JRPC.LEDState.OFF;
- break;
- case 2:
- Bottom_Left = JRPC.LEDState.ORANGE;
- break;
- case 3:
- Bottom_Left = JRPC.LEDState.RED;
- break;
- }
- switch (this.nsComboBox6.SelectedIndex)
- {
- case 0:
- Bottom_Right = JRPC.LEDState.GREEN;
- break;
- case 1:
- Bottom_Right = JRPC.LEDState.OFF;
- break;
- case 2:
- Bottom_Right = JRPC.LEDState.ORANGE;
- break;
- case 3:
- Bottom_Right = JRPC.LEDState.RED;
- break;
- }
- if (this.jtagconnected)
- {
- this.ledsmessedwith = true;
- // ((IXboxConsole) this.Jtag).SetLeds(Top_Left, Top_Right, Bottom_Left, Bottom_Right);
- }
- else
- {
- int num = (int) MsgBox.Show("Please connect to your console first (This can be done in the settings tab)", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- }
- }
- private void timer4_Tick(object sender, EventArgs e)
- {
- try
- {
- this.version = this.download.DownloadString(this.dlversion);
- if (!(new Version(this.version) > new Version(this.myversion)) || !this.jtagconnected)
- return;
- // ((IXboxConsole) this.Jtag).XNotify("There is an update out for JTAG Sidekick please check your application for update message!");
- if (MsgBox.Show("There is an update available, would you like to download it?", "Quick Question", MsgBox.Buttons.YesNo, MsgBox.Icon.Question, MsgBox.AnimateStyle.FadeIn) == DialogResult.Yes)
- {
- int num1 = (int) MsgBox.Show("Application will restart after update", "Info", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- try
- {
- System.IO.File.Move(this.path + "JTAG Sidekick.exe", "old.exe");
- this.download.DownloadFile("https://dl.dropbox.com/s/0wavybe0zcpyyjv/JTAG%20Sidekick.exe?dl=0", "JTAG Sidekick.exe");
- Process.Start(this.path + "JTAG Sidekick.exe");
- Environment.Exit(0);
- }
- catch (Exception ex)
- {
- int num2 = (int) MsgBox.Show("Update failed!", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- }
- }
- this.timer4.Stop();
- }
- catch (Exception ex)
- {
- }
- }
- private void nsGroupBox4_Click(object sender, EventArgs e)
- {
- }
- public static string fmt(double d)
- {
- if (d == (double) (long) d)
- return string.Format("%d", (object) (long) d);
- return string.Format("%s", (object) d);
- }
- private float GetTemperature(Form1.TEMP_INDEX sTempIndex)
- {
- // int num1 = (int) ((IXboxConsole) this.Jtag).ResolveFunction("xboxkrnl.exe", 41U);
- // uint Address = ((IXboxConsole) this.Jtag).ResolveFunction("xam.xex", 2601U) + 12288U;
- Array.Clear((Array) this.SMCMessage, 0, this.SMCMessage.Length);
- Array.Clear((Array) this.SMCReturn, 0, this.SMCReturn.Length);
- this.SMCMessage[0] = (byte) 7;
- // int num2 = (int) ((IXboxConsole) this.Jtag).Call<uint>("xboxkrnl.exe", 41, new object[2]{ (object) this.SMCMessage, (object) Address });
- // byte[] memory = ((IXboxConsole) this.Jtag).GetMemory(Address, 12U);
- // float num3 = (float) ((int) memory[(int) sTempIndex * 2 + 1] | (int) memory[(int) sTempIndex * 2 + 2] << 8) / 256f;
- // if (this.nsOnOffBox2.Checked)
- // num3 = (float) (1.79999995231628 * (double) num3 + 32.0);
- // return num3;
- }
- private void nsButton19_Click(object sender, EventArgs e)
- {
- if (this.jtagconnected)
- {
- // uint Address = ((IXboxConsole) this.Jtag).ResolveFunction("xam.xex", 2601U) + 12288U;
- this.jtagconnected = true;
- Array.Clear((Array) this.SMCMessage, 0, this.SMCMessage.Length);
- Array.Clear((Array) this.SMCReturn, 0, this.SMCReturn.Length);
- this.SMCMessage[0] = (byte) 18;
- // int num1 = (int) ((IXboxConsole) this.Jtag).Call<uint>("xboxkrnl.exe", 41, (object) this.SMCMessage, (object) Address, null);
- // byte[] memory = ((IXboxConsole) this.Jtag).GetMemory(Address, 4U);
- // this.nsLabel30.Value2 = " " + (object) memory[2] + "." + (object) memory[3];
- // this.nsLabel22.Value2 = " " + ((IXboxConsole) this.Jtag).GetCPUKey();
- // this.nsLabel23.Value2 = " " + ((IXboxConsole) this.Jtag).GetKernalVersion().ToString();
- // this.nsLabel28.Value2 = " " + ((IXboxConsole) this.Jtag).XboxIP();
- int num2 = (int) this.GetAVPack();
- switch (this.GetAVPack())
- {
- case Form1.AV_PACK.AV_COMPOSITETV:
- this.nsLabel34.Value2 = " Composite TV";
- break;
- case Form1.AV_PACK.AV_COMPOSITEHD:
- this.nsLabel34.Value2 = " Composite HDTV";
- break;
- case Form1.AV_PACK.AV_VGA:
- this.nsLabel34.Value2 = " VGA";
- break;
- case Form1.AV_PACK.AV_COMPONENT:
- this.nsLabel34.Value2 = " Component";
- break;
- case Form1.AV_PACK.AV_HDMIAUDIO:
- this.nsLabel34.Value2 = " HDMIw/Opt";
- break;
- case Form1.AV_PACK.AV_HDMI:
- this.nsLabel34.Value2 = " HDMI";
- break;
- }
- this.nsTrackBar1.Value = 45;
- float temperature1 = this.GetTemperature(Form1.TEMP_INDEX.GPU);
- float temperature2 = this.GetTemperature(Form1.TEMP_INDEX.CPU);
- float temperature3 = this.GetTemperature(Form1.TEMP_INDEX.MEM);
- float temperature4 = this.GetTemperature(Form1.TEMP_INDEX.BRD);
- if (!this.nsOnOffBox2.Checked)
- {
- this.nsLabel24.Value2 = " " + temperature1.ToString("0.0") + "°C";
- this.nsLabel25.Value2 = " " + temperature2.ToString("0.0") + "°C";
- this.nsLabel26.Value2 = " " + temperature3.ToString("0.0") + "°C";
- this.nsLabel27.Value2 = " " + temperature4.ToString("0.0") + "°C";
- }
- else
- {
- this.nsLabel24.Value2 = " " + temperature1.ToString("0.0") + "°F";
- this.nsLabel25.Value2 = " " + temperature2.ToString("0.0") + "°F";
- this.nsLabel26.Value2 = " " + temperature3.ToString("0.0") + "°F";
- this.nsLabel27.Value2 = " " + temperature4.ToString("0.0") + "°F";
- }
- }
- else
- {
- int num = (int) MsgBox.Show("Please connect to your console first (This can be done in the settings tab)", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- }
- }
- private void nsButton20_Click(object sender, EventArgs e)
- {
- if (this.jtagconnected)
- {
- if (MsgBox.Show("Are you sure you want to reboot your console?", "Confirmation", MsgBox.Buttons.YesNo, MsgBox.Icon.Question, MsgBox.AnimateStyle.FadeIn) != DialogResult.Yes)
- return;
- // ISSUE: reference to a compiler-generated method
- this.Jtag.Reboot((string) null, (string) null, (string) null, XboxRebootFlags.Cold);
- }
- else
- {
- int num = (int) MsgBox.Show("Please connect to your console first (This can be done in the settings tab)", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- }
- }
- private void timer5_Tick(object sender, EventArgs e)
- {
- }
- private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
- {
- label_0:
- try
- {
- if (this.jtagconnected)
- {
- this.cleanlistview1();
- // ISSUE: reference to a compiler-generated method
- // ISSUE: variable of a compiler-generated type
- // IXboxFiles xboxFiles = this.Jtag.DirectoryFiles(this.nsComboBox1.SelectedItem.ToString() + Settings.Default.GameDir);
- // this.nsLabel33.Value2 = xboxFiles.Count.ToString();
- // this.totalgames = xboxFiles.Count;
- // for (int index = 0; index < xboxFiles.Count; ++index)
- {
- // ISSUE: variable of a compiler-generated type
- // IXboxFile xboxFile = xboxFiles[index];
- // ISSUE: reference to a compiler-generated method
- // ISSUE: variable of a compiler-generated type
- // IXboxFile fileObject = this.Jtag.GetFileObject(xboxFile[]);
- // if (fileObject.IsDirectory)
- {
- // this.nsListView2.AddItem(((IEnumerable<string>) fileObject[].Split('\\')).Last<string>(), fileObject[]);
- // ISSUE: reference to a compiler-generated method
- // this.Jtag.DirectoryFiles(fileObject[]);
- ++this.games;
- // this.nsLabel33.Value1 = this.games.ToString() + "/";
- // }
- else
- {
- --this.totalgames;
- this.nsLabel33.Value2 = this.totalgames.ToString();
- }
- }
- // int num = (int) MsgBox.Show("Finished reading filesystem.", "Done", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- // }
- else
- {
- int num1 = (int) MsgBox.Show("Please connect to your console first (This can be done in the settings tab)", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- // }
- // }
- catch (Exception ex)
- {
- if (ex.ToString().Contains("0x82DA0101"))
- goto label_0;
- }
- this.games = 0;
- }
- private void nsTrackBar1_Scroll(object sender)
- {
- if (this.nsTrackBar1.Value < 45)
- this.label3.Visible = true;
- else
- this.label3.Visible = false;
- this.label4.Text = this.nsTrackBar1.Value.ToString();
- }
- private void nsLabel31_Click(object sender, EventArgs e)
- {
- }
- private void nsOnOffBox3_CheckedChanged(object sender)
- {
- }
- private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
- {
- }
- private void nsListView2_Click_2(object sender, EventArgs e)
- {
- }
- private void nsButton21_Click(object sender, EventArgs e)
- {
- }
- private void nsButton24_Click(object sender, EventArgs e)
- {
- if (this.jtagconnected)
- {
- if (this.state == 0)
- {
- Array.Clear((Array) this.SMCMessage, 0, this.SMCMessage.Length);
- Array.Clear((Array) this.SMCReturn, 0, this.SMCReturn.Length);
- this.SMCMessage[0] = (byte) 140;
- this.SMCMessage[1] = (byte) 16;
- this.SMCMessage[2] = (byte) 0;
- // int num = (int) ((IXboxConsole) this.Jtag).Call<uint>("xboxkrnl.exe", 41, new object[2]{ (object) this.SMCMessage, null });
- this.nsButton24.Text = "Power LED Flashing";
- this.state = 1;
- }
- else if (this.state == 1)
- {
- Array.Clear((Array) this.SMCMessage, 0, this.SMCMessage.Length);
- Array.Clear((Array) this.SMCReturn, 0, this.SMCReturn.Length);
- this.SMCMessage[0] = (byte) 140;
- this.SMCMessage[1] = (byte) 3;
- this.SMCMessage[2] = (byte) 0;
- // int num = (int) ((IXboxConsole) this.Jtag).Call<uint>("xboxkrnl.exe", 41, new object[2]{ (object) this.SMCMessage, null });
- this.nsButton24.Text = "Power LED Off";
- this.state = 2;
- }
- else
- {
- if (this.state != 2)
- return;
- Array.Clear((Array) this.SMCMessage, 0, this.SMCMessage.Length);
- Array.Clear((Array) this.SMCReturn, 0, this.SMCReturn.Length);
- this.SMCMessage[0] = (byte) 140;
- this.SMCMessage[1] = (byte) 2;
- this.SMCMessage[2] = (byte) 0;
- // int num = (int) ((IXboxConsole) this.Jtag).Call<uint>("xboxkrnl.exe", 41, new object[2]{ (object) this.SMCMessage, null });
- this.nsButton24.Text = "Power LED On";
- this.state = 0;
- }
- }
- else
- {
- int num1 = (int) MsgBox.Show("Please connect to your console first (This can be done in the settings tab)", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- }
- }
- private void nsButton21_Click_1(object sender, EventArgs e)
- {
- if (this.jtagconnected)
- {
- Array.Clear((Array) this.SMCMessage, 0, this.SMCMessage.Length);
- this.SMCMessage[0] = (byte) 148;
- this.SMCMessage[1] = this.nsTrackBar1.Value >= 45 ? (byte) ((uint) Convert.ToByte(this.nsTrackBar1.Value) | 128U) : (byte) 127;
- // int num1 = (int) ((IXboxConsole) this.Jtag).Call<uint>("xboxkrnl.exe", 41, new object[2]{ (object) this.SMCMessage, null });
- this.SMCMessage[0] = (byte) 137;
- // int num2 = (int) ((IXboxConsole) this.Jtag).Call<uint>("xboxkrnl.exe", 41, new object[2]{ (object) this.SMCMessage, null });
- }
- else
- {
- int num = (int) MsgBox.Show("Please connect to your console first (This can be done in the settings tab)", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- }
- }
- private void nsButton25_Click(object sender, EventArgs e)
- {
- // ISSUE: explicit reference operation
- // ISSUE: cast to a reference type
- // if (((IXboxConsole) this.Jtag).Connect((IXboxConsole&) @this.Jtag, "default"))
- {
- this.jtagconnected = true;
- this.label6.Text = "Connected";
- this.label6.ForeColor = Color.LimeGreen;
- int num = (int) MsgBox.Show("Connected to " + this.Jtag[], "Success", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- // }
- else
- {
- // this.label6.Text = "Not connected";
- // this.label6.ForeColor = Color.Red;
- // int num = (int) MsgBox.Show("Couldn't connect to your console", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- // }
- // }
- // private Form1.AV_PACK GetAVPack()
- {
- // uint Address = ((IXboxConsole) this.Jtag).ResolveFunction("xam.xex", 2601U) + 12288U;
- Array.Clear((Array) this.SMCMessage, 0, this.SMCMessage.Length);
- // this.SMCMessage[0] = (byte) 15;
- // int num = (int) ((IXboxConsole) this.Jtag).Call<uint>("xboxkrnl.exe", 41, (object) this.SMCMessage, (object) Address, null);
- // return (Form1.AV_PACK) ((IXboxConsole) this.Jtag).GetMemory(Address, 4U)[1];
- // }
- // private Form1.TRAY_STATE GetTrayState()
- {
- // uint Address = ((IXboxConsole) this.Jtag).ResolveFunction("xam.xex", 2601U) + 12288U;
- Array.Clear((Array) this.SMCMessage, 0, this.SMCMessage.Length);
- // this.SMCMessage[0] = (byte) 10;
- // int num = (int) ((IXboxConsole) this.Jtag).Call<uint>("xboxkrnl.exe", 41, (object) this.SMCMessage, (object) Address, null);
- // return (Form1.TRAY_STATE) (((int) ((IXboxConsole) this.Jtag).GetMemory(Address, 4U)[1] & 15) % 5);
- // }
- private void nsButton22_Click(object sender, EventArgs e)
- {
- if (this.jtagconnected)
- {
- // if (this.GetTrayState() == Form1.TRAY_STATE.CLOSED)
- {
- Array.Clear((Array) this.SMCMessage, 0, this.SMCMessage.Length);
- this.SMCMessage[0] = (byte) 139;
- this.SMCMessage[1] = (byte) 96;
- // int num = (int) ((IXboxConsole) this.Jtag).Call<uint>("xboxkrnl.exe", 41, new object[2]{ (object) this.SMCMessage, null });
- }
- // if (this.GetTrayState() != Form1.TRAY_STATE.OPEN)
- return;
- Array.Clear((Array) this.SMCMessage, 0, this.SMCMessage.Length);
- this.SMCMessage[0] = (byte) 139;
- this.SMCMessage[1] = (byte) 98;
- // int num1 = (int) ((IXboxConsole) this.Jtag).Call<uint>("xboxkrnl.exe", 41, new object[2]{ (object) this.SMCMessage, null });
- }
- else
- {
- int num2 = (int) MsgBox.Show("Please connect to your console first (This can be done in the settings tab)", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- }
- }
- private void nsButton23_Click(object sender, EventArgs e)
- {
- if (this.jtagconnected)
- {
- if (!this.ledsmessedwith)
- {
- if (this.state == 1)
- {
- Array.Clear((Array) this.SMCMessage, 0, this.SMCMessage.Length);
- this.SMCMessage[0] = (byte) 140;
- this.SMCMessage[1] = (byte) 16;
- this.SMCMessage[2] = (byte) 1;
- // int num1 = (int) ((IXboxConsole) this.Jtag).Call<uint>("xboxkrnl.exe", 41, new object[2]{ (object) this.SMCMessage, null });
- Array.Clear((Array) this.SMCMessage, 0, this.SMCMessage.Length);
- this.SMCMessage[0] = (byte) 140;
- this.SMCMessage[1] = (byte) 16;
- this.SMCMessage[2] = (byte) 0;
- // int num2 = (int) ((IXboxConsole) this.Jtag).Call<uint>("xboxkrnl.exe", 41, new object[2]{ (object) this.SMCMessage, null });
- }
- else if (this.state == 2)
- {
- Array.Clear((Array) this.SMCMessage, 0, this.SMCMessage.Length);
- this.SMCMessage[0] = (byte) 140;
- this.SMCMessage[1] = (byte) 3;
- this.SMCMessage[2] = (byte) 1;
- // int num1 = (int) ((IXboxConsole) this.Jtag).Call<uint>("xboxkrnl.exe", 41, new object[2]{ (object) this.SMCMessage, null });
- Array.Clear((Array) this.SMCMessage, 0, this.SMCMessage.Length);
- this.SMCMessage[0] = (byte) 140;
- this.SMCMessage[1] = (byte) 3;
- this.SMCMessage[2] = (byte) 0;
- // int num2 = (int) ((IXboxConsole) this.Jtag).Call<uint>("xboxkrnl.exe", 41, new object[2]{ (object) this.SMCMessage, null });
- }
- else
- {
- if (this.state != 0)
- return;
- Array.Clear((Array) this.SMCMessage, 0, this.SMCMessage.Length);
- this.SMCMessage[0] = (byte) 140;
- this.SMCMessage[1] = (byte) 2;
- this.SMCMessage[2] = (byte) 1;
- // int num1 = (int) ((IXboxConsole) this.Jtag).Call<uint>("xboxkrnl.exe", 41, new object[2]{ (object) this.SMCMessage, null });
- Array.Clear((Array) this.SMCMessage, 0, this.SMCMessage.Length);
- this.SMCMessage[0] = (byte) 140;
- this.SMCMessage[1] = (byte) 2;
- this.SMCMessage[2] = (byte) 0;
- // int num2 = (int) ((IXboxConsole) this.Jtag).Call<uint>("xboxkrnl.exe", 41, new object[2]{ (object) this.SMCMessage, null });
- }
- }
- else
- {
- int num3 = (int) MsgBox.Show("This will not work as you have already set your LED's. For some unknown reason you can't do this after you have set the LED's", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- }
- }
- else
- {
- int num4 = (int) MsgBox.Show("Please connect to your console first (This can be done in the settings tab)", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- }
- }
- private void nsTextBox3_TextChanged(object sender, EventArgs e)
- {
- Settings.Default["GameDir"] = (object) this.nsTextBox3.Text;
- Settings.Default.Save();
- }
- private void changevid()
- {
- if (this.video < 0)
- this.video = 0;
- if (this.video > 13)
- this.video = 13;
- if (this.video == 0)
- {
- this.webBrowser1.Navigate("https://www.youtube.com/v/HFvQjYxHa3Q");
- this.nsLabel35.Value2 = " Updating Your Dashboard Version";
- this.nsLabel36.Value2 = " xXModdedWarfareXx";
- }
- else if (this.video == 1)
- {
- this.webBrowser1.Navigate("https://www.youtube.com/v/GUeJj4nSpHE");
- this.nsLabel35.Value2 = " Setting Up Stealth Servers";
- this.nsLabel36.Value2 = " InModWeTrust360";
- }
- if (this.video == 2)
- {
- this.webBrowser1.Navigate("https://www.youtube.com/v/XQnZkqY1PQs");
- this.nsLabel35.Value2 = " Installing xex menu";
- this.nsLabel36.Value2 = " xXModdedWarfareXx";
- }
- else if (this.video == 3)
- {
- this.webBrowser1.Navigate("https://www.youtube.com/v/dMS-FXXAHW0");
- this.nsLabel35.Value2 = " Installing freestyle dash";
- this.nsLabel36.Value2 = " xXModdedWarfareXx";
- }
- if (this.video == 4)
- {
- this.webBrowser1.Navigate("https://www.youtube.com/v/m1gvZh2ihsQ");
- this.nsLabel35.Value2 = " Installing dashlaunch";
- this.nsLabel36.Value2 = " xXModdedWarfareXx";
- }
- else if (this.video == 5)
- {
- this.webBrowser1.Navigate("https://www.youtube.com/v/mPc8CrnjezY");
- this.nsLabel35.Value2 = " Downloading games";
- this.nsLabel36.Value2 = " xXModdedWarfareXx";
- }
- if (this.video == 6)
- {
- this.webBrowser1.Navigate("https://www.youtube.com/v/8Di5doUDILY");
- this.nsLabel35.Value2 = " Unlocking games / DLC";
- this.nsLabel36.Value2 = " xXModdedWarfareXx";
- }
- else if (this.video == 7)
- {
- this.webBrowser1.Navigate("https://www.youtube.com/v/zO7Jzro4-bY");
- this.nsLabel35.Value2 = " Setting up FTP";
- this.nsLabel36.Value2 = " xXModdedWarfareXx";
- }
- if (this.video == 8)
- {
- this.webBrowser1.Navigate("https://www.youtube.com/v/3EhGFqzoMvg");
- this.nsLabel35.Value2 = " Installing emulators";
- this.nsLabel36.Value2 = " xXModdedWarfareXx";
- }
- else if (this.video == 9)
- {
- this.webBrowser1.Navigate("https://www.youtube.com/v/9iH_6v-AlVI");
- this.nsLabel35.Value2 = " Installing TU's, Skins, Covers (FSD)";
- this.nsLabel36.Value2 = " xXModdedWarfareXx";
- }
- else if (this.video == 10)
- {
- this.webBrowser1.Navigate("https://www.youtube.com/v/VkzRRjqXngg");
- this.nsLabel35.Value2 = " Downloading / Installing DLC";
- this.nsLabel36.Value2 = " xXModdedWarfareXx";
- }
- else if (this.video == 11)
- {
- this.webBrowser1.Navigate("https://www.youtube.com/v/uO9wbrux_xE");
- this.nsLabel35.Value2 = " Installing xbox original games";
- this.nsLabel36.Value2 = " xXModdedWarfareXx";
- }
- else if (this.video == 12)
- {
- this.webBrowser1.Navigate("https://www.youtube.com/v/I4h9WOsem3w");
- this.nsLabel35.Value2 = " Setting up LiNK";
- this.nsLabel36.Value2 = " xXModdedWarfareXx";
- }
- else
- {
- if (this.video != 13)
- return;
- this.webBrowser1.Navigate("https://www.youtube.com/v/KaIcEhHKMSY");
- this.nsLabel35.Value2 = " Installing Xbox 360 Neighborhood (SDK)";
- this.nsLabel36.Value2 = " xXModdedWarfareXx";
- }
- }
- private void nsButton26_Click(object sender, EventArgs e)
- {
- }
- private void nsButton27_Click(object sender, EventArgs e)
- {
- }
- private void watchVideoToolStripMenuItem_Click(object sender, EventArgs e)
- {
- this.video = Convert.ToInt32(this.nsListView4.SelectedItems[0].SubItems[1].Text);
- this.changevid();
- }
- private void nsListView4_DoubleClick(object sender, EventArgs e)
- {
- this.video = Convert.ToInt32(this.nsListView4.SelectedItems[0].SubItems[1].Text);
- this.changevid();
- }
- private void nsListView4_Click(object sender, EventArgs e)
- {
- }
- private void nsButton26_Click_1(object sender, EventArgs e)
- {
- int num = (int) MsgBox.Show("If you cannot see the video in the browser please update your adobe flash player using internet explorer.", "Update Adobe Flash Player", MsgBox.Buttons.OK, MsgBox.Icon.Warning, MsgBox.AnimateStyle.FadeIn);
- }
- private void nsButton27_Click_1(object sender, EventArgs e)
- {
- }
- public void JoinParty(Form1.UserIndex userIndex, Form1.Xuid xuidContact)
- {
- try
- {
- int num = (int) XDRPCMarshaler.ExecuteRPC<uint>((IXboxConsole) this.Jtag, new XDRPCExecutionOptions(XDRPCMode.Title, "xam.xex", 2817), new XDRPCArgumentInfo[2]{ (XDRPCArgumentInfo) new XDRPCArgumentInfo<uint>((uint) userIndex), (XDRPCArgumentInfo) new XDRPCArgumentInfo<ulong>((ulong) xuidContact) });
- this.WaitForPartyState(Form1.PartyState.XPARTY_STATE_INPARTY, TimeSpan.FromSeconds(15.0));
- }
- catch (Exception ex)
- {
- }
- }
- public void KickUserFromParty(Form1.Xuid xuidToKick)
- {
- try
- {
- // int num = (int) XDRPCMarshaler.ExecuteRPC<uint>((IXboxConsole) this.Jtag, new XDRPCExecutionOptions(XDRPCMode.Title, "xam.xex", 2818), new XDRPCArgumentInfo[1]{ (XDRPCArgumentInfo) new XDRPCArgumentInfo<ulong>((ulong) xuidToKick) });
- }
- // catch (XDRPCException ex)
- {
- }
- }
- private void GetPartyState(out Form1.PartyState state, out Form1.PartyErrorCodes errorCode)
- {
- XDRPCExecutionOptions options = new XDRPCExecutionOptions(XDRPCMode.Title, "xam.xex", 2831);
- XDRPCArgumentInfo<uint> xdrpcArgumentInfo1 = new XDRPCArgumentInfo<uint>(0U, ArgumentType.Out);
- XDRPCArgumentInfo<uint> xdrpcArgumentInfo2 = new XDRPCArgumentInfo<uint>(0U, ArgumentType.Out);
- // int num = (int) XDRPCMarshaler.ExecuteRPC<uint>((IXboxConsole) this.Jtag, options, new XDRPCArgumentInfo[2]{ (XDRPCArgumentInfo) xdrpcArgumentInfo1, (XDRPCArgumentInfo) xdrpcArgumentInfo2 });
- state = (Form1.PartyState) xdrpcArgumentInfo1.Value;
- errorCode = (Form1.PartyErrorCodes) xdrpcArgumentInfo2.Value;
- }
- private void WaitForPartyState(Form1.PartyState state, TimeSpan timeout)
- {
- NSListView.NSListViewItem[] selectedItems = this.nsListView6.SelectedItems;
- DateTime now = DateTime.Now;
- Form1.PartyState state1;
- Form1.PartyErrorCodes errorCode;
- TimeSpan timeSpan;
- do
- {
- Thread.Sleep(2000);
- this.GetPartyState(out state1, out errorCode);
- timeSpan = DateTime.Now - now;
- }
- while (state1 != state && timeSpan < timeout);
- if (errorCode != Form1.PartyErrorCodes.XPARTY_ERROR_NONE)
- {
- int num = (int) MsgBox.Show("Failed, user could be offline, not in a party or the party may be unreachable. Are you sure this person is on your friend list?", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- }
- else
- // ((IXboxConsole) this.Jtag).XNotify("JTAG Sidekick: Succesfully joined party of " + this.GlobalGT);
- if (!(timeSpan >= timeout))
- ;
- }
- private string GetXUID(string gamertag)
- {
- label_0:
- try
- {
- byte[] Data = new byte[8];
- // uint Address = ((IXboxConsole) this.Jtag).ResolveFunction("xam.xex", 2601U) + 12288U;
- // ((IXboxConsole) this.Jtag).SetMemory(Address, Data);
- // int num = (int) ((IXboxConsole) this.Jtag).Call<uint>(2172816360U, (object) 2533274801587734L, (object) 0, (object) gamertag, (object) 24, (object) Address, (object) 0);
- Thread.Sleep(1000);
- // byte[] memory = ((IXboxConsole) this.Jtag).GetMemory(Address, 8U);
- // this.XUIDGlobal = ((IXboxConsole) this.Jtag).GetMemory(Address, 8U);
- if (this.firsthit && !this.defaultgrabbed)
- {
- // this.defaultxuid = ((IXboxConsole) this.Jtag).GetMemory(Address, 8U);
- this.defaultgrabbed = true;
- }
- // string str = BitConverter.ToString(memory).Replace("-", "");
- // ((IXboxConsole) this.Jtag).SetMemory(Address, Data);
- // return str;
- }
- catch (Exception ex)
- {
- if (!ex.ToString().Contains("0x82DA0101"))
- return "Error";
- goto label_0;
- }
- }
- private void nsButton28_Click(object sender, EventArgs e)
- {
- this.cleanlistview5();
- this.GetPartyMembers();
- for (int index = 0; index < this.PartyUsersCount; ++index)
- {
- if (this.ListGamerTags[index] != "")
- this.nsListView5.AddItem(this.ListGamerTags[index], this.GetXUID(this.ListGamerTags[index]), index.ToString());
- }
- int num = (int) MsgBox.Show("All party members have been resolved succesfully!", "Success", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- }
- public static byte[] reverseBytes(string gamertag)
- {
- byte[] numArray = new byte[gamertag.Length * 2 + 2];
- numArray[0] = (byte) 0;
- uint num1 = 1;
- for (int index = 0; index < gamertag.Length; ++index)
- {
- char ch = gamertag[index];
- numArray[(int) (uint) (UIntPtr) num1] = (byte) ch;
- uint num2 = num1 + 1U;
- numArray[(int) (uint) (UIntPtr) num2] = (byte) 0;
- num1 = num2 + 1U;
- }
- numArray[(int) (uint) (UIntPtr) num1] = (byte) 0;
- return numArray;
- }
- private static byte[] GetBytes(string str)
- {
- byte[] numArray = new byte[str.Length * 2];
- Buffer.BlockCopy((Array) str.ToCharArray(), 0, (Array) numArray, 0, numArray.Length);
- return numArray;
- }
- private void nsButton32_Click(object sender, EventArgs e)
- {
- if (!this.defaultgrabbed)
- {
- byte[] memory = ((IXboxConsole) this.Jtag).GetMemory(2175411740U, 30U);
- this.firsthit = true;
- string @string = Encoding.BigEndianUnicode.GetString(memory);
- this.nsTextBox8.Text = @string;
- this.nsTextBox9.Text = this.GetXUID(@string);
- int num = (int) MsgBox.Show("This just grabs your default XUID and gamertag. Please press get XUID again before trying to set XUID and gamertag", "Success", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- }
- else
- {
- this.nsTextBox7.Text = this.GetXUID(this.nsTextBox6.Text);
- this.nsButton33.Enabled = true;
- }
- }
- private void nsButton33_Click(object sender, EventArgs e)
- {
- // ((IXboxConsole) this.Jtag).SetMemory(2175411740U, new byte[15]);
- // ((IXboxConsole) this.Jtag).SetMemory(2175411740U, Form1.reverseBytes(this.nsTextBox8.Text));
- // ((IXboxConsole) this.Jtag).SetMemory(2175411772U, this.defaultxuid);
- }
- private void nsButton31_Click(object sender, EventArgs e)
- {
- // ((IXboxConsole) this.Jtag).SetMemory(2175411740U, new byte[30]);
- // ((IXboxConsole) this.Jtag).SetMemory(2175411740U, Form1.reverseBytes(this.nsTextBox6.Text));
- byte[] Data = this.XUIDGlobal;
- // ((IXboxConsole) this.Jtag).SetMemory(2175411772U, new byte[16]);
- // ((IXboxConsole) this.Jtag).SetMemory(2175411772U, Data);
- }
- private void nsListView5_Click(object sender, EventArgs e)
- {
- NSListView.NSListViewItem[] selectedItems = this.nsListView5.SelectedItems;
- string str1 = "http://avatar.xboxlive.com/avatar/" + selectedItems[0].Text + "/avatar-body.png";
- string str2 = "http://www.xboxgamertag.com/gamercard/" + selectedItems[0].Text + "/newnxe/card.png";
- this.pictureBox1.ImageLocation = str1;
- this.pictureBox2.ImageLocation = str2;
- }
- private void nsButton29_Click(object sender, EventArgs e)
- {
- this.GetXUID(this.nsTextBox4.Text);
- this.GlobalGT = this.nsTextBox4.Text;
- byte[] numArray = this.XUIDGlobal;
- Array.Reverse((Array) numArray, 0, numArray.Length);
- this.JoinParty(Form1.UserIndex.Zero, (Form1.Xuid) BitConverter.ToUInt64(numArray, 0));
- }
- private void nsListView1_Click(object sender, EventArgs e)
- {
- }
- private void label7_Click(object sender, EventArgs e)
- {
- int num = (int) MsgBox.Show("Please make sure to read Read Me.txt in the folder with XDRPC (It's not a normal plugin there are instructions you must follow)", "Warning", MsgBox.Buttons.OK, MsgBox.Icon.Warning, MsgBox.AnimateStyle.FadeIn);
- Process.Start("https://mega.nz/#!D8smXZQC!QTSiJuJB58TdGbv80alNe0WkEjXtaI0KdBexxpfk-1o");
- }
- private void nsButton30_Click(object sender, EventArgs e)
- {
- // int num1 = (int) ((IXboxConsole) this.Jtag).Call<uint>("xboxkrnl.exe", 409, (object) this.nsTextBox5.Text, (object) 8, (object) 0, (object) 0);
- int num2 = (int) MsgBox.Show(this.nsTextBox5.Text + " Has been loaded into memory NOTE: You can verify this by refreshing the modules list.", "Success", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- }
- // private uint GetNextFriend(IXboxConsole xbc, Form1.UserIndex userIndex, uint friendIndex, out Form1.XONLINE_FRIEND friend)
- // {
- // label_0:
- // friend = new Form1.XONLINE_FRIEND();
- // uint num1;
- // try
- // {
- XDRPCArgumentInfo<uint> xdrpcArgumentInfo1 = new XDRPCArgumentInfo<uint>(0U, ArgumentType.Out);
- XDRPCArgumentInfo<uint> xdrpcArgumentInfo2 = new XDRPCArgumentInfo<uint>(0U, ArgumentType.Out);
- // num1 = ((IXboxConsole) xbc).ExecuteRPC<uint>(XDRPCMode.Title, 2172844264U, (object) (uint) userIndex, (object) friendIndex, (object) 1, (object) xdrpcArgumentInfo1, (object) xdrpcArgumentInfo2);
- // if ((int) num1 == 0)
- // {
- // XDRPCStructArgumentInfo<Form1.XONLINE_FRIEND> structArgumentInfo = new XDRPCStructArgumentInfo<Form1.XONLINE_FRIEND>(new Form1.XONLINE_FRIEND(), ArgumentType.Out);
- XDRPCArgumentInfo<uint> xdrpcArgumentInfo3 = new XDRPCArgumentInfo<uint>(0U, ArgumentType.Out);
- private RunWorkerCompletedEventHandler backgroundWorker2_RunWorkerCompleted;
- private DoWorkEventHandler backgroundWorker2_DoWork;
- private EventHandler nsButton36_Click;
- private EventHandler nsButton35_Click;
- private EventHandler kickToolStripMenuItem_Click;
- private EventHandler nsGroupBox13_Click;
- private EventHandler label8_Click;
- private EventHandler nsListView6_Click;
- private EventHandler joinPartyToolStripMenuItem_Click;
- private EventHandler nsButton34_Click;
- private static readonly object AV_PACK;
- private static object TEMP_INDEX;
- // num1 = ((IXboxConsole) xbc).ExecuteRPC<uint>(XDRPCMode.Title, "xam.xex", 592, (object) xdrpcArgumentInfo2.Value, (object) 0, (object) structArgumentInfo, (object) xdrpcArgumentInfo1.Value, (object) xdrpcArgumentInfo3, (object) 0);
- // friend = structArgumentInfo.Value;
- // int num2 = (int) ((IXboxConsole) xbc).ExecuteRPC<uint>(XDRPCMode.Title, "xam.xex", 1044, new object[1]{ (object) xdrpcArgumentInfo2.Value });
- }
- }
- // catch (Exception ex)
- // {
- // if (!ex.ToString().Contains("0x82DA0101"))
- // throw ex;
- // goto label_0;
- // }
- // return num1;
- // }
- // public void GetMyFriends(IXboxConsole xbc, Form1.UserIndex userIndex)
- // {
- // uint friendIndex;
- // Form1.XONLINE_FRIEND friend;
- for (friendIndex = 0U; (int) this.GetNextFriend(xbc, userIndex, friendIndex, out friend) == 0; ++friendIndex)
- {
- this.friendstatus[(IntPtr) friendIndex] = ((int) friend.dwFriendState & 1073741824) == 0 ? (((int) friend.dwFriendState & int.MinValue) == 0 ? "Current friend" : "Request received") : "Request sent";
- int num1 = (int) friend.dwFriendState & 1;
- if (((int) friend.dwFriendState & 1) != 0)
- {
- uint num2 = friend.dwFriendState & 983040U;
- this.FStatus[(IntPtr) friendIndex] = "Online";
- if ((int) num2 == 65536)
- this.FStatus[(IntPtr) friendIndex] = "Away";
- if ((int) num2 == 131072)
- this.FStatus[(IntPtr) friendIndex] = "Busy";
- uint num3 = friend.dwFriendState & 28672U;
- string str = "Unknown";
- if ((int) num3 == 0)
- str = "Xbox One";
- else if ((int) num3 == 4096)
- str = "Xbox 360";
- else if ((int) num3 == 8192)
- str = "Windows PC";
- else if ((int) num3 == 12288)
- str = "Durango";
- this.friendconsole[(IntPtr) friendIndex] = str;
- }
- else
- {
- this.FStatus[(IntPtr) friendIndex] = "Offline";
- this.friendconsole[(IntPtr) friendIndex] = "Offline";
- }
- this.ListFGamerTags[(IntPtr) friendIndex] = friend.szGamertag;
- this.ListFLXuid[(IntPtr) friendIndex] = friend.xuid;
- this.ListFSXuid[(IntPtr) friendIndex] = friend.xuid.ToString("X16");
- this.ListFGameID[(IntPtr) friendIndex] = !(friend.dwTitleID.ToString("X8") == "00000000") ? friend.dwTitleID.ToString("X8") : "Offline";
- }
- // FUsersCount = (int) friendIndex;
- }
- // private void nsButton34_Click(object sender, EventArgs e)
- // {
- // this.backgroundWorker2.RunWorkerAsync();
- // }
- // private void nsListView6_Click(object sender, EventArgs e)
- // {
- // this.pictureBox4.ImageLocation = "http://avatar.xboxlive.com/avatar/" + this.nsListView6.SelectedItems[0].Text + "/avatar-body.png";
- // }
- // private void joinPartyToolStripMenuItem_Click(object sender, EventArgs e)
- // {
- // NSListView.NSListViewItem[] selectedItems = this.nsListView6.SelectedItems;
- // this.GetXUID(selectedItems[0].Text);
- // this.GlobalGT = selectedItems[0].Text;
- // byte[] numArray = this.XUIDGlobal;
- // Array.Reverse((Array) numArray, 0, numArray.Length);
- // this.JoinParty(Form1.UserIndex.Zero, (Form1.Xuid) BitConverter.ToUInt64(numArray, 0));
- // }
- // private void showgamercard(Form1.Xuid xuid)
- // {
- // int num = (int) ((IXboxConsole) this.Jtag).Call<uint>(((IXboxConsole) this.Jtag).ResolveFunction("xam.xex", 708U), new object[3]{ (object) 0, (object) xuid, null });
- }
- private void kickToolStripMenuItem_Click(object sender, EventArgs e)
- {
- this.GetXUID(this.nsListView5.SelectedItems[0].Text);
- byte[] numArray = this.XUIDGlobal;
- Array.Reverse((Array) numArray, 0, numArray.Length);
- this.KickUserFromParty((Form1.Xuid) BitConverter.ToUInt64(numArray, 0));
- }
- private void label8_Click(object sender, EventArgs e)
- {
- int num = (int) MsgBox.Show("Please make sure to read Read Me.txt in the folder with XDRPC (It's not a normal plugin there are instructions you must follow)", "Warning", MsgBox.Buttons.OK, MsgBox.Icon.Warning, MsgBox.AnimateStyle.FadeIn);
- Process.Start("https://mega.nz/#!D8smXZQC!QTSiJuJB58TdGbv80alNe0WkEjXtaI0KdBexxpfk-1o");
- }
- private void backgroundWorker2_DoWork(object sender, DoWorkEventArgs e)
- {
- this.cleanlistview6();
- this.GetMyFriends(this.Jtag, Form1.UserIndex.Zero);
- for (int index = 0; index < this.FUsersCount; ++index)
- {
- if (this.ListFGamerTags[index] != "")
- this.nsListView6.AddItem(this.ListFGamerTags[index], this.GetXUID(this.ListFGamerTags[index]), this.ListFGameID[index], this.FStatus[index], this.friendconsole[index], this.friendstatus[index]);
- }
- }
- private void backgroundWorker2_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
- {
- int num = (int) MsgBox.Show("Resolved all friends succesfully!", "Success!", MsgBox.Buttons.OK, MsgBox.Icon.Info, MsgBox.AnimateStyle.FadeIn);
- }
- private void nsButton35_Click(object sender, EventArgs e)
- {
- if (this.jtagconnected)
- {
- Array.Clear((Array) this.SMCMessage, 0, this.SMCMessage.Length);
- Array.Clear((Array) this.SMCReturn, 0, this.SMCReturn.Length);
- this.SMCMessage[0] = (byte) 154;
- this.SMCMessage[1] = (byte) 82;
- this.SMCMessage[2] = byte.MaxValue;
- this.SMCMessage[3] = byte.MaxValue;
- int num = (int) ((IXboxConsole) this.Jtag).Call<uint>("xboxkrnl.exe", 41, new object[2]{ (object) this.SMCMessage, null });
- }
- else
- {
- int num1 = (int) MsgBox.Show("Please connect to your console first (This can be done in the settings tab)", "Error", MsgBox.Buttons.OK, MsgBox.Icon.Error, MsgBox.AnimateStyle.FadeIn);
- }
- }
- private void nsButton36_Click(object sender, EventArgs e)
- {
- }
- private void nsGroupBox13_Click(object sender, EventArgs e)
- {
- }
- public sealed class ControlChars
- {
- public const char Back = '\b';
- public const char Cr = '\r';
- public const string CrLf = "\r\n";
- public const char FormFeed = '\f';
- public const char Lf = '\n';
- public const string NewLine = "\r\n";
- public const char NullChar = '\0';
- public const char Quote = '"';
- public const char Tab = '\t';
- public const char VerticalTab = '\v';
- }
- private class pUtil
- {
- public static byte[] HexStringToByteArray(string str)
- {
- if (str.Length % 2 == 1)
- return (byte[]) null;
- List<byte> byteList = new List<byte>();
- int startIndex = 0;
- while (startIndex < str.Length)
- {
- byteList.Add(Convert.ToByte(str.Substring(startIndex, 2), 16));
- startIndex += 2;
- }
- return byteList.ToArray();
- }
- public static int Bitswap32(int i)
- {
- byte[] bytes = BitConverter.GetBytes(i);
- Array.Reverse((Array) bytes);
- return BitConverter.ToInt32(bytes, 0);
- }
- }
- [XDRPCStruct]
- public struct XPARTY_USER_LIST
- {
- public int dwUserCount;
- public uint placeHolder;
- [MarshalAs(UnmanagedType.ByValArray, SizeConst = 3840)]
- public byte[] Users;
- }
- [XDRPCStruct]
- public struct XPARTY_USER_INFO
- {
- public ulong Xuid;
- [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16, ArraySubType = UnmanagedType.LPStr)]
- public string GamerTag;
- public uint dwUserIndex;
- public int NatType;
- public uint dwTitleId;
- public uint dwFlags;
- [MarshalAs(UnmanagedType.ByValArray, SizeConst = 60)]
- public byte[] SessionInfo;
- [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
- public byte[] CustomData;
- }
- public enum LEDStatus
- {
- ON = 1,
- DEFAULT = 2,
- OFF = 3,
- BLINK = 16,
- }
- public enum LEDState
- {
- OFF = 0,
- RED = 8,
- GREEN = 128,
- ORANGE = 136,
- }
- public enum POWER_STATE
- {
- HREBOOT = 48,
- SREBOOT = 49,
- }
- public enum TEMP_INDEX
- {
- CPU,
- GPU,
- MEM,
- BRD,
- }
- private enum TRAY
- {
- OPEN = 96,
- CLOSE = 98,
- }
- private enum SMC_MESSAGE
- {
- RTEMP = 7,
- RSMC_VERSION = 18,
- POWER = 130,
- TRAY = 139,
- PLED = 140,
- LEDS = 153,
- }
- public class conversions
- {
- public static string HexToAscii(byte[] hex)
- {
- string str1 = "";
- for (int index = 0; index < hex.Length; ++index)
- {
- string str2 = hex[index].ToString("X");
- if (str2.Length == 1)
- str2 = "0" + str2;
- str1 += str2;
- }
- return str1;
- }
- public static byte[] AsciiToHex(string ascii)
- {
- byte[] numArray = new byte[ascii.Length / 2];
- for (int index = 0; index < ascii.Length / 2; ++index)
- {
- byte num = byte.Parse(ascii.Substring(index * 2, 2), NumberStyles.HexNumber);
- numArray[index] = num;
- }
- return numArray;
- }
- }
- public class EndianIO
- {
- private string filepath = "";
- private Form1.EndianType endiantype = Form1.EndianType.LittleEndian;
- private bool isfile;
- private bool isOpen;
- private Stream stream;
- private Form1.EndianReader _in;
- private Form1.EndianWriter _out;
- public bool Opened
- {
- get
- {
- return this.isOpen;
- }
- }
- public bool Closed
- {
- get
- {
- return !this.isOpen;
- }
- }
- public Form1.EndianReader In
- {
- get
- {
- return this._in;
- }
- }
- public Form1.EndianWriter Out
- {
- get
- {
- return this._out;
- }
- }
- public Stream Stream
- {
- get
- {
- return this.stream;
- }
- }
- public EndianIO(string FilePath, Form1.EndianType EndianStyle)
- {
- this.endiantype = EndianStyle;
- this.filepath = FilePath;
- this.isfile = true;
- }
- public EndianIO(MemoryStream MemoryStream, Form1.EndianType EndianStyle)
- {
- this.endiantype = EndianStyle;
- this.stream = (Stream) MemoryStream;
- this.isfile = false;
- }
- public EndianIO(Stream Stream, Form1.EndianType EndianStyle)
- {
- this.endiantype = EndianStyle;
- this.stream = Stream;
- this.isfile = false;
- }
- public EndianIO(byte[] Buffer, Form1.EndianType EndianStyle)
- {
- this.endiantype = EndianStyle;
- this.stream = (Stream) new MemoryStream(Buffer);
- this.isfile = false;
- }
- public void Open()
- {
- if (this.isOpen)
- return;
- if (this.isfile)
- this.stream = (Stream) new FileStream(this.filepath, FileMode.OpenOrCreate, FileAccess.ReadWrite);
- this._in = new Form1.EndianReader(this.stream, this.endiantype);
- this._out = new Form1.EndianWriter(this.stream, this.endiantype);
- this.isOpen = true;
- }
- public void Close()
- {
- if (!this.isOpen)
- return;
- this.stream.Close();
- this._in.Close();
- this._out.Close();
- this.isOpen = false;
- }
- }
- public class EndianReader : BinaryReader
- {
- public Form1.EndianType endianstyle;
- public EndianReader(Stream stream, Form1.EndianType endianstyle)
- : base(stream)
- {
- this.endianstyle = endianstyle;
- }
- public override ushort ReadUInt16()
- {
- return this.ReadUInt16(this.endianstyle);
- }
- public ushort ReadUInt16(Form1.EndianType EndianType)
- {
- byte[] numArray = this.ReadBytes(2);
- if (EndianType == Form1.EndianType.BigEndian)
- Array.Reverse((Array) numArray);
- return BitConverter.ToUInt16(numArray, 0);
- }
- public override int ReadInt32()
- {
- return this.ReadInt32(this.endianstyle);
- }
- public int ReadInt32(Form1.EndianType EndianType)
- {
- byte[] numArray = this.ReadBytes(4);
- if (EndianType == Form1.EndianType.BigEndian)
- Array.Reverse((Array) numArray);
- return BitConverter.ToInt32(numArray, 0);
- }
- public override uint ReadUInt32()
- {
- return this.ReadUInt32(this.endianstyle);
- }
- public uint ReadUInt32(Form1.EndianType EndianType)
- {
- byte[] numArray = this.ReadBytes(4);
- if (EndianType == Form1.EndianType.BigEndian)
- Array.Reverse((Array) numArray);
- return BitConverter.ToUInt32(numArray, 0);
- }
- public override ulong ReadUInt64()
- {
- return this.ReadUInt64(this.endianstyle);
- }
- public ulong ReadUInt64(Form1.EndianType EndianType)
- {
- byte[] numArray = this.ReadBytes(8);
- if (EndianType == Form1.EndianType.BigEndian)
- Array.Reverse((Array) numArray);
- return BitConverter.ToUInt64(numArray, 0);
- }
- public override float ReadSingle()
- {
- return this.ReadSingle(this.endianstyle);
- }
- public float ReadSingle(Form1.EndianType EndianType)
- {
- byte[] numArray = this.ReadBytes(4);
- if (EndianType == Form1.EndianType.BigEndian)
- Array.Reverse((Array) numArray);
- return BitConverter.ToSingle(numArray, 0);
- }
- public override double ReadDouble()
- {
- return this.ReadDouble(this.endianstyle);
- }
- public double ReadDouble(Form1.EndianType EndianType)
- {
- byte[] numArray = this.ReadBytes(4);
- if (EndianType == Form1.EndianType.BigEndian)
- Array.Reverse((Array) numArray);
- return BitConverter.ToDouble(numArray, 0);
- }
- public string ReadAsciiString(int Length)
- {
- return this.ReadAsciiString(Length, this.endianstyle);
- }
- public string ReadAsciiString(int Length, Form1.EndianType EndianType)
- {
- string str = "";
- int num = 0;
- for (int index = 0; index < Length; ++index)
- {
- char ch = (char) this.ReadByte();
- ++num;
- if ((int) ch != 0)
- str += (string) (ValueType) ch;
- else
- break;
- }
- this.BaseStream.Seek((long) (Length - num), SeekOrigin.Current);
- return str;
- }
- public string ReadUnicodeString(int Length)
- {
- return this.ReadUnicodeString(Length, this.endianstyle);
- }
- public string ReadUnicodeString(int Length, Form1.EndianType EndianType)
- {
- string str = "";
- int num = 0;
- for (int index = 0; index < Length; ++index)
- {
- char ch = (char) this.ReadUInt16(EndianType);
- ++num;
- if ((int) ch != 0)
- str += (string) (ValueType) ch;
- else
- break;
- }
- this.BaseStream.Seek((long) ((Length - num) * 2), SeekOrigin.Current);
- return str;
- }
- }
- public enum EndianType
- {
- BigEndian,
- LittleEndian,
- }
- public class EndianWriter : BinaryWriter
- {
- private Form1.EndianType endianstyle;
- public EndianWriter(Stream stream, Form1.EndianType endianstyle)
- : base(stream)
- {
- this.endianstyle = endianstyle;
- }
- public override void Write(short value)
- {
- this.Write(value, this.endianstyle);
- }
- public void Write(short value, Form1.EndianType EndianType)
- {
- byte[] bytes = BitConverter.GetBytes(value);
- if (EndianType == Form1.EndianType.BigEndian)
- Array.Reverse((Array) bytes);
- this.Write(bytes);
- }
- public override void Write(ushort value)
- {
- this.Write(value, this.endianstyle);
- }
- public void Write(ushort value, Form1.EndianType EndianType)
- {
- byte[] bytes = BitConverter.GetBytes(value);
- if (EndianType == Form1.EndianType.BigEndian)
- Array.Reverse((Array) bytes);
- this.Write(bytes);
- }
- public override void Write(int value)
- {
- this.Write(value, this.endianstyle);
- }
- public void Write(int value, Form1.EndianType EndianType)
- {
- byte[] bytes = BitConverter.GetBytes(value);
- if (EndianType == Form1.EndianType.BigEndian)
- Array.Reverse((Array) bytes);
- this.Write(bytes);
- }
- public override void Write(uint value)
- {
- this.Write(value, this.endianstyle);
- }
- public void Write(uint value, Form1.EndianType EndianType)
- {
- byte[] bytes = BitConverter.GetBytes(value);
- if (EndianType == Form1.EndianType.BigEndian)
- Array.Reverse((Array) bytes);
- this.Write(bytes);
- }
- public override void Write(long value)
- {
- this.Write(value, this.endianstyle);
- }
- public void Write(long value, Form1.EndianType EndianType)
- {
- byte[] bytes = BitConverter.GetBytes(value);
- if (EndianType == Form1.EndianType.BigEndian)
- Array.Reverse((Array) bytes);
- this.Write(bytes);
- }
- public override void Write(ulong value)
- {
- this.Write(value, this.endianstyle);
- }
- public void Write(ulong value, Form1.EndianType EndianType)
- {
- byte[] bytes = BitConverter.GetBytes(value);
- if (EndianType == Form1.EndianType.BigEndian)
- Array.Reverse((Array) bytes);
- this.Write(bytes);
- }
- public override void Write(float value)
- {
- this.Write(value, this.endianstyle);
- }
- public void Write(float value, Form1.EndianType EndianType)
- {
- byte[] bytes = BitConverter.GetBytes(value);
- if (EndianType == Form1.EndianType.BigEndian)
- Array.Reverse((Array) bytes);
- this.Write(bytes);
- }
- public override void Write(double value)
- {
- this.Write(value, this.endianstyle);
- }
- public void Write(double value, Form1.EndianType EndianType)
- {
- byte[] bytes = BitConverter.GetBytes(value);
- if (EndianType == Form1.EndianType.BigEndian)
- Array.Reverse((Array) bytes);
- this.Write(bytes);
- }
- public void WriteAsciiString(string String, int Length)
- {
- this.WriteAsciiString(String, Length, this.endianstyle);
- }
- public void WriteAsciiString(string String, int Length, Form1.EndianType EndianType)
- {
- int length1 = String.Length;
- for (int index = 0; index < length1 && index <= Length; ++index)
- this.Write((byte) String[index]);
- int length2 = Length - length1;
- if (length2 <= 0)
- return;
- this.Write(new byte[length2]);
- }
- public void WriteUnicodeString(string String, int Length)
- {
- this.WriteUnicodeString(String, Length, this.endianstyle);
- }
- public void WriteUnicodeString(string String, int Length, Form1.EndianType EndianType)
- {
- int length1 = String.Length;
- for (int index = 0; index < length1 && index <= Length; ++index)
- this.Write((ushort) String[index], EndianType);
- int length2 = (Length - length1) * 2;
- if (length2 <= 0)
- return;
- this.Write(new byte[length2]);
- }
- }
- private enum AV_PACK
- {
- AV_COMPONENT = 15,
- AV_HDMIAUDIO = 19,
- AV_HDMI = 31,
- AV_COMPOSITETV = 67,
- AV_COMPOSITEHD = 79,
- AV_VGA = 91,
- }
- private enum TRAY_STATE
- {
- OPEN,
- UNKNOWN,
- CLOSED,
- OPENING,
- CLOSING,
- }
- public enum UserIndex
- {
- Zero,
- One,
- Two,
- Three,
- }
- public class Xuid : IEquatable<Form1.Xuid>
- {
- public ulong value;
- public bool IsOfflineXuid
- {
- get
- {
- return ((long) this.value & -1152921504606846976L) == -2305843009213693952L;
- }
- }
- public bool IsOnlineXuid
- {
- get
- {
- return ((long) this.value & -281474976710656L) == 2533274790395904L;
- }
- }
- public bool IsValidXuid
- {
- get
- {
- if (!this.IsOfflineXuid)
- return this.IsOnlineXuid;
- return true;
- }
- }
- private Xuid(ulong value)
- {
- this.value = value;
- }
- public static implicit operator ulong(Form1.Xuid xuid)
- {
- return xuid.value;
- }
- public static implicit operator Form1.Xuid(ulong value)
- {
- return new Form1.Xuid(value);
- }
- public static bool operator ==(Form1.Xuid leftHandXuid, Form1.Xuid rightHandXuid)
- {
- if (!object.ReferenceEquals((object) leftHandXuid, (object) null))
- return leftHandXuid.Equals(rightHandXuid);
- return object.ReferenceEquals((object) rightHandXuid, (object) null);
- }
- public static bool operator !=(Form1.Xuid leftHandXuid, Form1.Xuid rightHandXuid)
- {
- return !(leftHandXuid == rightHandXuid);
- }
- public bool Equals(Form1.Xuid other)
- {
- if (object.ReferenceEquals((object) other, (object) null))
- return false;
- if (object.ReferenceEquals((object) this, (object) other))
- return true;
- if (this.GetType() != other.GetType())
- return false;
- return (long) this.value == (long) other.value;
- }
- public override bool Equals(object obj)
- {
- return this.Equals(obj as Form1.Xuid);
- }
- public override int GetHashCode()
- {
- return this.value.GetHashCode();
- }
- public override string ToString()
- {
- return string.Format("Xuid:{0:X16}", (object) this.value);
- }
- }
- internal enum PartyErrorCodes
- {
- XPARTY_ERROR_NONE,
- XPARTY_ERROR_CONNECTFAILED,
- XPARTY_ERROR_CONNECTIONLOST,
- XPARTY_ERROR_KICKED,
- XPARTY_ERROR_PARTYFULL,
- XPARTY_ERROR_PARTYINVITEONLY,
- XPARTY_ERROR_PARTYFRIENDSONLY,
- }
- public enum PartyState
- {
- XPARTY_STATE_IDLE,
- XPARTY_STATE_CONNECTING,
- XPARTY_STATE_INPARTY,
- XPARTY_STATE_DISCONNECTING,
- }
- public enum FriendRequestStatus
- {
- RequestSent,
- RequestReceived,
- RequestAccepted,
- }
- [XDRPCStruct]
- private struct XONLINE_FRIEND
- {
- public ulong xuid;
- [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16, ArraySubType = UnmanagedType.LPStr)]
- public string szGamertag;
- public uint dwFriendState;
- [MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
- public byte[] sessionID;
- public uint dwTitleID;
- public ulong ftUserTime;
- [MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
- public byte[] xnkidInvite;
- public ulong gameinviteTime;
- public uint cchRichPresence;
- [MarshalAs(UnmanagedType.ByValArray, SizeConst = 64, ArraySubType = UnmanagedType.LPWStr)]
- public string wszRichPresence;
- }
- public enum FriendStatus
- {
- Offline = -1,
- Online = 0,
- Away = 65536,
- Busy = 131072,
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement