style
This commit is contained in:
1 parent
5abae85eda
commit
d74e264250
9 files changed
+43
-43
No files matched your search
@@ -441,7 +441,7 @@ static bool get_14b_UID(uint8_t *d, iso14b_type_t *found_type) {
|
||||
if (resp.oldarg[0] == 0) {
|
||||
memcpy(d, resp.data.asBytes, sizeof(iso14b_card_select_t));
|
||||
|
||||
iso14b_card_select_t *card = (iso14b_card_select_t*)d;
|
||||
iso14b_card_select_t *card = (iso14b_card_select_t *)d;
|
||||
uint8_t empty[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
||||
if (memcmp(card->uid, empty, card->uidlen) == 0) {
|
||||
return false;
|
||||
|
||||
+24
-24
@@ -4158,7 +4158,7 @@ static int CmdT55xxSniff(const char *Cmd) {
|
||||
usedPassword <<= 1;
|
||||
if (data[i] == '1') {
|
||||
usedPassword |= 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Lock bit 34
|
||||
@@ -4167,7 +4167,7 @@ static int CmdT55xxSniff(const char *Cmd) {
|
||||
blockData <<= 1;
|
||||
if (data[i] == '1') {
|
||||
blockData |= 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
blockAddr = 0;
|
||||
@@ -4198,7 +4198,7 @@ static int CmdT55xxSniff(const char *Cmd) {
|
||||
blockData <<= 1;
|
||||
if (data[i] == '1') {
|
||||
blockData |= 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (uint8_t i = 2; i <= 33; i++) {
|
||||
@@ -4239,7 +4239,7 @@ static int CmdT55xxSniff(const char *Cmd) {
|
||||
usedPassword <<= 1;
|
||||
if (data[i] == '1') {
|
||||
usedPassword |= 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
blockData = 0;
|
||||
@@ -4247,7 +4247,7 @@ static int CmdT55xxSniff(const char *Cmd) {
|
||||
blockData <<= 1;
|
||||
if (data[i] == '1') {
|
||||
blockData |= 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
blockAddr = 0;
|
||||
@@ -4255,7 +4255,7 @@ static int CmdT55xxSniff(const char *Cmd) {
|
||||
blockAddr <<= 1;
|
||||
if (data[i] == '1') {
|
||||
blockAddr |= 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
have_data = true;
|
||||
@@ -4271,26 +4271,26 @@ static int CmdT55xxSniff(const char *Cmd) {
|
||||
if (have_data) {
|
||||
if (blockAddr == 7) {
|
||||
PrintAndLogEx(SUCCESS, "%-22s | "_GREEN_("%10s")" | "_YELLOW_("%8s")" | "_YELLOW_("%d")" | "_GREEN_("%d")" | %3d | %3d | %s"
|
||||
, modeText
|
||||
, pwdText
|
||||
, dataText
|
||||
, blockAddr
|
||||
, page
|
||||
, minWidth
|
||||
, maxWidth
|
||||
, data
|
||||
);
|
||||
, modeText
|
||||
, pwdText
|
||||
, dataText
|
||||
, blockAddr
|
||||
, page
|
||||
, minWidth
|
||||
, maxWidth
|
||||
, data
|
||||
);
|
||||
} else {
|
||||
PrintAndLogEx(SUCCESS, "%-22s | "_GREEN_("%10s")" | "_GREEN_("%8s")" | "_GREEN_("%d")" | "_GREEN_("%d")" | %3d | %3d | %s"
|
||||
, modeText
|
||||
, pwdText
|
||||
, dataText
|
||||
, blockAddr
|
||||
, page
|
||||
, minWidth
|
||||
, maxWidth
|
||||
, data
|
||||
);
|
||||
, modeText
|
||||
, pwdText
|
||||
, dataText
|
||||
, blockAddr
|
||||
, page
|
||||
, minWidth
|
||||
, maxWidth
|
||||
, data
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user