Here's a simple way to loop through all of the normally used printable ascii characters in C++. Declare and integer and step the integer through each value (32 to 126) You can use this for a lot of things. Brute force cracking or generating wordlists, email address lists, IP lists, name lists, or anything where you need to check a lot of character sequences.
#include <iostream>
int i;
using namespace std;
int main()
{
for (i =32; i<=126; i++)
cout << char(i) << "-" << endl;
cout << char(9) << "-" << endl;
return 0;
}
No comments:
Post a Comment