crack5opencl - mark found key message

This commit is contained in:
iceman1001 2021-04-09 15:31:27 +02:00
commit d77a4d1a5c

View file

@ -1152,12 +1152,12 @@ int main(int argc, char **argv) {
if (thread_count > 1) printf("[%zu] ", y); if (thread_count > 1) printf("[%zu] ", y);
printf("Key found @ slice %zu/%zu: ", t_arg[y].slice, t_arg[y].max_slices); printf("\nKey found @ slice %zu/%zu: [", t_arg[y].slice, t_arg[y].max_slices);
for (int i = 0; i < 6; i++) { for (int i = 0; i < 6; i++) {
printf("%02X", (uint8_t)(t_arg[y].key & 0xff)); printf("%02X", (uint8_t)(t_arg[y].key & 0xff));
t_arg[y].key = t_arg[y].key >> 8; t_arg[y].key = t_arg[y].key >> 8;
} }
printf("\n"); printf(" ]\n");
fflush(stdout); fflush(stdout);
break; break;
} }
@ -1178,7 +1178,7 @@ int main(int argc, char **argv) {
printf("\nAttack 5 - opencl - end"); printf("\nAttack 5 - opencl - end");
if (show_overall_time) printf(" in %ld.%06ld second(s).\n\n", (long int)cpu_t_result.tv_sec, (long int)cpu_t_result.tv_usec); if (show_overall_time) printf(" in %ld.%2ld second(s).\n\n", (long int)cpu_t_result.tv_sec, (long int)cpu_t_result.tv_usec);
else printf("\n"); else printf("\n");
fflush(stdout); fflush(stdout);