Example #1
0
        public static void LoadDriver()
        {
            FileInfo fileInfo = new FileInfo(Path.GetTempPath() + "Report.2B3E4829-B07D-45FE-A880-1C31A9ABADC0\\NewDriverTest4.sys");

            if (fileInfo.Exists)
            {
                DriverConfig driverConfig = new DriverConfig();
                driverConfig.set_ServiceName("FuckKernelAC10");
                driverConfig.set_SymbolicLink("\\\\.\\FuckKernelAC10");
                driverConfig.set_DriverFile(fileInfo);
                driverConfig.set_LoadMethod((DriverLoad)0);
                Driver.Logic.Driver Driver = new Driver.Logic.Driver(driverConfig, (string)null);
                Fortnite.Fortnite.Attach();
                Fortnite.Fortnite.EnableEvents();
                try
                {
                    if (Driver.Load())
                    {
                        if (!Driver.get_IO().get_IsConnected())
                        {
                            return;
                        }
                        MEMAPI.Memory = new Memory(Driver);
                        MEMAPI.Memory.SetProcId(Fortnite.Fortnite.get_AttachedProcess().Id);
                    }
                    else
                    {
                        int num = (int)MessageBox.Show("Failed To Load Driver!");
                    }
                }
                catch
                {
                    int num = (int)MessageBox.Show("Failed To Load, Is the game running?");
                }
            }
            else
            {
                int num1 = (int)MessageBox.Show("Driver Is Missing");
            }
        }