Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.73 KB | None | 0 0
  1. laxion says: xenon big gay
  2. **EXECUTION**:
  3.  
  4. public static bool result;
  5. public static int timeout = 0;
  6. public static string luapipename = "nigga";
  7.  
  8. [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
  9. [return: MarshalAs(UnmanagedType.Bool)]
  10.  
  11. private static extern bool WaitNamedPipe(string name, int inttime);
  12.  
  13. public static bool checkpipe(string pipename)
  14. {
  15. try
  16. {
  17. if (!WaitNamedPipe(Path.GetFullPath(string.Format("\\\\\\\\.\\\\pipe\\\\{0}", pipename)), timeout))
  18. {
  19. int lastWin32Error = Marshal.GetLastWin32Error();
  20. if (lastWin32Error == 0) { result = false; return result; }
  21. if (lastWin32Error == 2) { result = false; return result; }
  22. }result = true;
  23. }
  24. catch (Exception) { result = false; }
  25. return result;
  26. }
  27.  
  28.  
  29. public static void niggaExecute(string script)
  30. {
  31. if (checkpipe(luapipename))
  32. {
  33. new Thread(() => {
  34. try
  35. {
  36. using (NamedPipeClientStream npcs = new NamedPipeClientStream(".", luapipename, PipeDirection.Out))
  37. {
  38. npcs.Connect();
  39. using (StreamWriter sw = new StreamWriter(npcs, System.Text.Encoding.Default, 999999)) {
  40. sw.Write(script);
  41. sw.Dispose();
  42. }
  43. npcs.Dispose();
  44. }
  45. }
  46. catch (Exception ex) { MessageBox.Show(ex.Message.ToString()); }
  47. }).Start();
  48. }
  49. else { return; }
  50. }
  51.  
  52. ON UR EXECUTE BUTTON
  53.  
  54. if(checkpipe(luapipename)) {
  55. string txtBox= textbox.text;
  56. WebClient wc= new WebClient();
  57.  
  58. if (txtBox.Contains("loadstring(game:HttpGet(('"))
  59. {
  60. string replacershit = txtBox.Replace("loadstring(game:HttpGet(('", "").Replace("'),true))()", "");
  61. string finalshit= wc.DownloadString(replacershit );
  62. niggaExecute(finalshit);
  63. }
  64.  
  65. if (txtBox.Contains("loadstring(game:HttpGet((" + '\u0022'))
  66. {
  67. string replacershit = txtBox.Replace("loadstring(game:HttpGet((" + '\u0022', "").Replace('\u0022' + "),true))()", "");
  68. string finalshit= wc.DownloadString(replacershit );
  69. niggaExecute(finalshit);
  70. }
  71.  
  72. else { niggaExecute(txtBox); }
  73. } else { MessageBox.Show("not injected nigga"); }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement