mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
sugar
This commit is contained in:
parent
a07dcf7924
commit
9f10ff6e17
1 changed files with 20 additions and 11 deletions
|
@ -2390,8 +2390,13 @@ int CmdHF14AMfuGenDiverseKeys(const char *Cmd){
|
||||||
iso14a_card_select_t card;
|
iso14a_card_select_t card;
|
||||||
memcpy(&card, (iso14a_card_select_t *)resp.d.asBytes, sizeof(iso14a_card_select_t));
|
memcpy(&card, (iso14a_card_select_t *)resp.d.asBytes, sizeof(iso14a_card_select_t));
|
||||||
|
|
||||||
uint64_t select_status = resp.arg[0]; // 0: couldn't read, 1: OK, with ATS, 2: OK, no ATS, 3: proprietary Anticollision
|
uint64_t select_status = resp.arg[0];
|
||||||
if(select_status == 0) {
|
// 0: couldn't read,
|
||||||
|
// 1: OK, with ATS
|
||||||
|
// 2: OK, no ATS
|
||||||
|
// 3: proprietary Anticollision
|
||||||
|
|
||||||
|
if ( select_status == 0 ) {
|
||||||
PrintAndLogEx(WARNING, "iso14443a card select failed");
|
PrintAndLogEx(WARNING, "iso14443a card select failed");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -2488,6 +2493,7 @@ int CmdHF14AMfuPwdGen(const char *Cmd){
|
||||||
uint8_t uid[7] = {0x00};
|
uint8_t uid[7] = {0x00};
|
||||||
char cmdp = tolower(param_getchar(Cmd, 0));
|
char cmdp = tolower(param_getchar(Cmd, 0));
|
||||||
if (strlen(Cmd) == 0 || cmdp == 'h') return usage_hf_mfu_pwdgen();
|
if (strlen(Cmd) == 0 || cmdp == 'h') return usage_hf_mfu_pwdgen();
|
||||||
|
|
||||||
if (cmdp == 't') return ul_ev1_pwdgen_selftest();
|
if (cmdp == 't') return ul_ev1_pwdgen_selftest();
|
||||||
|
|
||||||
if ( cmdp == 'r') {
|
if ( cmdp == 'r') {
|
||||||
|
@ -2500,8 +2506,12 @@ int CmdHF14AMfuPwdGen(const char *Cmd){
|
||||||
iso14a_card_select_t card;
|
iso14a_card_select_t card;
|
||||||
memcpy(&card, (iso14a_card_select_t *)resp.d.asBytes, sizeof(iso14a_card_select_t));
|
memcpy(&card, (iso14a_card_select_t *)resp.d.asBytes, sizeof(iso14a_card_select_t));
|
||||||
|
|
||||||
uint64_t select_status = resp.arg[0]; // 0: couldn't read, 1: OK, with ATS, 2: OK, no ATS, 3: proprietary Anticollision
|
uint64_t select_status = resp.arg[0];
|
||||||
if(select_status == 0) {
|
// 0: couldn't read
|
||||||
|
// 1: OK with ATS
|
||||||
|
// 2: OK, no ATS
|
||||||
|
// 3: proprietary Anticollision
|
||||||
|
if ( select_status == 0 ) {
|
||||||
PrintAndLogEx(WARNING, "iso14443a card select failed");
|
PrintAndLogEx(WARNING, "iso14443a card select failed");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -2514,6 +2524,7 @@ int CmdHF14AMfuPwdGen(const char *Cmd){
|
||||||
else {
|
else {
|
||||||
if (param_gethex(Cmd, 0, uid, 14)) return usage_hf_mfu_pwdgen();
|
if (param_gethex(Cmd, 0, uid, 14)) return usage_hf_mfu_pwdgen();
|
||||||
}
|
}
|
||||||
|
|
||||||
PrintAndLogEx(NORMAL, "---------------------------------");
|
PrintAndLogEx(NORMAL, "---------------------------------");
|
||||||
PrintAndLogEx(NORMAL, " Using UID : %s", sprint_hex(uid, 7));
|
PrintAndLogEx(NORMAL, " Using UID : %s", sprint_hex(uid, 7));
|
||||||
PrintAndLogEx(NORMAL, "---------------------------------");
|
PrintAndLogEx(NORMAL, "---------------------------------");
|
||||||
|
@ -2531,8 +2542,7 @@ int CmdHF14AMfuPwdGen(const char *Cmd){
|
||||||
//------------------------------------
|
//------------------------------------
|
||||||
// Menu Stuff
|
// Menu Stuff
|
||||||
//------------------------------------
|
//------------------------------------
|
||||||
static command_t CommandTable[] =
|
static command_t CommandTable[] = {
|
||||||
{
|
|
||||||
{"help", CmdHelp, 1, "This help"},
|
{"help", CmdHelp, 1, "This help"},
|
||||||
{"dbg", CmdHF14AMfDbg, 0, "Set default debug mode"},
|
{"dbg", CmdHF14AMfDbg, 0, "Set default debug mode"},
|
||||||
{"info", CmdHF14AMfUInfo, 0, "Tag information"},
|
{"info", CmdHF14AMfUInfo, 0, "Tag information"},
|
||||||
|
@ -2552,7 +2562,6 @@ static command_t CommandTable[] =
|
||||||
|
|
||||||
int CmdHFMFUltra(const char *Cmd){
|
int CmdHFMFUltra(const char *Cmd){
|
||||||
clearCommandBuffer();
|
clearCommandBuffer();
|
||||||
//WaitForResponseTimeout(CMD_ACK,NULL,100);
|
|
||||||
CmdsParse(CommandTable, Cmd);
|
CmdsParse(CommandTable, Cmd);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue