Merge pull request #11 from xchwarze/patch-2

Fix Nested attack
This commit is contained in:
Valentin 2019-10-10 20:25:22 +02:00 committed by GitHub
commit ec3ca1cad1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -597,6 +597,10 @@ int main(int argc, char *const argv[])
goto check_keys;
} else {
//Nested attack
// DSR! - fix https://github.com/vk496/mfoc/issues/4
mf_configure(r.pdi);
mf_anticollision(t, r);
// Max probes for auth for each sector
for (k = 0; k < probes; ++k) {
// Try to authenticate to exploit sector and determine distances (filling denonce.distances)