Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- laxion says: xenon big gay
- **EXECUTION**:
- public static bool result;
- public static int timeout = 0;
- public static string luapipename = "nigga";
- [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
- [return: MarshalAs(UnmanagedType.Bool)]
- private static extern bool WaitNamedPipe(string name, int inttime);
- public static bool checkpipe(string pipename)
- {
- try
- {
- if (!WaitNamedPipe(Path.GetFullPath(string.Format("\\\\\\\\.\\\\pipe\\\\{0}", pipename)), timeout))
- {
- int lastWin32Error = Marshal.GetLastWin32Error();
- if (lastWin32Error == 0) { result = false; return result; }
- if (lastWin32Error == 2) { result = false; return result; }
- }result = true;
- }
- catch (Exception) { result = false; }
- return result;
- }
- public static void niggaExecute(string script)
- {
- if (checkpipe(luapipename))
- {
- new Thread(() => {
- try
- {
- using (NamedPipeClientStream npcs = new NamedPipeClientStream(".", luapipename, PipeDirection.Out))
- {
- npcs.Connect();
- using (StreamWriter sw = new StreamWriter(npcs, System.Text.Encoding.Default, 999999)) {
- sw.Write(script);
- sw.Dispose();
- }
- npcs.Dispose();
- }
- }
- catch (Exception ex) { MessageBox.Show(ex.Message.ToString()); }
- }).Start();
- }
- else { return; }
- }
- ON UR EXECUTE BUTTON
- if(checkpipe(luapipename)) {
- string txtBox= textbox.text;
- WebClient wc= new WebClient();
- if (txtBox.Contains("loadstring(game:HttpGet(('"))
- {
- string replacershit = txtBox.Replace("loadstring(game:HttpGet(('", "").Replace("'),true))()", "");
- string finalshit= wc.DownloadString(replacershit );
- niggaExecute(finalshit);
- }
- if (txtBox.Contains("loadstring(game:HttpGet((" + '\u0022'))
- {
- string replacershit = txtBox.Replace("loadstring(game:HttpGet((" + '\u0022', "").Replace('\u0022' + "),true))()", "");
- string finalshit= wc.DownloadString(replacershit );
- niggaExecute(finalshit);
- }
- else { niggaExecute(txtBox); }
- } else { MessageBox.Show("not injected nigga"); }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement