someone should test this , it says i am not a sub but it may be because my password uses special characters.Code:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; using System.IO; using System.Threading; namespace ConsoleApplication1 { class Program { public static void WriteError(string s) { ConsoleColor oldColor = Console.ForegroundColor; Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine(s); Console.ForegroundColor = oldColor; } public static void WriteNormal(string s) { ConsoleColor oldColor = Console.ForegroundColor; Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine(s); Console.ForegroundColor = oldColor; } static void Main(string[] args) { WriteNormal("Username"); string loginid = Console.ReadLine(); WriteNormal("Password"); string password = Console.ReadLine(); string srrend = ""; string auth = "http://www.truecheaters.com/forums/tcauth.php?user=" + loginid + "&pass=" + password; WebResponse objResponse; WebRequest objRequest = System.Net.HttpWebRequest.Create(auth); objResponse = objRequest.GetResponse(); using (StreamReader sr = new StreamReader(objResponse.GetResponseStream())) { srrend = sr.ReadToEnd(); sr.Close(); if (srrend.Equals("1")) { Console.Clear(); WriteError(" You are not a Subscriber"); Thread.Sleep(4000); Console.Clear(); WriteError( " Please Signup and goto http://truecheaters.com/payments.php to support TC"); Thread.Sleep(5000); System.Environment.Exit(1); } else if (srrend.Equals("0")) { WriteNormal("Authentication Complete"); WriteNormal("Thanks for supporting TC!"); } } } } }
credits: GjonG - Original Code


LinkBack URL
About LinkBacks
Reply With Quote