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.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using WeAreDevs_API;
- namespace Project_X
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- ExploitAPI api = new ExploitAPI();
- private void button2_Click(object sender, EventArgs e)
- {
- }
- private void fileSystemWatcher1_Changed(object sender, System.IO.FileSystemEventArgs e)
- {
- }
- private void fastColoredTextBox1_Load(object sender, EventArgs e)
- {
- }
- private void button3_Click(object sender, EventArgs e)
- {
- //MADE BY PAREX |PEOPLE GIVING U THIS LINK IS COPY RIGHT
- OpenFileDialog opendialogfile = new OpenFileDialog();
- opendialogfile.Filter = "Lua File (*.lua)|*.lua|Text File (*.txt)|*.txt";
- opendialogfile.FilterIndex = 2;
- opendialogfile.RestoreDirectory = true;
- if (opendialogfile.ShowDialog() != DialogResult.OK)
- return;
- try
- {
- fastColoredTextBox1.Text = "";
- System.IO.Stream stream;
- if ((stream = opendialogfile.OpenFile()) == null)
- return;
- using (stream)
- this.fastColoredTextBox1.Text = System.IO.File.ReadAllText(opendialogfile.FileName);
- }
- catch (Exception ex)
- {
- int num = (int)MessageBox.Show("An unexpected error has occured", "OOF!", MessageBoxButtons.OK, MessageBoxIcon.Information);
- }
- }
- private void button4_Click(object sender, EventArgs e)
- {
- fastColoredTextBox1.Text = "";
- }
- private void button2_Click_1(object sender, EventArgs e)
- {
- listBox1.Items.Clear();//Clear Items in the LuaScriptList
- Functions.PopulateListBox(listBox1, "./Scripts", "*.txt");
- Functions.PopulateListBox(listBox1, "./Scripts", "*.lua");
- }
- private void button6_Click(object sender, EventArgs e)
- {
- this.WindowState = FormWindowState.Minimized;
- }
- private void button5_Click(object sender, EventArgs e)
- {
- Application.Exit();
- }
- private void button1_Click(object sender, EventArgs e)
- {
- string text = fastColoredTextBox1.Text;
- this.api.SendLuaScript(text);
- }
- private void Form1_MouseMove(object sender, MouseEventArgs e)
- {
- if (e.Button == MouseButtons.Left)
- {
- this.Left += e.X - lastPoint.X;
- this.Top += e.Y - lastPoint.Y;
- }
- }
- Point lastPoint;
- private void Form1_MouseUp(object sender, MouseEventArgs e)
- {
- lastPoint = new Point(e.X, e.Y);
- }
- private void listBox1_SelectedIndexChanged(object sender, EventArgs e) => fastColoredTextBox1.Text = File.ReadAllText($"./Scripts/{listBox1.SelectedItem}");
- private void Form1_Load(object sender, EventArgs e)
- {
- listBox1.Items.Clear();//Clear Items in the LuaScriptList
- Functions.PopulateListBox(listBox1, "./Scripts", "*.txt");
- Functions.PopulateListBox(listBox1, "./Scripts", "*.lua");
- }
- private void label1_Click(object sender, EventArgs e)
- {
- }
- private void label2_Click(object sender, EventArgs e)
- {
- }
- private void button7_Click(object sender, EventArgs e)
- {
- api.IsUpdated();
- api.LaunchExploit();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement