Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static bool Injection(string Injection)
- {
- bool result;
- try
- {
- bool flag = !Main.WaitNamedPipe(Path.GetFullPath(string.Format("\\\\.\\pipe\\{0}", Injection)), 0) && (Marshal.GetLastWin32Error() == 0 || Marshal.GetLastWin32Error() == 2);
- if (flag)
- {
- result = false;
- }
- else
- {
- result = true;
- }
- }
- catch (Exception)
- {
- result = false;
- }
- return result;
- }
- // Token: 0x06000016 RID: 22 RVA: 0x00002434 File Offset: 0x00000634
- public bool isConnected()
- {
- return Main.Injection("fuckoff");
- }
- public void SendLua(string str)
- {
- bool flag = !this.isConnected();
- if (flag)
- {
- }
- else
- {
- using (NamedPipeClientStream namedPipeClientStream = new NamedPipeClientStream(".", "fuckoff", PipeDirection.Out))
- {
- namedPipeClientStream.Connect();
- using (StreamWriter streamWriter = new StreamWriter(namedPipeClientStream))
- {
- streamWriter.Write(str);
- streamWriter.Dispose();
- streamWriter.Close();
- }
- namedPipeClientStream.Dispose();
- namedPipeClientStream.Close();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement