mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07: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 <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
#include <inttypes.h>
|
||||||
|
|
||||||
#include "HardwareProfile.h"
|
#include "HardwareProfile.h"
|
||||||
#include "rfidler.h"
|
#include "rfidler.h"
|
||||||
|
@ -243,7 +244,7 @@ void *crack(void *d) {
|
||||||
|
|
||||||
// find keys
|
// find keys
|
||||||
for (klower = data->klowerstart; klower < (data->klowerstart + data->klowerrange); klower++) {
|
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
|
// build table
|
||||||
count = 0;
|
count = 0;
|
||||||
for (y = 0; y < 0x40000; y++) {
|
for (y = 0; y < 0x40000; y++) {
|
||||||
|
@ -304,7 +305,7 @@ void *crack(void *d) {
|
||||||
|
|
||||||
if ((found) && (!badguess)) {
|
if ((found) && (!badguess)) {
|
||||||
// brute
|
// 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) &&
|
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)) {
|
testkey(&foundkey, uid, (kmiddle << 16 | klower), TnRaR[1].nR, TnRaR[1].aR)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue