allow for different sectors

This commit is contained in:
iceman1001 2020-10-30 02:25:54 +01:00
commit d42350baff

View file

@ -5379,10 +5379,11 @@ static int CmdHf14AMfSuperCard(const char *Cmd) {
data.nonce2 = prng_successor(NT0, 31);; data.nonce2 = prng_successor(NT0, 31);;
data.nr2 = bytes_to_num(outB + 8, 4); data.nr2 = bytes_to_num(outB + 8, 4);
data.ar2 = bytes_to_num(outB + 12, 4); data.ar2 = bytes_to_num(outB + 12, 4);
data.sector = 0; data.sector = GetSectorFromBlockNo(outA[5]);
data.keytype = outA[4]; data.keytype = outA[4];
data.state = FIRST; data.state = FIRST;
PrintAndLogEx(DEBUG, "A Sector %02x", data.sector);
PrintAndLogEx(DEBUG, "A NT %08x", data.nonce); PrintAndLogEx(DEBUG, "A NT %08x", data.nonce);
PrintAndLogEx(DEBUG, "A NR %08x", data.nr); PrintAndLogEx(DEBUG, "A NR %08x", data.nr);
PrintAndLogEx(DEBUG, "A AR %08x", data.ar); PrintAndLogEx(DEBUG, "A AR %08x", data.ar);