mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
style
This commit is contained in:
parent
926fbe5354
commit
bc1c47e81b
7 changed files with 25 additions and 26 deletions
|
@ -451,7 +451,7 @@ static int ul_comp_write(uint8_t page, const uint8_t *data, uint8_t datalen) {
|
||||||
uint8_t response[1] = {0xFF};
|
uint8_t response[1] = {0xFF};
|
||||||
ul_send_cmd_raw(cmd, 2 + datalen, response, sizeof(response));
|
ul_send_cmd_raw(cmd, 2 + datalen, response, sizeof(response));
|
||||||
// ACK
|
// ACK
|
||||||
if (response[0] == 0x0a) {
|
if (response[0] == CARD_ACK) {
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
// NACK
|
// NACK
|
||||||
|
@ -470,7 +470,8 @@ static int ulev1_requestAuthentication(const uint8_t *pwd, uint8_t *pack, uint16
|
||||||
int len = ul_send_cmd_raw(cmd, sizeof(cmd), pack, packLength);
|
int len = ul_send_cmd_raw(cmd, sizeof(cmd), pack, packLength);
|
||||||
// NACK tables different tags, but between 0-9 is a NEGATIVE response.
|
// NACK tables different tags, but between 0-9 is a NEGATIVE response.
|
||||||
// ACK == 0xA
|
// ACK == 0xA
|
||||||
if (len == 1 && pack[0] <= 0x09) {
|
// should only give you PACK (4 byytes)
|
||||||
|
if (len == 1) {
|
||||||
return PM3_EWRONGANSWER;
|
return PM3_EWRONGANSWER;
|
||||||
}
|
}
|
||||||
return len;
|
return len;
|
||||||
|
@ -498,11 +499,8 @@ static int ulaes_requestAuthentication(const uint8_t *key, uint8_t keyno, bool s
|
||||||
if (WaitForResponseTimeout(CMD_HF_MIFAREULAES_AUTH, &resp, 1500) == false) {
|
if (WaitForResponseTimeout(CMD_HF_MIFAREULAES_AUTH, &resp, 1500) == false) {
|
||||||
return PM3_ETIMEOUT;
|
return PM3_ETIMEOUT;
|
||||||
}
|
}
|
||||||
if (resp.status != PM3_SUCCESS) {
|
|
||||||
return resp.status;
|
return resp.status;
|
||||||
}
|
}
|
||||||
return PM3_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int ulc_authentication(const uint8_t *key, bool switch_off_field) {
|
static int ulc_authentication(const uint8_t *key, bool switch_off_field) {
|
||||||
|
|
||||||
|
|
|
@ -7873,9 +7873,10 @@
|
||||||
],
|
],
|
||||||
"offline": true,
|
"offline": true,
|
||||||
"options": [
|
"options": [
|
||||||
"-h, --help This help"
|
"-h, --help This help",
|
||||||
|
"-p, --parse Parse the certificates as ASN.1"
|
||||||
],
|
],
|
||||||
"usage": "hf telsa info [-h]"
|
"usage": "hf telsa info [-hp]"
|
||||||
},
|
},
|
||||||
"hf tesla list": {
|
"hf tesla list": {
|
||||||
"command": "hf tesla list",
|
"command": "hf tesla list",
|
||||||
|
@ -13357,6 +13358,6 @@
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"commands_extracted": 767,
|
"commands_extracted": 767,
|
||||||
"extracted_by": "PM3Help2JSON v1.00",
|
"extracted_by": "PM3Help2JSON v1.00",
|
||||||
"extracted_on": "2025-03-24T22:47:29"
|
"extracted_on": "2025-04-13T10:20:08"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue