Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Threading;
- using System.Windows.Forms;
- namespace JailPain
- {
- class Functions
- {
- public static string exploitdllname = "JailPain.dll";
- public static void Inject()
- {
- {
- return;
- }
- {
- switch (Injector.DllInjector.GetInstance.Inject("RobloxPlayerBeta", AppDomain.CurrentDomain.BaseDirectory + exploitdllname))//Process name and dll directory
- {
- case Injector.DllInjectionResult.DllNotFound://if can't find the dll
- MessageBox.Show("Can't find " + exploitdllname, "Uhh?", MessageBoxButtons.OK, MessageBoxIcon.Error);
- return;
- case Injector.DllInjectionResult.GameProcessNotFound://if can't find the process
- MessageBox.Show("ROBLOX not found!", "Open ROBLOX!", 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("Something went wrong! Please try again.", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);//display messagebox to tell that injection failed
- return;
- }
- Thread.Sleep(1000);//pause the ui for 3 seconds
- {
- MessageBox.Show("Something went wrong! Please try again.", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);//display that the pipe was not found so the injection was unsuccessful
- }
- }
- }
- public static OpenFileDialog openfiledialog = new OpenFileDialog
- {
- Filter = "Lua Script Txt (*.txt)|*.txt|All files (*.*)|*.*",//add txt and all files filter
- FilterIndex = 1,//choose what filter will be the default
- RestoreDirectory = true,//restore the last used directory
- Title = "Lua Open Script"//OpenFileDialog Tittle
- };//Initialize OpenFileDialog
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement