10-10-2020, 07:57 AM
I have some md5 hashes of passwords created from C rand() function (as following example)
void create_pass( char* randomString )
{
sizet_t i = 0;
size_t length = 28;
srand(32BIT_SEED);
strcpy(randomString,"");
for( i = 0; i < (length/2); i++ )
{
*(randomString + i) = ( rand() % 25 + 65 );
}
for( ; i < length; i++ )
{
*(randomString + i) = ( rand() % 9 + 48 );
}
}
I can reproduce the same char sequence with the correct srand seed( 32bit int), so i want to brute force the seed by generating all 28 char sequence as dict and crack the md5 hash with hashcat.
But the whole dictionary is huge ( about hundreds of gigabytes), is there any more efficient way? Thanks for help.
void create_pass( char* randomString )
{
sizet_t i = 0;
size_t length = 28;
srand(32BIT_SEED);
strcpy(randomString,"");
for( i = 0; i < (length/2); i++ )
{
*(randomString + i) = ( rand() % 25 + 65 );
}
for( ; i < length; i++ )
{
*(randomString + i) = ( rand() % 9 + 48 );
}
}
I can reproduce the same char sequence with the correct srand seed( 32bit int), so i want to brute force the seed by generating all 28 char sequence as dict and crack the md5 hash with hashcat.
But the whole dictionary is huge ( about hundreds of gigabytes), is there any more efficient way? Thanks for help.