Welcome to HBH V2 ! If you had an account on hellboundhacker.org you will need to reset your password using the Lost Password system before you will be able to login.

Brutus - C++ Code Bank

A little brute forcer (:
                #include <iostream>
#include <string>
// Create some alphabet tables
const char AlphabetUpper[26] =
	'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'
const char AlphabetLower[26] =
	'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'
// Recursive function, keeps clocking characters
// until length is reached
void Generate(unsigned int length, std::string s)
	if(length == 0) // when length has been reached
		std::cout << s << "\n"; // print it out
	for(unsigned int i = 0; i < 26; i++) // iterate through alphabet
		// Create new string with next character
		// Call generate again until string has reached its length
		std::string appended = s + AlphabetLower[i];
		Generate(length-1, appended);
void Crack()
		// Keep growing till I get it right
		static unsigned int stringlength = 1;
		Generate(stringlength, "");
int main()
	std::cerr << "Attempting to crack...";
	return 0;

SilentThunderNL's avatar
SilentThunderNL 5 years ago

E tu Brutus? tee-hee