Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* md5 rappist by _iNFiNiTy__ of Web Hacking Paranoia (c) 2011 */
- // only for educational purposes
- /* requires knowledge in modern cryptography and cryptanalysis */
- #include <iostream>
- #include <windows.h>
- #include <md5.h>
- #include <string>
- #include <md5wrapper.h>
- #include <md5wrapper.cpp>
- #include <md5.cpp>
- using namespace std;
- typedef unsigned short int uint;
- typedef unsigned char uchar;
- typedef md5wrapper md;
- void checkPassword(string password);
- md md5;
- void bruteforce (uint width, uint position, string reversedHash);
- char chars[]={'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
- string hash;
- void bruteforce (uint width, uint position, string reversedHash)
- {
- for (uint i=0;i<36;i++) {
- if (position < width-1) {
- bruteforce (width, position + 1, reversedHash+chars[i]);
- }
- checkPassword(reversedHash+chars[i]);
- }
- }
- void checkPassword(string reversedHash)
- {
- cout << "\nTrying: " << reversedHash;
- if (md5.getHashFromString(reversedHash.c_str()) == hash)
- {
- cout << "We have a match :D : " << reversedHash << endl;
- getchar();
- exit(0);
- }
- }
- int main()
- {
- system ("color 02");
- system ("title MD5 rappist by _iNFiNiTy__");
- cout << " MMO MMO " << endl;
- cout << " MMOMMO MMOMMO " << endl;
- cout << " MMO MMO MMO MMO " << endl;
- cout << " MMO MMO MMO MMO " << endl;
- cout << " MMO MMO MMO MMO MD5 Bruteforcer by: " << endl;
- cout << " MMO MMOMMO MMO _iNFiNITy__ " << endl;
- cout << "MMO MMMMO MMO " << endl;
- cout << " MMO MMO MMO MMO " << endl;
- cout << " MMO MMO MMO MMO " << endl;
- cout << " MMO MMO MMO MMO " << endl;
- cout << " MMOMMO MMOMMO " << endl;
- cout << " MMO MMO " << endl;
- md md5;
- cout << "Enter your md5 hash: ";
- getline (cin, hash);
- if (hash.length() != 32)
- {
- cout << "Error!!Invalid Input!" << endl;
- main();
- }
- uint maxChars = 16;
- for (uint i=1;i<maxChars;i++)
- {
- bruteforce (i,0,"");
- }
- getchar();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement