Advertisement
VailMe

Form1.cs

Nov 20th, 2019
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.20 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. using WeAreDevs_API;
  11.  
  12. namespace wdr_failure
  13. {
  14.     public partial class Form1 : Form
  15.     {
  16.         ExploitAPI api = new ExploitAPI();
  17.         public Form1()
  18.         {
  19.             InitializeComponent();
  20.         }
  21.  
  22.         private void button4_Click(object sender, EventArgs e)
  23.         {
  24.             api.SendLuaScript(fastColoredTextBox1.Text);
  25.         }
  26.  
  27.         private void button5_Click(object sender, EventArgs e)
  28.         {
  29.             fastColoredTextBox1.Clear();
  30.         }
  31.  
  32.         private void button6_Click(object sender, EventArgs e)
  33.         {
  34.             api.LaunchExploit();          
  35.         }
  36.  
  37.         private void button2_Click(object sender, EventArgs e)
  38.         {
  39.             Application.Exit();
  40.         }
  41.  
  42.         private void button3_Click(object sender, EventArgs e)
  43.         {
  44.             this.WindowState = FormWindowState.Minimized;
  45.         }
  46.         private bool dragging = false;
  47.         private Point offset;
  48.         private Point start_point = new Point(0, 0);
  49.  
  50.         private void panel1_MouseDown(object sender, MouseEventArgs e)
  51.         {
  52.             dragging = true;
  53.             start_point = new Point(e.X, e.Y);
  54.         }
  55.  
  56.         private void panel1_MouseMove(object sender, MouseEventArgs e)
  57.         {
  58.             if (dragging)
  59.             {
  60.                 Point p = PointToScreen(e.Location);
  61.                 Location = new Point(p.X - this.start_point.X, p.Y - this.start_point.Y);
  62.             }
  63.         }
  64.  
  65.         private void panel1_MouseUp(object sender, MouseEventArgs e)
  66.         {
  67.             dragging = false;
  68.         }
  69.  
  70.         private void CheckInjected()
  71.         {
  72.             if (api.isAPIAttached())
  73.             {
  74.                 label1.Text = "Status: Injected";
  75.             }
  76.             else
  77.             {
  78.                 label1.Text = "Status: Not injected";
  79.             }
  80.         }
  81.  
  82.         private void timer1_Tick(object sender, EventArgs e)
  83.         {
  84.             CheckInjected();
  85.         }
  86.     }
  87. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement