using JRPC_Client;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using XDevkit;
namespace Battlefield
{
public class Form1 : Form
{
public uint NRCE = 1100611648;
public uint NRCD = 1207959616;
private IContainer components = (IContainer) null;
private IXboxConsole jtag;
private bool noRecoil;
private bool aimbot;
private bool wallhack;
private bool uav;
private Button button1;
private Panel panel1;
private Panel panel2;
private Button button2;
private Panel panel3;
private Button button3;
private Panel panel4;
private Button button4;
private Button button5;
private Panel seperator;
private PictureBox pictureBox1;
public Form1()
{
this.InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
if (!this.uav)
{
JRPC.WriteByte(this.jtag, 2288935484U, (byte) 64);
this.panel1.BackColor = Color.Green;
this.uav = true;
}
else
{
JRPC.WriteByte(this.jtag, 2288935484U, (byte) 65);
this.panel1.BackColor = Color.Red;
this.uav = false;
}
}
private void button2_Click(object sender, EventArgs e)
{
if (!this.wallhack)
{
JRPC.WriteByte(this.jtag, 2299582212U, (byte) 64);
this.panel2.BackColor = Color.Green;
this.wallhack = true;
}
else
{
JRPC.WriteByte(this.jtag, 2299582212U, (byte) 65);
this.panel2.BackColor = Color.Red;
this.wallhack = false;
}
}
private void button5_Click(object sender, EventArgs e)
{
try
{
JRPC.Connect(this.jtag, ref this.jtag, "default");
if (!JRPC.Connect(this.jtag, ref this.jtag, "default"))
return;
this.button1.Enabled = true;
this.button2.Enabled = true;
this.button3.Enabled = true;
this.button4.Enabled = true;
this.panel1.BackColor = Color.Red;
this.panel2.BackColor = Color.Red;
this.panel3.BackColor = Color.Red;
this.panel4.BackColor = Color.Red;
JRPC.XNotify(this.jtag, "Battlefield 4 | Offhost - Connected");
}
catch (Exception ex)
{
int num = (int) MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
}
}
private void button3_Click(object sender, EventArgs e)
{
if (!this.aimbot)
{
byte[] numArray1 = new byte[156]
{
(byte) 125,
(byte) 136,
(byte) 2,
(byte) 166,
(byte) 145,
(byte) 129,
(byte) 0,
(byte) 8,
(byte) 148,
(byte) 33,
byte.MaxValue,
(byte) 144,
(byte) 127,
(byte) 71,
(byte) 211,
(byte) 120,
(byte) 252,
(byte) 32,
(byte) 240,
(byte) 144,
(byte) 127,
(byte) 102,
(byte) 219,
(byte) 120,
(byte) 127,
(byte) 164,
(byte) 235,
(byte) 120,
(byte) 61,
(byte) 192,
(byte) 137,
(byte) 124,
(byte) 97,
(byte) 206,
(byte) 28,
(byte) 16,
(byte) 144,
(byte) 110,
(byte) 0,
(byte) 0,
(byte) 129,
(byte) 206,
(byte) 0,
(byte) 0,
(byte) 129,
(byte) 206,
(byte) 5,
(byte) 68,
(byte) 129,
(byte) 206,
(byte) 0,
(byte) 0,
(byte) 129,
(byte) 206,
(byte) 0,
(byte) 12,
(byte) 61,
(byte) 224,
(byte) 137,
(byte) 124,
(byte) 97,
(byte) 239,
(byte) 28,
(byte) 24,
(byte) 129,
(byte) 239,
(byte) 0,
(byte) 0,
(byte) 145,
(byte) 238,
(byte) 0,
(byte) 48,
(byte) 145,
(byte) 238,
(byte) 0,
(byte) 52,
(byte) 145,
(byte) 238,
(byte) 0,
(byte) 56,
(byte) 145,
(byte) 238,
(byte) 0,
(byte) 64,
(byte) 145,
(byte) 238,
(byte) 0,
(byte) 68,
(byte) 145,
(byte) 238,
(byte) 0,
(byte) 72,
(byte) 61,
(byte) 224,
(byte) 137,
(byte) 124,
(byte) 97,
(byte) 239,
(byte) 28,
(byte) 28,
(byte) 129,
(byte) 239,
(byte) 0,
(byte) 0,
(byte) 145,
(byte) 238,
(byte) 0,
(byte) 244,
(byte) 145,
(byte) 238,
(byte) 0,
(byte) 248,
(byte) 145,
(byte) 238,
(byte) 0,
(byte) 252,
(byte) 61,
(byte) 224,
(byte) 137,
(byte) 124,
(byte) 97,
(byte) 239,
(byte) 28,
(byte) 32,
(byte) 129,
(byte) 239,
(byte) 0,
(byte) 0,
(byte) 145,
(byte) 238,
(byte) 0,
(byte) 212,
(byte) 57,
(byte) 224,
(byte) 0,
(byte) 0,
(byte) 57,
(byte) 192,
(byte) 0,
(byte) 0,
(byte) 56,
(byte) 33,
(byte) 0,
(byte) 112,
(byte) 129,
(byte) 129,
(byte) 0,
(byte) 8,
(byte) 125,
(byte) 136,
(byte) 3,
(byte) 166,
(byte) 78,
(byte) 128,
(byte) 0,
(byte) 32
};
byte[] numArray2 = new byte[16]
{
(byte) 61,
(byte) 192,
(byte) 137,
(byte) 124,
(byte) 97,
(byte) 206,
(byte) 26,
(byte) 16,
(byte) 125,
(byte) 201,
(byte) 3,
(byte) 166,
(byte) 78,
(byte) 128,
(byte) 4,
(byte) 33
};
JRPC.WriteUInt32(this.jtag, 2306612248U, 1167654912U);
JRPC.WriteUInt32(this.jtag, 2306612252U, 1202702336U);
JRPC.WriteUInt32(this.jtag, 2306612256U, 896636807U);
JRPC.SetMemory(this.jtag, 2306611728U, numArray1);
JRPC.SetMemory(this.jtag, 2299541616U, numArray2);
this.panel3.BackColor = Color.Green;
this.aimbot = true;
}
else
{
this.panel3.BackColor = Color.Red;
this.aimbot = false;
}
}
private void button4_Click(object sender, EventArgs e)
{
if (!this.noRecoil)
{
JRPC.WriteUInt32(this.jtag, 2294311764U, this.NRCE);
this.panel4.BackColor = Color.Green;
this.noRecoil = true;
}
else
{
JRPC.WriteUInt32(this.jtag, 2294311764U, this.NRCD);
this.panel4.BackColor = Color.Red;
this.noRecoil = false;
}
}
private void pictureBox1_Click(object sender, EventArgs e)
{
new customMessage().Show();
}
protected override void Dispose(bool disposing)
{
if (disposing && this.components != null)
this.components.Dispose();
base.Dispose(disposing);
}
private void InitializeComponent()
{
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (Form1));
this.button1 = new Button();
this.panel1 = new Panel();
this.panel2 = new Panel();
this.button2 = new Button();
this.panel3 = new Panel();
this.button3 = new Button();
this.panel4 = new Panel();
this.button4 = new Button();
this.button5 = new Button();
this.seperator = new Panel();
this.pictureBox1 = new PictureBox();
((ISupportInitialize) this.pictureBox1).BeginInit();
this.SuspendLayout();
this.button1.Enabled = false;
this.button1.Location = new Point(12, 70);
this.button1.Name = "button1";
this.button1.Size = new Size(113, 22);
this.button1.TabIndex = 0;
this.button1.Text = "UAV";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new EventHandler(this.button1_Click);
this.panel1.BackColor = Color.Gray;
this.panel1.Location = new Point(131, 70);
this.panel1.Name = "panel1";
this.panel1.Size = new Size(22, 22);
this.panel1.TabIndex = 1;
this.panel2.BackColor = Color.Gray;
this.panel2.Location = new Point(131, 126);
this.panel2.Name = "panel2";
this.panel2.Size = new Size(22, 22);
this.panel2.TabIndex = 3;
this.button2.Enabled = false;
this.button2.Location = new Point(12, 126);
this.button2.Name = "button2";
this.button2.Size = new Size(113, 22);
this.button2.TabIndex = 2;
this.button2.Text = "Wallhack";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new EventHandler(this.button2_Click);
this.panel3.BackColor = Color.Gray;
this.panel3.Location = new Point(131, 98);
this.panel3.Name = "panel3";
this.panel3.Size = new Size(22, 22);
this.panel3.TabIndex = 5;
this.button3.Enabled = false;
this.button3.Location = new Point(12, 98);
this.button3.Name = "button3";
this.button3.Size = new Size(113, 22);
this.button3.TabIndex = 4;
this.button3.Text = "Aimbot";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new EventHandler(this.button3_Click);
this.panel4.BackColor = Color.Gray;
this.panel4.Location = new Point(131, 154);
this.panel4.Name = "panel4";
this.panel4.Size = new Size(22, 22);
this.panel4.TabIndex = 7;
this.button4.Enabled = false;
this.button4.Location = new Point(12, 154);
this.button4.Name = "button4";
this.button4.Size = new Size(113, 22);
this.button4.TabIndex = 6;
this.button4.Text = "No Recoil";
this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new EventHandler(this.button4_Click);
this.button5.Location = new Point(12, 12);
this.button5.Name = "button5";
this.button5.Size = new Size(141, 30);
this.button5.TabIndex = 8;
this.button5.Text = "Connect";
this.button5.UseVisualStyleBackColor = true;
this.button5.Click += new EventHandler(this.button5_Click);
this.seperator.BackColor = SystemColors.ControlDarkDark;
this.seperator.Location = new Point(1, 48);
this.seperator.Name = "seperator";
this.seperator.Size = new Size(200, 1);
this.seperator.TabIndex = 9;
this.pictureBox1.Cursor = Cursors.Hand;
this.pictureBox1.Image = (Image) componentResourceManager.GetObject("pictureBox1.Image");
this.pictureBox1.Location = new Point(159, 12);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new Size(34, 30);
this.pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 10;
this.pictureBox1.TabStop = false;
this.pictureBox1.Click += new EventHandler(this.pictureBox1_Click);
this.AutoScaleDimensions = new SizeF(6f, 13f);
this.AutoScaleMode = AutoScaleMode.Font;
this.BackColor = Color.White;
this.ClientSize = new Size(200, 184);
this.Controls.Add((Control) this.pictureBox1);
this.Controls.Add((Control) this.seperator);
this.Controls.Add((Control) this.button5);
this.Controls.Add((Control) this.panel4);
this.Controls.Add((Control) this.button4);
this.Controls.Add((Control) this.panel3);
this.Controls.Add((Control) this.button3);
this.Controls.Add((Control) this.panel2);
this.Controls.Add((Control) this.button2);
this.Controls.Add((Control) this.panel1);
this.Controls.Add((Control) this.button1);
this.DoubleBuffered = true;
this.ForeColor = Color.Black;
this.FormBorderStyle = FormBorderStyle.FixedSingle;
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "Form1";
this.StartPosition = FormStartPosition.CenterScreen;
this.Text = "Battlefield 4 | Offhost";
this.Load += new EventHandler(this.Form1_Load);
((ISupportInitialize) this.pictureBox1).EndInit();
this.ResumeLayout(false);
}
}
}