Advertisement
dkg_yt

ExOn3

Oct 12th, 2019
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 KB | None | 0 0
  1. string exploitdllname = "DLLNAMEHERE"
  2. public static void Inject()
  3. {
  4. if (NamedPipes.NamedPipeExist(NamedPipes.luapipename))//check if the pipe exist
  5. {
  6. MessageBox.Show("Already injected!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);//if the pipe exist that's mean that we don't need to inject
  7. return;
  8. }
  9. else if (!NamedPipes.NamedPipeExist(NamedPipes.luapipename))//check if the pipe don't exist
  10. {
  11. switch (Injector.DllInjector.GetInstance.Inject("RobloxPlayerBeta", AppDomain.CurrentDomain.BaseDirectory + exploitdllname))//Process name and dll directory
  12. {
  13. case Injector.DllInjectionResult.DllNotFound://if can't find the dll
  14. MessageBox.Show($"Couldn't find {exploitdllname}", "Dll was not found!", MessageBoxButtons.OK, MessageBoxIcon.Error);//display messagebox to tell that dll was not found
  15. return;
  16. case Injector.DllInjectionResult.GameProcessNotFound://if can't find the process
  17. MessageBox.Show("Couldn't find RobloxPlayerBeta.exe!", "Target process was not found!", MessageBoxButtons.OK, MessageBoxIcon.Error);//display messagebox to tell that proccess was not found
  18. return;
  19. case Injector.DllInjectionResult.InjectionFailed://if injection fails(this don't work or only on special cases)
  20. MessageBox.Show("Injection Failed!", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);//display messagebox to tell that injection failed
  21. return;
  22. }
  23. Thread.Sleep(3000);//pause the ui for 3 seconds
  24. if (!NamedPipes.NamedPipeExist(NamedPipes.luapipename))//check if the pipe dont exist
  25. {
  26. MessageBox.Show("Injection Failed!\nMaybe you are Missing something\nor took more time to check if was ready\nor other stuff", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);//display that the pipe was not found so the injection was unsuccessful
  27. }
  28. }
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement