mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-11 17:56:23 +08:00
format
This commit is contained in:
parent
a9aaa3040e
commit
022eacecdc
1 changed files with 3 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue