Skip to content

A simple C program that will find the 1 to 4 character long plaintext made up of any letter, number and special character combination, of a hash, including spaces.

License

Notifications You must be signed in to change notification settings

cthulhuspoke/brutus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

brutus.c:

A simple C program that will find the 1 to 4 character long plaintext made up of any letter, number and special character combination, of a hash, including spaces.

Test hashes:

// plaintext = hash 
//
// a         = 50OqznXGVcOJU
// ab        = 50kiZhZaSRp0E
// abc       = 50PaJ4.RO0YUo
// abcd      = 50W9/ghfUb5j.

To compile under Linux:

$ clang -ggdb3 -O0 -std=c11 -Wall -Werror -Wshadow brutus.c -lcrypt -lcs50 -lm -o brutus

Usage:

$ ./brutus your_hash

Here are some times for those interested in them:

a = 50OqznXGVcOJU

real 0m0.003s user 0m0.000s sys 0m0.000s

ab = 50kiZhZaSRp0E

real 0m0.004s user 0m0.000s sys 0m0.004s

abc = 50PaJ4.RO0YUo

real 0m0.035s user 0m0.032s sys 0m0.000s

abcd = 50W9/ghfUb5j.

real 0m2.869s user 0m2.856s sys 0m0.004s

l%^3 = 50YPcepzRgXXs

real 0m37.069s user 0m36.980s sys 0m0.036s

lulz = 50/di.wD/O6Cc

real 1m19.267s user 0m37.812s sys 0m0.044s

encryptor.c:

A small program to create hashes using the crypt() function in C.

Usage:

./encryptor your_plaintext your_salt

To compile under Linux:

$ clang -fsanitize=integer -fsanitize=undefined -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-sign-compare -Wshadow encryptor.c -lcrypt -lm -o encryptor

About

A simple C program that will find the 1 to 4 character long plaintext made up of any letter, number and special character combination, of a hash, including spaces.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages