Advertisement
Guest User

Untitled

a guest
May 30th, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. for (int x = 0; x < hashes.Length; x++)
  2. {
  3. string name = hashes[x].Substring(0, hashes[x].IndexOf(" "));
  4. string curHash = hashes[x].Substring(hashes[x].IndexOf(" ") + 1);
  5. for (int y = 0; y < dictionary.Length; y++)
  6. {
  7. if (GenHash(dictionary[y]) == curHash)
  8. {
  9. Console.WriteLine("Password found for " + name + ", it is " + dictionary[x]);
  10. goto skip;
  11. }
  12. }
  13. Console.WriteLine("The password for " + name + " was not in the database");
  14. skip:
  15. Console.Write("");
  16. }
  17.  
  18. Console.WriteLine("Could not find password in dictionary");
  19. Environment.Exit(0);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement