HectiqueExploits

WeAreDevs API Documentation

Jun 5th, 2020 (edited)
754
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.00 KB | None | 0 0
  1. //WeAreDevs API C# code for Winforms
  2.  
  3. //ExploitAPI code
  4. //Put this code under InitializeComponent
  5. ExploitAPI api = new ExploitAPI();
  6.  
  7. //Inject code
  8. //Put this code in your Inject button
  9. api.LaunchExploit
  10.  
  11. //Execute Script
  12. //Put this code in your Execute Button
  13. this.api.SendLuaCScript(textButtonName.Text);
  14.  
  15. //Command Code
  16. //Put this code in any of your Exploit's quick commands.
  17. api.SendCommand("Command string here");
  18.  
  19. //Raw Pastebin Code
  20. //Put this in a button that will execute a raw pastebin
  21. api.SendLuaCScript("loadstring(game:HttpGet(('raw pastebin link here'),true))()");
  22.  
  23. //Open File code
  24. //Put this in an open file button
  25. OpenFileDialog opendialogfile = new OpenFileDialog();
  26.             opendialogfile.Filter = "Lua File (*.lua)|*.lua|Text File (*.txt)|*.txt";
  27.             opendialogfile.FilterIndex = 2;
  28.             opendialogfile.RestoreDirectory = true;
  29.             if (opendialogfile.ShowDialog() != DialogResult.OK)
  30.                 return;
  31.             try
  32.             {
  33.                 textboxname.Text = "";
  34.                 System.IO.Stream stream;
  35.                 if ((stream = opendialogfile.OpenFile()) == null)
  36.                     return;
  37.                 using (stream)
  38.                     this.textboxname.Text = System.IO.File.ReadAllText(opendialogfile.FileName);
  39.             }
  40.             catch (Exception)
  41.             {
  42.                 int num = (int)MessageBox.Show("An unexpected error has occured", "OOF!", MessageBoxButtons.OK, MessageBoxIcon.Information);
  43.  
  44.             }
  45.  
  46. //Save file code
  47. //put this in a Save File button //Make sure you are using System.IO
  48.             SaveFileDialog sfd = new SaveFileDialog();
  49.             sfd.Filter = "Txt Files (*.txt)|*.txt|Lua Files (*.lua)|*.lua|All Files (*.*)|*.*";
  50.             if (sfd.ShowDialog() == DialogResult.OK)
  51.             {
  52.                 Stream s = sfd.OpenFile();
  53.                 StreamWriter sw = new StreamWriter(s);
  54.                 sw.Write(ScriptBox.Text);
  55.                 sw.Close();
  56.             }
Add Comment
Please, Sign In to add comment