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("Could not send message to the game!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand); return; } catch (Exception ex) { MessageBox.Show(ex.Message.ToString()); return; } } MessageBox.Show("Did " + this.name + " attach?", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); }
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); }
// Token: 0x06000009 RID: 9 RVA: 0x00002288 File Offset: 0x00000488 public bool LaunchExploit() { if (ExploitAPI.NamedPipeExist(this.cmdpipe)) { MessageBox.Show(this.name + " is already attached!", "Info"); } else if (this.IsUpdated()) { if (this.DownloadLatestVersion()) { if (this.injector.InjectDLL()) { return(true); } MessageBox.Show(this.name + " failed to attach!", "Error"); } else { MessageBox.Show("Could not download updates. Please check your firewall settings.", "Error"); } } else { MessageBox.Show("This API is patched. You can wait for updates or choose another API.", "Error"); } return(false); }
// Token: 0x06000003 RID: 3 RVA: 0x000020AC File Offset: 0x000002AC 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); }
// Token: 0x06000007 RID: 7 RVA: 0x00002244 File Offset: 0x00000444 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); }
// Token: 0x06000008 RID: 8 RVA: 0x00002275 File Offset: 0x00000475 public bool isAPIAttached() { return(ExploitAPI.NamedPipeExist(this.cmdpipe)); }