Advertisement
Guest User

w2

a guest
Oct 21st, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.26 KB | None | 0 0
  1. using System;
  2. using System.Threading;
  3. using System.Windows.Forms;
  4.  
  5. namespace AxonSimpleUI
  6. {
  7.     class Functions
  8.     {
  9.         public static string exploitdllname = "Axon.dll";//Axon.dll this is the name of your dll
  10.         public static void Inject()
  11.         {
  12.             if (NamedPipes.NamedPipeExist(NamedPipes.luapipename))//check if the pipe exist
  13.             {
  14.                 MessageBox.Show("Already injected!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);//if the pipe exist that's mean that we don't need to inject
  15.                 return;
  16.             }
  17.             else if (!NamedPipes.NamedPipeExist(NamedPipes.luapipename))//check if the pipe don't exist
  18.             {
  19.                 switch (Injector.DllInjector.GetInstance.Inject("RobloxPlayerBeta", AppDomain.CurrentDomain.BaseDirectory + exploitdllname))//Process name and dll directory
  20.                 {
  21.                     case Injector.DllInjectionResult.DllNotFound://if can't find the dll
  22.                         MessageBox.Show("Couldn't find " + exploitdllname, "Dll was not found!", MessageBoxButtons.OK, MessageBoxIcon.Error);//display messagebox to tell that dll was not found
  23.                         return;
  24.                     case Injector.DllInjectionResult.GameProcessNotFound://if can't find the process
  25.                         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
  26.                         return;
  27.                     case Injector.DllInjectionResult.InjectionFailed://if injection fails(this don't work or only on special cases)
  28.                         MessageBox.Show("Injection Failed!", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);//display messagebox to tell that injection failed
  29.                         return;
  30.                 }
  31.                 Thread.Sleep(3000);//pause the ui for 3 seconds
  32.                 if (!NamedPipes.NamedPipeExist(NamedPipes.luapipename))//check if the pipe dont exist
  33.                 {
  34.                     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
  35.                 }
  36.             }
  37.         }
  38.  
  39.  
  40.        public static void Execute(string text)
  41.        {
  42.          if (NamedPipes.NamedPipeExist(NamedPipes.luapipename))
  43.             {
  44.                 NamedPipes.LuaPipe(text);
  45.             }
  46.             else
  47.             {
  48.             MessageBox.Show("Inject " + Functions.exploitdllname + " before Using this!", "Error", MessageBoxButtons.OK,
  49.            MessageBoxIcon.Exclamation);                
  50.             return;
  51.              }
  52.         }
  53.  
  54.         public static OpenFileDialog openfiledialog = new OpenFileDialog
  55.         {
  56.             Filter = "Lua Script Txt (*.txt)|*.txt|All files (*.*)|*.*",//add txt and all files filter
  57.             FilterIndex = 1,//choose what filter will be the default
  58.             RestoreDirectory = true,//restore the last used directory
  59.             Title = "Axon Lua Open Script"//OpenFileDialog Tittle
  60.         };//Initialize OpenFileDialog
  61.     }
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement