Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //WeAreDevs API C# code for Winforms
- //ExploitAPI code
- //Put this code under InitializeComponent
- ExploitAPI api = new ExploitAPI();
- //Inject code
- //Put this code in your Inject button
- api.LaunchExploit
- //Execute Script
- //Put this code in your Execute Button
- this.api.SendLuaCScript(textButtonName.Text);
- //Command Code
- //Put this code in any of your Exploit's quick commands.
- api.SendCommand("Command string here");
- //Raw Pastebin Code
- //Put this in a button that will execute a raw pastebin
- api.SendLuaCScript("loadstring(game:HttpGet(('raw pastebin link here'),true))()");
- //Open File code
- //Put this in an open file button
- 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
- {
- textboxname.Text = "";
- System.IO.Stream stream;
- if ((stream = opendialogfile.OpenFile()) == null)
- return;
- using (stream)
- this.textboxname.Text = System.IO.File.ReadAllText(opendialogfile.FileName);
- }
- catch (Exception)
- {
- int num = (int)MessageBox.Show("An unexpected error has occured", "OOF!", MessageBoxButtons.OK, MessageBoxIcon.Information);
- }
- //Save file code
- //put this in a Save File button //Make sure you are using System.IO
- SaveFileDialog sfd = new SaveFileDialog();
- sfd.Filter = "Txt Files (*.txt)|*.txt|Lua Files (*.lua)|*.lua|All Files (*.*)|*.*";
- if (sfd.ShowDialog() == DialogResult.OK)
- {
- Stream s = sfd.OpenFile();
- StreamWriter sw = new StreamWriter(s);
- sw.Write(ScriptBox.Text);
- sw.Close();
- }
Add Comment
Please, Sign In to add comment