Exemple #1
0
 // Token: 0x06000003 RID: 3 RVA: 0x000020A8 File Offset: 0x000002A8
 public static 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);
 }
Exemple #2
0
 // Token: 0x06000008 RID: 8 RVA: 0x00002250 File Offset: 0x00000450
 public static bool LaunchExploit()
 {
     if (ExploitAPI.NamedPipeExist(cmdpipe))
     {
         MessageBox.Show("Dll already injected", "No problems");
     }
     else if (IsUpdated())
     {
         if (DownloadLatestVersion())
         {
             if (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);
 }
Exemple #3
0
        // Token: 0x06000002 RID: 2 RVA: 0x00002050 File Offset: 0x00000250
        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);
        }
Exemple #4
0
 // Token: 0x06000007 RID: 7 RVA: 0x0000223E File Offset: 0x0000043E
 public static bool isAPIAttached()
 {
     return(ExploitAPI.NamedPipeExist(cmdpipe));
 }