mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
text
This commit is contained in:
parent
841828eb48
commit
a2f9012e13
1 changed files with 8 additions and 3 deletions
|
@ -3081,16 +3081,21 @@ static int CmdHFiClass_TearBlock(const char *Cmd) {
|
||||||
int loop_count = 0;
|
int loop_count = 0;
|
||||||
int isok = 0;
|
int isok = 0;
|
||||||
bool read_ok = false;
|
bool read_ok = false;
|
||||||
uint8_t keyType = 0x88; //debit key
|
uint8_t keyType = 0x88; // debit key
|
||||||
|
|
||||||
if (use_credit_key) {
|
if (use_credit_key) {
|
||||||
PrintAndLogEx(SUCCESS, "Using " _YELLOW_("credit") " key");
|
PrintAndLogEx(SUCCESS, "Using " _YELLOW_("credit") " key");
|
||||||
keyType = 0x18; //credit key
|
keyType = 0x18; // credit key
|
||||||
}
|
}
|
||||||
|
|
||||||
if (auth == false) {
|
if (auth == false) {
|
||||||
PrintAndLogEx(SUCCESS, "No key supplied. Trying no authentication read/writes");
|
PrintAndLogEx(SUCCESS, "No key supplied. Trying no authentication read/writes");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (tearoff_sleep) {
|
||||||
|
PrintAndLogEx(SUCCESS, "Using " _YELLOW_("%u") " ms delay between attempts", tearoff_sleep);
|
||||||
|
}
|
||||||
|
|
||||||
//check if the card is in secure mode or not
|
//check if the card is in secure mode or not
|
||||||
iclass_card_select_t payload_rdr = {
|
iclass_card_select_t payload_rdr = {
|
||||||
.flags = (FLAG_ICLASS_READER_INIT | FLAG_ICLASS_READER_CLEARTRACE)
|
.flags = (FLAG_ICLASS_READER_INIT | FLAG_ICLASS_READER_CLEARTRACE)
|
||||||
|
@ -3189,7 +3194,7 @@ static int CmdHFiClass_TearBlock(const char *Cmd) {
|
||||||
// write
|
// write
|
||||||
// don't check the return value. As a tear-off occurred, the write failed.
|
// don't check the return value. As a tear-off occurred, the write failed.
|
||||||
//PrintAndLogEx(NORMAL, "\r" NOLF);
|
//PrintAndLogEx(NORMAL, "\r" NOLF);
|
||||||
PrintAndLogEx(INPLACE, "Tear off delay "_YELLOW_("%d")" / "_YELLOW_("%d")" us", tearoff_start, tearoff_end);
|
PrintAndLogEx(INPLACE, " Tear off delay "_YELLOW_("%d")" / "_YELLOW_("%d")" us", tearoff_start, tearoff_end);
|
||||||
iclass_write_block(blockno, data, mac, key, use_credit_key, elite, rawkey, use_replay, verbose, auth, shallow_mod);
|
iclass_write_block(blockno, data, mac, key, use_credit_key, elite, rawkey, use_replay, verbose, auth, shallow_mod);
|
||||||
|
|
||||||
//read the data back
|
//read the data back
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue