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); }
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); }
public bool isAPIAttached() { return(ExploitAPI.NamedPipeExist(this.cmdpipe)); }