MakeTrainingset/src/hashcat_utils.c
/*
Init rules/words structures (code from hashcat legacy)
*/
Init rules/words structures (code from hashcat legacy)
Init rules / words structures ( code from hashcat legacy )
db_t* initBuffers_hashcat(){
    engine_parameter_t *engine_parameter = init_new_engine_parameter ();
    engine_parameter->hash_type      = HASH_TYPE_PLAIN;
    engine_parameter->salt_type      = SALT_TYPE_NONE;
    engine_parameter->plain_size_max = PLAIN_SIZE_PLAIN;
    rules_t *rules = init_new_rules ();
    words_t *words = init_new_words ();
    words->cache_avail = CACHE_SIZE * 1024 * 1024;
    words->cache_buf = (char*)mymalloc (words->cache_avail);
    db_t *db = init_new_db ();
    db->rules = rules;
    db->words = words;
    return db;
}
db_t * initBuffers_hashcat ( ) { engine_parameter_t * engine_parameter = init_new_engine_parameter ( ) ; engine_parameter -> hash_type = HASH_TYPE_PLAIN ; engine_parameter -> salt_type = SALT_TYPE_NONE ; engine_parameter -> plain_size_max = PLAIN_SIZE_PLAIN ; rules_t * rules = init_new_rules ( ) ; words_t * words = init_new_words ( ) ; words -> cache_avail = CACHE_SIZE * 1024 * 1024 ; words -> cache_buf = ( char * ) mymalloc ( words -> cache_avail ) ; db_t * db = init_new_db ( ) ; db -> rules = rules ; db -> words = words ; return db ; }
Init rules/words structures (code from hashcat legacy)
Init rules / words structures ( code from hashcat legacy )