Курсовая работа: Несанкционированный доступ к терминалам серверов с операционными системами семейства UNIX
}
if (options.flags & (FLG_SINGLE_CHK | FLG_BATCH_CHK))
options.loader.flags |= DB_WORDS;
else
if (mem_saving_level)
options.loader.flags &= ~DB_LOGIN;
ldr_init_database(&database, &options.loader);
if ((current = options.passwd->head))
do {
ldr_load_pw_file(&database, current->data);
} while ((current = current->next));
ldr_load_pot_file(&database, LOG_NAME);
ldr_fix_database(&database);
printf("Loaded %d password%s%s",
database.password_count,
database.password_count != 1 ? "s" : "",
database.password_count ? "" : ", exiting...");
if (database.password_count > 1) {
printf(" with ");
printf(database.salt_count != 1 ? "%d" : "no",
database.salt_count);
printf(" different salts");
}
if (database.password_count)
printf(" (%s [%s])\n",
database.format->params.format_name,
database.format->params.algorithm_name);
else
putchar('\n');