Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- std::string charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
- std::string password, bruted;
- std::cout << "Enter a string password = ";
- std::cin >> password;
- int charset_len = charset.length();
- int pass_len = password.length();
- for(int a = 0; a < pass_len; a++) {
- for(int b = 0; b < charset_len; b++) {
- if(password[a] == charset[b]) {
- bruted += charset[b];
- break;
- }
- }
- }
- std::cout << std::endl << "Brute-Forced password is = " << bruted << std::endl;
- return(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement