public static void Inject() { if (NamedPipes.NamedPipeExist(NamedPipes.luapipename)) //check if the pipe exist { MessageBox.Show("Already injected!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); //if the pipe exist that's mean that we don't need to inject return; } else if (!NamedPipes.NamedPipeExist(NamedPipes.luapipename)) //check if the pipe don't exist { switch (Injector.DllInjector.GetInstance.Inject("RobloxPlayerBeta", AppDomain.CurrentDomain.BaseDirectory + "Axon.dll")) //Process name and dll directory { case Injector.DllInjectionResult.DllNotFound: //if can't find the dll MessageBox.Show($"Could not find Axon DLL!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); //display messagebox to tell that dll was not found return; case Injector.DllInjectionResult.GameProcessNotFound: //if can't find the process MessageBox.Show("Couldn't find RobloxPlayerBeta!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); //display messagebox to tell that proccess was not found return; case Injector.DllInjectionResult.InjectionFailed: //if injection fails(this don't work or only on special cases) MessageBox.Show("Injection failed! Please try again later.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); //display messagebox to tell that injection failed return; } Thread.Sleep(3000); if (!NamedPipes.NamedPipeExist(NamedPipes.luapipename)) //check if the pipe dont exist { MessageBox.Show("Injection failed! Please try again later.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); //display that the pipe was not found so the injection was unsuccessful } } }
private void ExecuteButton_Click(object sender, EventArgs e) { if (NamedPipes.NamedPipeExist(NamedPipes.luapipename)) { NamedPipes.LuaPipe(ScriptBox.Text); } else { MessageBox.Show("Inject " + Functions.exploitdllname + " before Using this!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } }
public static void Execute(string script = "print(\"Hello World!\")") { if (NamedPipes.NamedPipeExist(NamedPipes.luapipename)) //check if the pipe exist { NamedPipes.LuaPipe(script); //lua pipe function to send the script } else { MessageBox.Show($"Inject Axon before using this!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);//if the pipe can't be found a messagebox will appear return; } }
public static void check() { for (;;) { if (NamedPipes.NamedPipeExist(NamedPipes.luapipename)) { Console.WriteLine("Pipe found"); } else { Console.WriteLine("Pipe doesn't exist"); } //foreach (Process pc in Process.GetProcessesByName("RobloxPlayerBeta")) // try // { // pc.Kill(); // } // catch (Exception ex) // { // Console.WriteLine($"Nothing to worrie about " + ex.ToString()); // } Thread.Sleep(2000); } }