Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.IO;
- using System.Linq;
- using System.Runtime.InteropServices;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace what1
- {
- public partial class Form1 : Form
- {
- [DllImport("WeAreDevs_API.cpp.dll", CallingConvention = CallingConvention.Cdecl)]
- public static extern bool LaunchExploit();
- [DllImport("WeAreDevs_API.cpp.dll", CallingConvention = CallingConvention.Cdecl)]
- public static extern bool SendLuaCScript(string script);
- [DllImport("WeAreDevs_API.cpp.dll", CallingConvention = CallingConvention.Cdecl)]
- public static extern bool SendLimitedLuaScript(string script);
- [DllImport("WeAreDevs_API.cpp.dll", CallingConvention = CallingConvention.Cdecl)]
- public static extern bool SendCommand(string script);
- int mov;
- int movX;
- int movY;
- public Form1()
- {
- InitializeComponent();
- listBox1.Items.Clear();//Clear Items in the LuaScriptList
- Functions.PopulateListBox(listBox1, "./Scripts", "*.txt");
- Functions.PopulateListBox(listBox1, "./Scripts", "*.lua");
- }
- private void Button1_Click(object sender, EventArgs e)
- {
- Application.Exit();
- }
- private void Button2_Click(object sender, EventArgs e)
- {
- WindowState = FormWindowState.Minimized;
- }
- private void Button3_Click(object sender, EventArgs e)
- {
- SendLimitedLuaScript(fastColoredTextBox1.Text);
- }
- private void Button23_Click(object sender, EventArgs e)
- {
- LaunchExploit();
- }
- private void Button4_Click(object sender, EventArgs e)
- {
- fastColoredTextBox1.Clear();
- }
- private void Button5_Click(object sender, EventArgs e)
- {
- Stream myStream;
- OpenFileDialog openFileDialog1 = new OpenFileDialog();
- if (openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
- {
- if ((myStream = openFileDialog1.OpenFile()) != null)
- {
- string strfilename = openFileDialog1.FileName;
- string filetext = File.ReadAllText(strfilename);
- fastColoredTextBox1.Text = filetext;
- }
- }
- }
- private void Button6_Click(object sender, EventArgs e)
- {
- StreamWriter File = new StreamWriter(textBox3.Text + ".txt");
- File.Write(fastColoredTextBox1.Text);
- File.Close();
- }
- private void ListBox1_SelectedIndexChanged(object sender, EventArgs e)
- {
- }
- private void RefreshToolStripMenuItem_Click(object sender, EventArgs e)
- {
- listBox1.Items.Clear();//Clear Items in the LuaScriptList
- Functions.PopulateListBox(listBox1, "./Scripts", "*.txt");
- Functions.PopulateListBox(listBox1, "./Scripts", "*.lua");
- }
- private void ExecuteToolStripMenuItem_Click(object sender, EventArgs e)
- {
- if (this.listBox1.SelectedIndex != -1)
- {
- SendLimitedLuaScript(System.IO.File.ReadAllText("scripts\\" + this.listBox1.SelectedItem.ToString()));
- }
- }
- private void LoadToEditorToolStripMenuItem_Click(object sender, EventArgs e)
- {
- fastColoredTextBox1.Text = (System.IO.File.ReadAllText("scripts\\" + this.listBox1.SelectedItem.ToString()));
- }
- private void Button7_Click(object sender, EventArgs e)
- {
- Form2 f2 = new Form2();
- f2.ShowDialog();
- }
- private void Button8_Click(object sender, EventArgs e)
- {
- SendCommand("btools me");
- }
- private void Button9_Click(object sender, EventArgs e)
- {
- SendLimitedLuaScript(textBox4.Text);
- }
- private void Button10_Click(object sender, EventArgs e)
- {
- SendLimitedLuaScript(textBox5.Text);
- }
- private void Button11_Click(object sender, EventArgs e)
- {
- SendCommand("kill me");
- }
- private void Button12_Click(object sender, EventArgs e)
- {
- SendCommand("kill" + textBox1.Text);
- }
- private void Button13_Click(object sender, EventArgs e)
- {
- MessageBox.Show("Coming soon");
- }
- private void Button14_Click(object sender, EventArgs e)
- {
- MessageBox.Show("Coming soon");
- }
- private void Button15_Click(object sender, EventArgs e)
- {
- SendLimitedLuaScript(textBox6.Text);
- }
- private void Button16_Click(object sender, EventArgs e)
- {
- SendLimitedLuaScript(textBox7.Text);
- MessageBox.Show("To stop flying click e");
- }
- private void Button17_Click(object sender, EventArgs e)
- {
- SendLimitedLuaScript(textBox8.Text);
- }
- private void Button18_Click(object sender, EventArgs e)
- {
- SendLimitedLuaScript(textBox9.Text);
- }
- private void Button19_Click(object sender, EventArgs e)
- {
- SendLimitedLuaScript(textBox10.Text);
- }
- private void Button20_Click(object sender, EventArgs e)
- {
- SendLimitedLuaScript(textBox11.Text);
- }
- private void Button21_Click(object sender, EventArgs e)
- {
- SendLimitedLuaScript(textBox4.Text);
- }
- private void Button22_Click(object sender, EventArgs e)
- {
- SendLimitedLuaScript(textBox6.Text);
- }
- private void Panel1_Paint(object sender, PaintEventArgs e)
- {
- }
- private void Panel1_MouseDown(object sender, MouseEventArgs e)
- {
- mov = 1;
- movX = e.X;
- movY = e.Y;
- }
- private void Panel1_MouseUp(object sender, MouseEventArgs e)
- {
- if (mov == 1)
- {
- this.SetDesktopLocation(MousePosition.X - movX, MousePosition.Y - movY);
- }
- }
- private void Panel1_MouseMove(object sender, MouseEventArgs e)
- {
- mov = 0;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement