mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
Consider different behavior of some Gen4 cards. Should fix #1822
This commit is contained in:
parent
4e24d463e7
commit
2f4167ee74
3 changed files with 5 additions and 5 deletions
|
@ -2391,11 +2391,11 @@ void MifareCIdent(bool is_mfc) {
|
|||
if (res == 2) {
|
||||
|
||||
// Check for Magic Gen4 GTU with default password :
|
||||
// Get config should return 30 bytes.
|
||||
// Get config should return 30 or 32 bytes
|
||||
AddCrc14A(gen4GetConf, sizeof(gen4GetConf) - 2);
|
||||
ReaderTransmit(gen4GetConf, sizeof(gen4GetConf), NULL);
|
||||
res = ReaderReceive(buf, par);
|
||||
if (res == 32) {
|
||||
if (res == 32 || res == 34) {
|
||||
isGen = MAGIC_GEN_4GTU;
|
||||
goto OUT;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue