示例#1
0
 private void SMTP(string pipe, string input)
 {
     if (ExploitAPI.NamedPipeExist(pipe))
     {
         try
         {
             using (NamedPipeClientStream namedPipeClientStream = new NamedPipeClientStream(".", pipe, PipeDirection.Out))
             {
                 namedPipeClientStream.Connect();
                 using (StreamWriter streamWriter = new StreamWriter(namedPipeClientStream))
                 {
                     streamWriter.Write(input);
                     streamWriter.Dispose();
                 }
                 namedPipeClientStream.Dispose();
             }
             return;
         }
         catch (IOException)
         {
             MessageBox.Show("Error occured sending message to the game!", "Connection Failed!", MessageBoxButtons.OK, MessageBoxIcon.Hand);
             return;
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.Message.ToString());
             return;
         }
     }
     MessageBox.Show("Error occured. Did the dll properly inject?", "Oops", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
 }
示例#2
0
 public bool LaunchExploit()
 {
     if (ExploitAPI.NamedPipeExist(this.cmdpipe))
     {
         MessageBox.Show("Dll already injected", "No problems");
     }
     else if (this.IsUpdated())
     {
         if (this.DownloadLatestVersion())
         {
             if (this.injector.InjectDLL())
             {
                 return(true);
             }
             MessageBox.Show("DLL failed to inject", "Error");
         }
         else
         {
             MessageBox.Show("Could not download the latest version! Did your firewall block us?", "Error");
         }
     }
     else
     {
         MessageBox.Show("Exploit is currently patched... Please wait for the developers to fix it! Meanwhile, check wearedevs.net for updates/info.", "Error");
     }
     return(false);
 }
示例#3
0
        public static bool NamedPipeExist(string pipeName)
        {
            bool result;

            try
            {
                int timeout = 0;
                if (!ExploitAPI.WaitNamedPipe(Path.GetFullPath(string.Format("\\\\.\\pipe\\{0}", pipeName)), timeout))
                {
                    int lastWin32Error = Marshal.GetLastWin32Error();
                    if (lastWin32Error == 0)
                    {
                        return(false);
                    }
                    if (lastWin32Error == 2)
                    {
                        return(false);
                    }
                }
                result = true;
            }
            catch (Exception)
            {
                result = false;
            }
            return(result);
        }
示例#4
0
 public bool isAPIAttached()
 {
     return(ExploitAPI.NamedPipeExist(this.cmdpipe));
 }