This commit is contained in:
iceman1001 2020-03-13 14:37:49 +01:00
parent a9aaa3040e
commit 022eacecdc

View file

@ -1,6 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <inttypes.h>
#include "HardwareProfile.h"
#include "rfidler.h"
@ -243,7 +244,7 @@ void *crack(void *d) {
// find keys
for (klower = data->klowerstart; klower < (data->klowerstart + data->klowerrange); klower++) {
printf("trying klower = 0x%05lx\n", klower);
printf("trying klower = 0x%05"PRIx64"\n", klower);
// build table
count = 0;
for (y = 0; y < 0x40000; y++) {
@ -304,7 +305,7 @@ void *crack(void *d) {
if ((found) && (!badguess)) {
// brute
printf("possible partial key found: 0x%012lx\n", ((uint64_t)kmiddle << 16) | klower);
printf("possible partial key found: 0x%012"PRIx64"\n", ((uint64_t)kmiddle << 16) | klower);
if (testkey(&foundkey, uid, (kmiddle << 16 | klower), TnRaR[0].nR, TnRaR[0].aR) &&
testkey(&foundkey, uid, (kmiddle << 16 | klower), TnRaR[1].nR, TnRaR[1].aR)) {