| 0. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. | #include <iostream>
#include <cstdlib>
#include <fstream>
/*
K1u's Wordlist Generator
Author: K1u.
Site: k0h.org.
Description: Creates user defined wordlist.
Disclaimer: I am not responsible for any damages this program my create.
I am not responsible for how you use this program.
*/
using namespace std;
int main(void)
{
int timesPrint;
int pwLen;
/* Seed the RG. */
srand(time(NULL));
/* Characters to be randomized. */
char randPw[256] = { 0 };
/* Location of file, app flag to append to end of file, so files
are not overwritten on multiple goes. */
ofstream putout0 ("C:\\DEFINE\\PATH\\WORDLISTFTW.txt", ios::app);
cout << "Welcome to K1u's wordlist generator Cheesy"
<< "\n\n"
<< "Please enter lines of passwords you would like.\n";
cin >> timesPrint;
cout << "\nWhat would you like randomized?\n"
<< "Example: 1234567890\n";
cin >> randPw;
cout << "\nHow long would you like each password to be?\n";
cin >> pwLen;
/* Program will crash if string length not shown to RG. */
char pwRand = strlen(randPw);
for(int i = 0; i < timesPrint; i++)
{
for(int i = 0; i < pwLen; i++)
{
putout0 << (randPw[rand() % pwRand]);
}
putout0 << "\n";
}
system("PAUSE");
return 0;
} |