Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. using System;
  2. using System.Threading;
  3. using System.Windows.Forms;
  4.  
  5. namespace JailPain
  6. {
  7. class Functions
  8. {
  9. public static string exploitdllname = "JailPain.dll";
  10. public static void Inject()
  11. {
  12. {
  13. return;
  14. }
  15. {
  16. switch (Injector.DllInjector.GetInstance.Inject("RobloxPlayerBeta", AppDomain.CurrentDomain.BaseDirectory + exploitdllname))//Process name and dll directory
  17. {
  18. case Injector.DllInjectionResult.DllNotFound://if can't find the dll
  19. MessageBox.Show("Can't find " + exploitdllname, "Uhh?", MessageBoxButtons.OK, MessageBoxIcon.Error);
  20. return;
  21. case Injector.DllInjectionResult.GameProcessNotFound://if can't find the process
  22. MessageBox.Show("ROBLOX not found!", "Open ROBLOX!", MessageBoxButtons.OK, MessageBoxIcon.Error);//display messagebox to tell that proccess was not found
  23. return;
  24. case Injector.DllInjectionResult.InjectionFailed://if injection fails(this don't work or only on special cases)
  25. MessageBox.Show("Something went wrong! Please try again.", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);//display messagebox to tell that injection failed
  26. return;
  27. }
  28. Thread.Sleep(1000);//pause the ui for 3 seconds
  29. {
  30. MessageBox.Show("Something went wrong! Please try again.", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);//display that the pipe was not found so the injection was unsuccessful
  31. }
  32. }
  33. }
  34.  
  35. public static OpenFileDialog openfiledialog = new OpenFileDialog
  36. {
  37. Filter = "Lua Script Txt (*.txt)|*.txt|All files (*.*)|*.*",//add txt and all files filter
  38. FilterIndex = 1,//choose what filter will be the default
  39. RestoreDirectory = true,//restore the last used directory
  40. Title = "Lua Open Script"//OpenFileDialog Tittle
  41. };//Initialize OpenFileDialog
  42. }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement