Results 1 to 3 of 3

[C#] TC Auth Console Programs

This is a discussion on [C#] TC Auth Console Programs within the Source Code Samples forums, part of the Programming category; 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 ...

  1. #1
    nosnipe is offline Subscriber
    Join Date
    Jul 2009
    Posts
    413

    Default [C#] TC Auth Console Programs

    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!");
                    }
                }
            }
        }
    }
    someone should test this , it says i am not a sub but it may be because my password uses special characters.

    credits: GjonG - Original Code
    Last edited by nosnipe; 08-16-2011 at 10:59 PM.
    //not that anyone cares

  2.   Alt These ads help cover server costs and such.


  3. #2
    Nachoman's Avatar
    Nachoman is offline Superhero in disguise
    Join Date
    Oct 2008
    Posts
    1,654

    Default

    It never tells you if your a sub the output is either 1 or 0

    That is the old auth... It = 0 for those who are allowed to use Sub bots

  4. #3
    nosnipe is offline Subscriber
    Join Date
    Jul 2009
    Posts
    413

    Default

    ah okay i remember using the old auth in autoit..oh well haha..no wonder it does not work :
    //not that anyone cares

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Facebook Bots | Admin Forum