Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Decompiled with JetBrains decompiler
- // Type: ConsoleApp6.RedMFound
- // Assembly: Dark Lua Executor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
- // MVID: 331839D3-A593-45F7-BA3A-E1EAA3A1CE6F
- // Assembly location: D:\aPROJECT\ChaoMenuOld_[unknowncheats.me]__[unknowncheats.me]_\ChaoMenuOld\DarkLuaExecutor.exe
- using System;
- using System.IO;
- using System.Runtime.InteropServices;
- using System.Threading;
- namespace ConsoleApp6
- {
- internal class RedMFound
- {
- [DllImport("User32.dll", CharSet = CharSet.Unicode)]
- public static extern int MessageBox(IntPtr h, string m, string c, int type);
- public static void uigasvdsajsa()
- {
- if (!Directory.Exists("C:\\\\Dark"))
- Directory.CreateDirectory("C:\\Dark");
- if (!File.Exists("C:\\Dark\\Menu.lua"))
- File.Create("C:\\Dark\\Menu.lua");
- Console.ForegroundColor = ConsoleColor.DarkMagenta;
- Console.WriteLine("Put your code in C:\\Dark\\Menu.lua | make sure to inject before you join the server");
- Console.Write("Type Inject and press enter to inject");
- Console.WriteLine("");
- while (true)
- {
- string str;
- do
- {
- str = Console.ReadLine();
- if (str == "Inject")
- RedMFound.Execute();
- }
- while (!(str == "inject"));
- RedMFound.Execute();
- }
- }
- public static void Execute()
- {
- using (StreamWriter streamWriter = new StreamWriter(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\AppData\\Local\\RedM\\RedM.app\\citizen\\scripting\\lua\\scheduler.lua", true))
- streamWriter.WriteLine("");
- RedMFound.fuckencunt();
- Console.ReadLine();
- }
- public static void fuckencunt()
- {
- using (StreamWriter streamWriter = new StreamWriter(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\AppData\\Local\\RedM\\RedM.app\\citizen\\scripting\\lua\\scheduler.lua", true))
- streamWriter.WriteLine("if GetCurrentResourceName() == \"spawnmanager\" then");
- RedMFound.fuckencunt2();
- Console.ReadLine();
- }
- public static void fuckencunt2()
- {
- string str1 = "C:\\Dark\\Menu.lua";
- StreamReader streamReader1 = new StreamReader(str1);
- StreamReader streamReader2 = new FileInfo(str1).OpenText();
- string str2;
- while ((str2 = streamReader2.ReadLine()) != null)
- {
- using (StreamWriter streamWriter = new StreamWriter(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\AppData\\Local\\RedM\\RedM.app\\citizen\\scripting\\lua\\scheduler.lua", true))
- streamWriter.WriteLine(str2);
- }
- RedMFound.fuckencunt3();
- Console.ReadLine();
- }
- public static void fuckencunt3()
- {
- using (StreamWriter streamWriter = new StreamWriter(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\AppData\\Local\\RedM\\RedM.app\\citizen\\scripting\\lua\\scheduler.lua", true))
- streamWriter.WriteLine("end");
- RedMFound.fuckencunt4();
- Console.ReadLine();
- }
- public static void fuckencunt4()
- {
- using (StreamWriter streamWriter = new StreamWriter(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\AppData\\Local\\RedM\\RedM.app\\citizen\\scripting\\lua\\scheduler.lua", true))
- streamWriter.WriteLine("");
- Console.ForegroundColor = ConsoleColor.DarkMagenta;
- Console.Write("Injected");
- Thread.Sleep(5000);
- Environment.Exit(0);
- }
- }
- }
Add Comment
Please, Sign In to add comment