mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
style
This commit is contained in:
parent
66f2a85ae1
commit
8fc05ad2a5
3 changed files with 38 additions and 38 deletions
|
@ -170,35 +170,35 @@ static const iso14a_polling_frame MAGWUPA4_FRAME = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static const iso14a_polling_frame ECP_FRAME = {
|
static const iso14a_polling_frame ECP_FRAME = {
|
||||||
.frame={ 0x6a, 0x02, 0xC8, 0x01, 0x00, 0x03, 0x00, 0x02, 0x79, 0x00, 0x00, 0x00, 0x00, 0xC2, 0xD8},
|
.frame = { 0x6a, 0x02, 0xC8, 0x01, 0x00, 0x03, 0x00, 0x02, 0x79, 0x00, 0x00, 0x00, 0x00, 0xC2, 0xD8},
|
||||||
.frame_length=15,
|
.frame_length = 15,
|
||||||
.last_byte_bits=8,
|
.last_byte_bits = 8,
|
||||||
.extra_delay=0
|
.extra_delay = 0
|
||||||
};
|
};
|
||||||
|
|
||||||
static iso14a_polling_parameters WUPA_POLLING_PARAMETERS = {
|
static iso14a_polling_parameters WUPA_POLLING_PARAMETERS = {
|
||||||
.frames={ WUPA_FRAME },
|
.frames = { WUPA_FRAME },
|
||||||
.frame_count=1,
|
.frame_count = 1,
|
||||||
.extra_timeout=0,
|
.extra_timeout = 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
static iso14a_polling_parameters MAGSAFE_POLLING_PARAMETERS = {
|
static iso14a_polling_parameters MAGSAFE_POLLING_PARAMETERS = {
|
||||||
.frames={ WUPA_FRAME, MAGWUPA1_FRAME, MAGWUPA2_FRAME, MAGWUPA3_FRAME, MAGWUPA4_FRAME },
|
.frames = { WUPA_FRAME, MAGWUPA1_FRAME, MAGWUPA2_FRAME, MAGWUPA3_FRAME, MAGWUPA4_FRAME },
|
||||||
.frame_count=5,
|
.frame_count = 5,
|
||||||
.extra_timeout=0
|
.extra_timeout = 0
|
||||||
};
|
};
|
||||||
|
|
||||||
// Extra 100ms give enough time for Apple devices to proccess field info and make a decision
|
// Extra 100ms give enough time for Apple devices to proccess field info and make a decision
|
||||||
static iso14a_polling_parameters ECP_POLLING_PARAMETERS = {
|
static iso14a_polling_parameters ECP_POLLING_PARAMETERS = {
|
||||||
.frames={ WUPA_FRAME, ECP_FRAME },
|
.frames = { WUPA_FRAME, ECP_FRAME },
|
||||||
.frame_count=2,
|
.frame_count = 2,
|
||||||
.extra_timeout=100
|
.extra_timeout = 100
|
||||||
};
|
};
|
||||||
|
|
||||||
static iso14a_polling_parameters FULL_POLLING_PARAMETERS = {
|
static iso14a_polling_parameters FULL_POLLING_PARAMETERS = {
|
||||||
.frames={ WUPA_FRAME, ECP_FRAME, MAGWUPA1_FRAME, MAGWUPA2_FRAME, MAGWUPA3_FRAME, MAGWUPA4_FRAME },
|
.frames = { WUPA_FRAME, ECP_FRAME, MAGWUPA1_FRAME, MAGWUPA2_FRAME, MAGWUPA3_FRAME, MAGWUPA4_FRAME },
|
||||||
.frame_count=6,
|
.frame_count = 6,
|
||||||
.extra_timeout=100
|
.extra_timeout = 100
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -2570,7 +2570,7 @@ static void iso14a_set_ATS_times(const uint8_t *ats) {
|
||||||
|
|
||||||
|
|
||||||
static int GetATQA(uint8_t *resp, uint8_t *resp_par, iso14a_polling_parameters parameters) {
|
static int GetATQA(uint8_t *resp, uint8_t *resp_par, iso14a_polling_parameters parameters) {
|
||||||
#define WUPA_RETRY_TIMEOUT 10
|
#define WUPA_RETRY_TIMEOUT 10
|
||||||
|
|
||||||
uint32_t save_iso14a_timeout = iso14a_get_timeout();
|
uint32_t save_iso14a_timeout = iso14a_get_timeout();
|
||||||
iso14a_set_timeout(1236 / 128 + 1); // response to WUPA is expected at exactly 1236/fc. No need to wait longer.
|
iso14a_set_timeout(1236 / 128 + 1); // response to WUPA is expected at exactly 1236/fc. No need to wait longer.
|
||||||
|
|
|
@ -120,9 +120,9 @@ typedef struct {
|
||||||
// Defines polling sequence configuration
|
// Defines polling sequence configuration
|
||||||
// 4 magsafe, 1 wupa, 1 reqa, 1 ecp, 1 extra
|
// 4 magsafe, 1 wupa, 1 reqa, 1 ecp, 1 extra
|
||||||
typedef struct {
|
typedef struct {
|
||||||
iso14a_polling_frame frames[8];
|
iso14a_polling_frame frames[8];
|
||||||
uint8_t frame_count;
|
uint8_t frame_count;
|
||||||
uint16_t extra_timeout;
|
uint16_t extra_timeout;
|
||||||
} iso14a_polling_parameters;
|
} iso14a_polling_parameters;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -4806,7 +4806,7 @@
|
||||||
},
|
},
|
||||||
"hf mf staticnested": {
|
"hf mf staticnested": {
|
||||||
"command": "hf mf staticnested",
|
"command": "hf mf staticnested",
|
||||||
"description": "Execute Nested attack against MIFARE Classic card with static nonce for key recovery. Supply a known key from one block to recover all keys",
|
"description": "Execute static nested attack against MIFARE Classic card with static nonce for key recovery. Supply a known key from one block to recover all keys",
|
||||||
"notes": [
|
"notes": [
|
||||||
"hf mf staticnested --mini --blk 0 -a -k FFFFFFFFFFFF",
|
"hf mf staticnested --mini --blk 0 -a -k FFFFFFFFFFFF",
|
||||||
"hf mf staticnested --1k --blk 0 -a -k FFFFFFFFFFFF",
|
"hf mf staticnested --1k --blk 0 -a -k FFFFFFFFFFFF",
|
||||||
|
@ -11689,6 +11689,6 @@
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"commands_extracted": 679,
|
"commands_extracted": 679,
|
||||||
"extracted_by": "PM3Help2JSON v1.00",
|
"extracted_by": "PM3Help2JSON v1.00",
|
||||||
"extracted_on": "2023-07-14T16:33:40"
|
"extracted_on": "2023-07-16T13:30:30"
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue