diff --git a/.gitignore b/.gitignore index 1488245..a65cb6a 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ src/mfoc src/mfoc.exe stamp-h1 *.o +.history/ diff --git a/debian/rules b/debian/rules old mode 100755 new mode 100644 diff --git a/src/mfoc.c b/src/mfoc.c index 698e7b5..27bf839 100644 --- a/src/mfoc.c +++ b/src/mfoc.c @@ -345,6 +345,28 @@ int main(int argc, char *const argv[]) fprintf(stdout, "\nTry to authenticate to all sectors with default keys...\n"); fprintf(stdout, "Symbols: '.' no key found, '/' A key found, '\\' B key found, 'x' both keys found\n"); // Set the authentication information (uid) + bool did_hardnested=false; + check_keys: + if (did_hardnested) { + printf("\nChecking for key reuse...\n"); + int i=0; + defKeys_len=0; + free(defKeys); + defKeys=malloc(0); + for (int i=0;i