Advertisement
denisyordanovt

Untitled

Jul 26th, 2018
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. ----- Classes -----
  2.  
  3. Functions - https://pastebin.com/qkGdxi64
  4.  
  5. Injector - https://pastebin.com/SsKCm2d8
  6.  
  7. NamedPipes - https://pastebin.com/4wvXKR5m
  8.  
  9. ----- Buttons and Script Box -----
  10.  
  11. Set textbox's name to "ScriptBox"
  12.  
  13. Set one of the button's names to "Inject"
  14.  
  15. Set one of the button's names to "ExecuteButton"
  16.  
  17. Set one of the button's names to "ClearButton"
  18.  
  19. Set one of the button's names to "OpenButton"
  20.  
  21. ----- Code for the buttons and script box -----
  22.  
  23. Inject button: Functions.Inject();
  24.  
  25. Execute button: if (NamedPipes.NamedPipeExist(NamedPipes.luapipename))
  26. {
  27. NamedPipes.LuaPipe(ScriptBox.Text);
  28. }
  29. else
  30. {
  31. MessageBox.Show("Inject " + Functions.exploitdllname + " before Using this!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return;
  32.  
  33. Clear button: ScriptBox.Clear();
  34.  
  35. Open button: if (Functions.openfiledialog.ShowDialog() == DialogResult.OK)
  36. {
  37. try
  38. {
  39. ScriptBox.Text = File.ReadAllText(Functions.openfiledialog.FileName);
  40.  
  41. }
  42. catch (Exception ex)
  43. {
  44. MessageBox.Show("Error: Could not read file from disk. Original error: " + ex.Message);
  45. }
  46.  
  47.  
  48.  
  49. ----- DONE! -----
  50.  
  51. And just like that, you are done with the UI.
  52.  
  53. You need a Dll, however. Keep watching in the video to get a DLL from Trollicus_Dev.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement