Advertisement
Guest User

Codes

a guest
Mar 10th, 2020
4,571
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 5.11 KB | None | 0 0
  1. //REMEMBER TO WATCH THE VIDEO!
  2. // Remember to do this in order.
  3.  
  4. // Put this code in the beginning
  5. Module easyexploits = new Module();
  6.  
  7. // Execute button
  8. HtmlDocument text = webBrowser1.Document;
  9. string scriptName = "GetText";
  10. object[] args = new string[0];
  11. object obj = text.InvokeScript(scriptName, args);
  12. string script = obj.ToString();
  13. easyexploits.ExecuteScript(script);
  14.  
  15. // Inject button
  16. easyexploits.LaunchExploit();
  17.  
  18. // Clear button
  19.  webBrowser1.Document.InvokeScript("SetText", new object[]
  20.          {
  21.                 ""
  22.          });
  23.  
  24. // Create a new file called "Functions.cs", and add this code
  25. public static OpenFileDialog openfiledialog = new OpenFileDialog
  26.         {
  27.             Filter = "Script File|*.txt;*.lua|All files (*.*)|*.*",
  28.             FilterIndex = 1,
  29.             RestoreDirectory = true,
  30.             Title = "Open file"
  31.         };
  32.  
  33. // Open file code (REMEMBER TO ADD THE FUNCTIONS.CS CODE!
  34. if (Functions.openfiledialog.ShowDialog() == DialogResult.OK)
  35.             {
  36.                 try
  37.                 {
  38.  
  39.                     string MainText = File.ReadAllText(Functions.openfiledialog.FileName);
  40.                     webBrowser1.Document.InvokeScript("SetText", new object[]
  41.                     {
  42.                           MainText
  43.                     });
  44.  
  45.                 }
  46.                 catch (Exception ex)
  47.                 {
  48.                     MessageBox.Show("Error: Could not read file from disk. Original error: " + ex.Message);
  49.                     Console.WriteLine("File can't be opened");
  50.                 }
  51.             }
  52.  
  53. // Monaco code (add this for the form load part, watch the video to see where to put it)
  54.  
  55.  WebClient wc = new WebClient
  56.             {
  57.                 Proxy = null
  58.             };
  59.             try
  60.             {
  61.                 RegistryKey registryKey = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Internet Explorer\\Main\\FeatureControl\\FEATURE_BROWSER_EMULATION", true);
  62.                 string friendlyName = AppDomain.CurrentDomain.FriendlyName;
  63.                 bool flag2 = registryKey.GetValue(friendlyName) == null;
  64.                 if (flag2)
  65.                 {
  66.                     registryKey.SetValue(friendlyName, 11001, RegistryValueKind.DWord);
  67.                 }
  68.                 registryKey = null;
  69.                 friendlyName = null;
  70.             }
  71.             catch (Exception)
  72.             {
  73.             }
  74.             webBrowser1.Url = new Uri(string.Format("file:///{0}/Monaco/Monaco.html", Directory.GetCurrentDirectory()));
  75.  
  76.             webBrowser1.Document.InvokeScript("SetTheme", new string[]
  77.             {
  78.                    "Dark"
  79.                    /*
  80.                     There are 2 Themes Dark and Light
  81.                    */
  82.             });
  83.             addBase();
  84.             addMath();
  85.             addGlobalNS();
  86.             addGlobalV();
  87.             addGlobalF();
  88.             webBrowser1.Document.InvokeScript("SetText", new object[]
  89.             {
  90.                  "-- Text here"
  91.  
  92.             });
  93.  
  94. // Monaco code (look in the video for where to put these codes)
  95. rivate string defPath = Application.StartupPath + "//Monaco//"; // some varibles
  96.  
  97.         private void addIntel(string label, string kind, string detail, string insertText)
  98.         {
  99.             string text = "\"" + label + "\"";
  100.             string text2 = "\"" + kind + "\"";
  101.             string text3 = "\"" + detail + "\"";
  102.             string text4 = "\"" + insertText + "\"";
  103.             webBrowser1.Document.InvokeScript("AddIntellisense", new object[] // some monaco shit
  104.             {
  105.                 label,
  106.                 kind,
  107.                 detail,
  108.                 insertText
  109.             });
  110.         }
  111.     // Credits to Main_EX for this!
  112.         private void addGlobalF()
  113.         {
  114.             string[] array = File.ReadAllLines(defPath + "//globalf.txt");
  115.             foreach (string text in array)
  116.             {
  117.                 bool flag = text.Contains(':');
  118.                 if (flag)
  119.                 {
  120.                     addIntel(text, "Function", text, text.Substring(1));
  121.                 }
  122.                 else
  123.                 {
  124.                     addIntel(text, "Function", text, text);
  125.                 }
  126.             }
  127.         }
  128.  
  129.         private void addGlobalV()
  130.         {
  131.             foreach (string text in File.ReadLines(defPath + "//globalv.txt"))
  132.             {
  133.                 addIntel(text, "Variable", text, text);
  134.             }
  135.         }
  136.  
  137.         private void addGlobalNS()
  138.         {
  139.             foreach (string text in File.ReadLines(defPath + "//globalns.txt"))
  140.             {
  141.                 addIntel(text, "Class", text, text);
  142.             }
  143.         }
  144.  
  145.         private void addMath()
  146.         {
  147.             foreach (string text in File.ReadLines(defPath + "//classfunc.txt"))
  148.             {
  149.                 addIntel(text, "Method", text, text);
  150.             }
  151.         }
  152.  
  153.         private void addBase()
  154.         {
  155.             foreach (string text in File.ReadLines(defPath + "//base.txt"))
  156.             {
  157.                 addIntel(text, "Keyword", text, text);
  158.             }
  159.  
  160.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement