Advertisement
FrogLegs

C++ Dictionary attack

Dec 10th, 2015
492
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #include <isotream>
  2. #include <string>
  3. #include <fstream>
  4.  
  5. void Hash()
  6. {
  7. string passHash;
  8. cout <<"Enter in password hash: "<<; std::endl;
  9. cin>> passHash; std::endl
  10.  
  11. return 0;
  12. }
  13. int main()
  14. {
  15. string fileName;
  16.  
  17. cout <<"Enter in File: "<< std::endl;
  18. cin>>fileName; std::endl;
  19.  
  20. int nLine=1;
  21.  
  22. cin.getline(fileName);
  23. passHash=fileName;
  24. }
  25. while passHash != fileName
  26. {
  27. nLine++;
  28. cin.getline(fileName);
  29.  
  30. cout<< passHash "=" fileName<<; std::endl;
  31. return 0;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement