mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
WIP, not suitable for running
This commit is contained in:
parent
c6902245f0
commit
d27a8abe80
1 changed files with 24 additions and 22 deletions
|
@ -3059,6 +3059,7 @@ static int CmdHF14AMfuOtpTearoff(const char *Cmd) {
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
static int counter_reset_tear(iso14a_card_select_t *card, uint8_t cnt_no) {
|
static int counter_reset_tear(iso14a_card_select_t *card, uint8_t cnt_no) {
|
||||||
|
|
||||||
PrintAndLogEx(INFO, "Reset tear check");
|
PrintAndLogEx(INFO, "Reset tear check");
|
||||||
|
@ -3087,7 +3088,9 @@ static int counter_reset_tear(iso14a_card_select_t *card, uint8_t cnt_no) {
|
||||||
}
|
}
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
static int CmdHF14AMfuEv1CounterTearoff(const char *Cmd) {
|
static int CmdHF14AMfuEv1CounterTearoff(const char *Cmd) {
|
||||||
|
|
||||||
CLIParserContext *ctx;
|
CLIParserContext *ctx;
|
||||||
|
@ -3375,24 +3378,21 @@ static int CmdHF14AMfuEv1CounterTearoff(const char *Cmd) {
|
||||||
if ( b >= (inital_value + (2 * wr_value))) {
|
if ( b >= (inital_value + (2 * wr_value))) {
|
||||||
PrintAndLogEx(INFO, "Large " _YELLOW_("( JUMP )") " detected");
|
PrintAndLogEx(INFO, "Large " _YELLOW_("( JUMP )") " detected");
|
||||||
|
|
||||||
/*
|
|
||||||
wr_value = bar;
|
|
||||||
newvalue[0] = (bar) & 0xFF;
|
|
||||||
newvalue[1] = ((bar >> 8) & 0xFF);
|
|
||||||
newvalue[2] = ((bar >> 16) & 0xFF);
|
|
||||||
|
|
||||||
*/
|
// wr_value = bar;
|
||||||
|
// newvalue[0] = (bar) & 0xFF;
|
||||||
|
// newvalue[1] = ((bar >> 8) & 0xFF);
|
||||||
|
// newvalue[2] = ((bar >> 16) & 0xFF);
|
||||||
} else {
|
} else {
|
||||||
/*
|
|
||||||
wr_value = bar;
|
// wr_value = bar;
|
||||||
newvalue[0] = (bar) & 0xFF;
|
// newvalue[0] = (bar) & 0xFF;
|
||||||
newvalue[1] = ((bar >> 8) & 0xFF);
|
// newvalue[1] = ((bar >> 8) & 0xFF);
|
||||||
newvalue[2] = ((bar >> 16) & 0xFF);
|
// newvalue[2] = ((bar >> 16) & 0xFF);
|
||||||
wr_value = 0;
|
// wr_value = 0;
|
||||||
newvalue[0] = 0;
|
// newvalue[0] = 0;
|
||||||
newvalue[1] = 0;
|
// newvalue[1] = 0;
|
||||||
newvalue[2] = 0;
|
// newvalue[2] = 0;
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3452,6 +3452,8 @@ static int CmdHF14AMfuEv1CounterTearoff(const char *Cmd) {
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
static int CmdHF14MfuNDEF(const char *Cmd) {
|
static int CmdHF14MfuNDEF(const char *Cmd) {
|
||||||
|
|
||||||
int keylen;
|
int keylen;
|
||||||
|
@ -3582,7 +3584,7 @@ static command_t CommandTable[] = {
|
||||||
{"gen", CmdHF14AMfUGenDiverseKeys, AlwaysAvailable, "Generate 3des mifare diversified keys"},
|
{"gen", CmdHF14AMfUGenDiverseKeys, AlwaysAvailable, "Generate 3des mifare diversified keys"},
|
||||||
{"pwdgen", CmdHF14AMfUPwdGen, AlwaysAvailable, "Generate pwd from known algos"},
|
{"pwdgen", CmdHF14AMfUPwdGen, AlwaysAvailable, "Generate pwd from known algos"},
|
||||||
{"otptear", CmdHF14AMfuOtpTearoff, IfPm3Iso14443a, "Tear-off test on OTP bits"},
|
{"otptear", CmdHF14AMfuOtpTearoff, IfPm3Iso14443a, "Tear-off test on OTP bits"},
|
||||||
{"countertear", CmdHF14AMfuEv1CounterTearoff, IfPm3Iso14443a, "Tear-off test on Ev1 Counter bits"},
|
// {"countertear", CmdHF14AMfuEv1CounterTearoff, IfPm3Iso14443a, "Tear-off test on Ev1 Counter bits"},
|
||||||
{"ndef", CmdHF14MfuNDEF, IfPm3Iso14443a, "Prints NDEF records from card"},
|
{"ndef", CmdHF14MfuNDEF, IfPm3Iso14443a, "Prints NDEF records from card"},
|
||||||
{NULL, NULL, NULL, NULL}
|
{NULL, NULL, NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue