Advertisement
EpicXploiter

Monaco Loadstrings Script

Jul 31st, 2019
436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. //paste this into the execute button
  2. HtmlDocument text = webBrowser1.Document;
  3. string scriptName = "GetText";
  4. object[] args = new string[0];
  5. object obj = text.InvokeScript(scriptName, args);
  6. string script = obj.ToString();
  7. if (webBrowser1.Text.Contains("loadstring(game:HttpGet(("))
  8. {
  9. int num = script.IndexOf("('") + 2;
  10. int length = script.IndexOf("')") - num;
  11. WebRequest webRequest = WebRequest.Create(script.Substring(num, length));
  12. webRequest.Credentials = CredentialCache.DefaultCredentials;
  13. HttpWebResponse httpWebResponse = (HttpWebResponse)webRequest.GetResponse();
  14. Console.WriteLine(httpWebResponse.StatusDescription);
  15. string loadstring = new StreamReader(httpWebResponse.GetResponseStream()).ReadToEnd();
  16.  
  17. api.SendLuaScript(loadstring);
  18. }
  19. else
  20. {
  21. api.SendLuaScript(script);
  22. }
  23. if (webBrowser1.Text.Contains("loadstring(game:GetObjects(("))
  24. {
  25.  
  26.  
  27. int num = script.IndexOf("('") + 2;
  28. int length = script.IndexOf("')") - num;
  29. WebRequest webRequest = WebRequest.Create(script.Substring(num, length));
  30. webRequest.Credentials = CredentialCache.DefaultCredentials;
  31. HttpWebResponse httpWebResponse = (HttpWebResponse)webRequest.GetResponse();
  32. Console.WriteLine(httpWebResponse.StatusDescription);
  33. string str3 = new StreamReader(httpWebResponse.GetResponseStream()).ReadToEnd();
  34.  
  35. api.SendLuaScript(str3);
  36. }
  37. if (webBrowser1.Text.Contains("game:GetObjects(("))
  38. {
  39. int num = script.IndexOf("('") + 2;
  40. int length = script.IndexOf("')") - num;
  41. WebRequest webRequest = WebRequest.Create(script.Substring(num, length));
  42. webRequest.Credentials = CredentialCache.DefaultCredentials;
  43. HttpWebResponse httpWebResponse = (HttpWebResponse)webRequest.GetResponse();
  44. Console.WriteLine(httpWebResponse.StatusDescription);
  45. string urmomgei = new StreamReader(httpWebResponse.GetResponseStream()).ReadToEnd();
  46. api.SendLuaScript(urmomgei);
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement