Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.54 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.IO;
  7. using System.Linq;
  8. using System.Runtime.InteropServices;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. using System.Windows.Forms;
  12.  
  13. namespace what1
  14. {
  15. public partial class Form1 : Form
  16. {
  17. [DllImport("WeAreDevs_API.cpp.dll", CallingConvention = CallingConvention.Cdecl)]
  18. public static extern bool LaunchExploit();
  19.  
  20. [DllImport("WeAreDevs_API.cpp.dll", CallingConvention = CallingConvention.Cdecl)]
  21. public static extern bool SendLuaCScript(string script);
  22.  
  23. [DllImport("WeAreDevs_API.cpp.dll", CallingConvention = CallingConvention.Cdecl)]
  24. public static extern bool SendLimitedLuaScript(string script);
  25.  
  26. [DllImport("WeAreDevs_API.cpp.dll", CallingConvention = CallingConvention.Cdecl)]
  27. public static extern bool SendCommand(string script);
  28. int mov;
  29. int movX;
  30. int movY;
  31. public Form1()
  32. {
  33. InitializeComponent();
  34. listBox1.Items.Clear();//Clear Items in the LuaScriptList
  35. Functions.PopulateListBox(listBox1, "./Scripts", "*.txt");
  36. Functions.PopulateListBox(listBox1, "./Scripts", "*.lua");
  37. }
  38.  
  39. private void Button1_Click(object sender, EventArgs e)
  40. {
  41. Application.Exit();
  42. }
  43.  
  44. private void Button2_Click(object sender, EventArgs e)
  45. {
  46. WindowState = FormWindowState.Minimized;
  47. }
  48.  
  49. private void Button3_Click(object sender, EventArgs e)
  50. {
  51. SendLimitedLuaScript(fastColoredTextBox1.Text);
  52. }
  53.  
  54. private void Button23_Click(object sender, EventArgs e)
  55. {
  56. LaunchExploit();
  57. }
  58.  
  59. private void Button4_Click(object sender, EventArgs e)
  60. {
  61. fastColoredTextBox1.Clear();
  62. }
  63.  
  64. private void Button5_Click(object sender, EventArgs e)
  65. {
  66. Stream myStream;
  67. OpenFileDialog openFileDialog1 = new OpenFileDialog();
  68.  
  69. if (openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
  70. {
  71. if ((myStream = openFileDialog1.OpenFile()) != null)
  72. {
  73. string strfilename = openFileDialog1.FileName;
  74. string filetext = File.ReadAllText(strfilename);
  75. fastColoredTextBox1.Text = filetext;
  76. }
  77. }
  78. }
  79.  
  80. private void Button6_Click(object sender, EventArgs e)
  81. {
  82. StreamWriter File = new StreamWriter(textBox3.Text + ".txt");
  83. File.Write(fastColoredTextBox1.Text);
  84. File.Close();
  85. }
  86.  
  87. private void ListBox1_SelectedIndexChanged(object sender, EventArgs e)
  88. {
  89.  
  90. }
  91.  
  92. private void RefreshToolStripMenuItem_Click(object sender, EventArgs e)
  93. {
  94. listBox1.Items.Clear();//Clear Items in the LuaScriptList
  95. Functions.PopulateListBox(listBox1, "./Scripts", "*.txt");
  96. Functions.PopulateListBox(listBox1, "./Scripts", "*.lua");
  97. }
  98.  
  99. private void ExecuteToolStripMenuItem_Click(object sender, EventArgs e)
  100. {
  101. if (this.listBox1.SelectedIndex != -1)
  102. {
  103. SendLimitedLuaScript(System.IO.File.ReadAllText("scripts\\" + this.listBox1.SelectedItem.ToString()));
  104. }
  105. }
  106.  
  107. private void LoadToEditorToolStripMenuItem_Click(object sender, EventArgs e)
  108. {
  109. fastColoredTextBox1.Text = (System.IO.File.ReadAllText("scripts\\" + this.listBox1.SelectedItem.ToString()));
  110. }
  111.  
  112. private void Button7_Click(object sender, EventArgs e)
  113. {
  114. Form2 f2 = new Form2();
  115. f2.ShowDialog();
  116. }
  117.  
  118. private void Button8_Click(object sender, EventArgs e)
  119. {
  120. SendCommand("btools me");
  121. }
  122.  
  123. private void Button9_Click(object sender, EventArgs e)
  124. {
  125. SendLimitedLuaScript(textBox4.Text);
  126. }
  127.  
  128. private void Button10_Click(object sender, EventArgs e)
  129. {
  130. SendLimitedLuaScript(textBox5.Text);
  131. }
  132.  
  133. private void Button11_Click(object sender, EventArgs e)
  134. {
  135. SendCommand("kill me");
  136. }
  137.  
  138. private void Button12_Click(object sender, EventArgs e)
  139. {
  140. SendCommand("kill" + textBox1.Text);
  141. }
  142.  
  143. private void Button13_Click(object sender, EventArgs e)
  144. {
  145. MessageBox.Show("Coming soon");
  146. }
  147.  
  148. private void Button14_Click(object sender, EventArgs e)
  149. {
  150. MessageBox.Show("Coming soon");
  151. }
  152.  
  153. private void Button15_Click(object sender, EventArgs e)
  154. {
  155. SendLimitedLuaScript(textBox6.Text);
  156. }
  157.  
  158. private void Button16_Click(object sender, EventArgs e)
  159. {
  160. SendLimitedLuaScript(textBox7.Text);
  161. MessageBox.Show("To stop flying click e");
  162. }
  163.  
  164. private void Button17_Click(object sender, EventArgs e)
  165. {
  166. SendLimitedLuaScript(textBox8.Text);
  167. }
  168.  
  169. private void Button18_Click(object sender, EventArgs e)
  170. {
  171. SendLimitedLuaScript(textBox9.Text);
  172. }
  173.  
  174. private void Button19_Click(object sender, EventArgs e)
  175. {
  176. SendLimitedLuaScript(textBox10.Text);
  177. }
  178.  
  179. private void Button20_Click(object sender, EventArgs e)
  180. {
  181. SendLimitedLuaScript(textBox11.Text);
  182. }
  183.  
  184. private void Button21_Click(object sender, EventArgs e)
  185. {
  186. SendLimitedLuaScript(textBox4.Text);
  187. }
  188.  
  189. private void Button22_Click(object sender, EventArgs e)
  190. {
  191. SendLimitedLuaScript(textBox6.Text);
  192. }
  193.  
  194. private void Panel1_Paint(object sender, PaintEventArgs e)
  195. {
  196.  
  197. }
  198.  
  199. private void Panel1_MouseDown(object sender, MouseEventArgs e)
  200. {
  201. mov = 1;
  202. movX = e.X;
  203. movY = e.Y;
  204. }
  205.  
  206. private void Panel1_MouseUp(object sender, MouseEventArgs e)
  207. {
  208. if (mov == 1)
  209. {
  210. this.SetDesktopLocation(MousePosition.X - movX, MousePosition.Y - movY);
  211. }
  212. }
  213.  
  214. private void Panel1_MouseMove(object sender, MouseEventArgs e)
  215. {
  216. mov = 0;
  217. }
  218. }
  219. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement