riskyshot69

DarkLuaExecutor

Sep 24th, 2023
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.52 KB | None | 0 0
  1. // Decompiled with JetBrains decompiler
  2. // Type: ConsoleApp6.RedMFound
  3. // Assembly: Dark Lua Executor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
  4. // MVID: 331839D3-A593-45F7-BA3A-E1EAA3A1CE6F
  5. // Assembly location: D:\aPROJECT\ChaoMenuOld_[unknowncheats.me]__[unknowncheats.me]_\ChaoMenuOld\DarkLuaExecutor.exe
  6.  
  7. using System;
  8. using System.IO;
  9. using System.Runtime.InteropServices;
  10. using System.Threading;
  11.  
  12. namespace ConsoleApp6
  13. {
  14. internal class RedMFound
  15. {
  16. [DllImport("User32.dll", CharSet = CharSet.Unicode)]
  17. public static extern int MessageBox(IntPtr h, string m, string c, int type);
  18.  
  19. public static void uigasvdsajsa()
  20. {
  21. if (!Directory.Exists("C:\\\\Dark"))
  22. Directory.CreateDirectory("C:\\Dark");
  23. if (!File.Exists("C:\\Dark\\Menu.lua"))
  24. File.Create("C:\\Dark\\Menu.lua");
  25. Console.ForegroundColor = ConsoleColor.DarkMagenta;
  26. Console.WriteLine("Put your code in C:\\Dark\\Menu.lua | make sure to inject before you join the server");
  27. Console.Write("Type Inject and press enter to inject");
  28. Console.WriteLine("");
  29. while (true)
  30. {
  31. string str;
  32. do
  33. {
  34. str = Console.ReadLine();
  35. if (str == "Inject")
  36. RedMFound.Execute();
  37. }
  38. while (!(str == "inject"));
  39. RedMFound.Execute();
  40. }
  41. }
  42.  
  43. public static void Execute()
  44. {
  45. using (StreamWriter streamWriter = new StreamWriter(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\AppData\\Local\\RedM\\RedM.app\\citizen\\scripting\\lua\\scheduler.lua", true))
  46. streamWriter.WriteLine("");
  47. RedMFound.fuckencunt();
  48. Console.ReadLine();
  49. }
  50.  
  51. public static void fuckencunt()
  52. {
  53. using (StreamWriter streamWriter = new StreamWriter(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\AppData\\Local\\RedM\\RedM.app\\citizen\\scripting\\lua\\scheduler.lua", true))
  54. streamWriter.WriteLine("if GetCurrentResourceName() == \"spawnmanager\" then");
  55. RedMFound.fuckencunt2();
  56. Console.ReadLine();
  57. }
  58.  
  59. public static void fuckencunt2()
  60. {
  61. string str1 = "C:\\Dark\\Menu.lua";
  62. StreamReader streamReader1 = new StreamReader(str1);
  63. StreamReader streamReader2 = new FileInfo(str1).OpenText();
  64. string str2;
  65. while ((str2 = streamReader2.ReadLine()) != null)
  66. {
  67. using (StreamWriter streamWriter = new StreamWriter(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\AppData\\Local\\RedM\\RedM.app\\citizen\\scripting\\lua\\scheduler.lua", true))
  68. streamWriter.WriteLine(str2);
  69. }
  70. RedMFound.fuckencunt3();
  71. Console.ReadLine();
  72. }
  73.  
  74. public static void fuckencunt3()
  75. {
  76. using (StreamWriter streamWriter = new StreamWriter(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\AppData\\Local\\RedM\\RedM.app\\citizen\\scripting\\lua\\scheduler.lua", true))
  77. streamWriter.WriteLine("end");
  78. RedMFound.fuckencunt4();
  79. Console.ReadLine();
  80. }
  81.  
  82. public static void fuckencunt4()
  83. {
  84. using (StreamWriter streamWriter = new StreamWriter(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "\\AppData\\Local\\RedM\\RedM.app\\citizen\\scripting\\lua\\scheduler.lua", true))
  85. streamWriter.WriteLine("");
  86. Console.ForegroundColor = ConsoleColor.DarkMagenta;
  87. Console.Write("Injected");
  88. Thread.Sleep(5000);
  89. Environment.Exit(0);
  90. }
  91. }
  92. }
  93.  
Add Comment
Please, Sign In to add comment