mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
added device side option to disable EAS/AFI password. Sets to all ZEROS
This commit is contained in:
parent
35744bdd89
commit
638e892088
4 changed files with 32 additions and 1 deletions
|
@ -1271,6 +1271,14 @@ static void PacketReceived(PacketCommandNG *packet) {
|
||||||
DisablePrivacySlixLIso15693(payload->pwd);
|
DisablePrivacySlixLIso15693(payload->pwd);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case CMD_HF_ISO15693_SLIX_L_DISABLE_AESAFI: {
|
||||||
|
struct p {
|
||||||
|
uint8_t pwd[4];
|
||||||
|
} PACKED;
|
||||||
|
struct p *payload = (struct p *) packet->data.asBytes;
|
||||||
|
DisableEAS_AFISlixLIso15693(payload->pwd);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -2248,15 +2248,36 @@ static uint32_t destroy_15693_slixl(uint32_t start_time, uint32_t *eof_time, uin
|
||||||
}
|
}
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// Sets a PRIVACY password to all ZEROS
|
||||||
void DisablePrivacySlixLIso15693(uint8_t *password) {
|
void DisablePrivacySlixLIso15693(uint8_t *password) {
|
||||||
LED_D_ON();
|
LED_D_ON();
|
||||||
Iso15693InitReader();
|
Iso15693InitReader();
|
||||||
StartCountSspClk();
|
StartCountSspClk();
|
||||||
uint32_t start_time = 0, eof_time = 0;
|
uint32_t start_time = 0, eof_time = 0;
|
||||||
// 4 == pass id.
|
|
||||||
|
// Password identifier Password byte
|
||||||
|
// 0x04 Privacy
|
||||||
|
// 0x08 Destroy SLIX-L
|
||||||
|
// 0x10 EAS/AFI
|
||||||
int res = set_pass_15693_slixl(start_time, &eof_time, 0x04, password);
|
int res = set_pass_15693_slixl(start_time, &eof_time, 0x04, password);
|
||||||
reply_ng(CMD_HF_ISO15693_SLIX_L_DISABLE_PRIVACY, res, NULL, 0);
|
reply_ng(CMD_HF_ISO15693_SLIX_L_DISABLE_PRIVACY, res, NULL, 0);
|
||||||
switch_off();
|
switch_off();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sets a EAS/AFI password to all ZEROS
|
||||||
|
void DisableEAS_AFISlixLIso15693(uint8_t *password) {
|
||||||
|
LED_D_ON();
|
||||||
|
Iso15693InitReader();
|
||||||
|
StartCountSspClk();
|
||||||
|
uint32_t start_time = 0, eof_time = 0;
|
||||||
|
|
||||||
|
// Password identifier Password byte
|
||||||
|
// 0x04 Privacy
|
||||||
|
// 0x08 Destroy SLIX-L
|
||||||
|
// 0x10 EAS/AFI
|
||||||
|
int res = set_pass_15693_slixl(start_time, &eof_time, 0x10, password);
|
||||||
|
reply_ng(CMD_HF_ISO15693_SLIX_L_DISABLE_AESAFI, res, NULL, 0);
|
||||||
|
switch_off();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -60,4 +60,5 @@ int SendDataTagEOF(uint8_t *recv, uint16_t max_recv_len, uint32_t start_time, ui
|
||||||
void SetTag15693Uid(const uint8_t *uid);
|
void SetTag15693Uid(const uint8_t *uid);
|
||||||
|
|
||||||
void DisablePrivacySlixLIso15693(uint8_t *password);
|
void DisablePrivacySlixLIso15693(uint8_t *password);
|
||||||
|
void DisableEAS_AFISlixLIso15693(uint8_t *password);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -519,6 +519,7 @@ typedef struct {
|
||||||
#define CMD_HF_ISO15693_FINDAFI 0x0315
|
#define CMD_HF_ISO15693_FINDAFI 0x0315
|
||||||
#define CMD_HF_ISO15693_CSETUID 0x0316
|
#define CMD_HF_ISO15693_CSETUID 0x0316
|
||||||
#define CMD_HF_ISO15693_SLIX_L_DISABLE_PRIVACY 0x0317
|
#define CMD_HF_ISO15693_SLIX_L_DISABLE_PRIVACY 0x0317
|
||||||
|
#define CMD_HF_ISO15693_SLIX_L_DISABLE_AESAFI 0x0318
|
||||||
|
|
||||||
#define CMD_LF_SNIFF_RAW_ADC 0x0360
|
#define CMD_LF_SNIFF_RAW_ADC 0x0360
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue