+ make
make all-recursive
make[1]: Entering directory '/root/miLazyCracker/mfoc'
Making all in src
make[2]: Entering directory '/root/miLazyCracker/mfoc/src'
CC crapto1.o
CC crypto1.o
CC mfoc.o
mfoc.c:75:10: error: redefinition of ‘knownKey’
75 | uint64_t knownKey = 0;
| ^~~~~~~~
mfoc.c:68:10: note: previous definition of ‘knownKey’ was here
68 | uint64_t knownKey = 0;
| ^~~~~~~~
mfoc.c:76:6: error: redefinition of ‘knownKeyLetter’
76 | char knownKeyLetter = 'A';
| ^~~~~~~~~~~~~~
mfoc.c:69:6: note: previous definition of ‘knownKeyLetter’ was here
69 | char knownKeyLetter = 'A';
| ^~~~~~~~~~~~~~
mfoc.c:77:10: error: redefinition of ‘knownSector’
77 | uint32_t knownSector = 0;
| ^~~~~~~~~~~
mfoc.c:70:10: note: previous definition of ‘knownSector’ was here
70 | uint32_t knownSector = 0;
| ^~~~~~~~~~~
mfoc.c:78:10: error: redefinition of ‘unknownSector’
78 | uint32_t unknownSector = 0;
| ^~~~~~~~~~~~~
mfoc.c:71:10: note: previous definition of ‘unknownSector’ was here
71 | uint32_t unknownSector = 0;
| ^~~~~~~~~~~~~
mfoc.c:79:6: error: redefinition of ‘unknownKeyLetter’
79 | char unknownKeyLetter = 'A';
| ^~~~~~~~~~~~~~~~
mfoc.c:72:6: note: previous definition of ‘unknownKeyLetter’ was here
72 | char unknownKeyLetter = 'A';
| ^~~~~~~~~~~~~~~~
mfoc.c:80:10: error: redefinition of ‘unexpected_random’
80 | uint32_t unexpected_random = 0;
| ^~~~~~~~~~~~~~~~~
mfoc.c:73:10: note: previous definition of ‘unexpected_random’ was here
73 | uint32_t unexpected_random = 0;
| ^~~~~~~~~~~~~~~~~
mfoc.c: In function ‘main’:
mfoc.c:260:7: error: duplicate case value
260 | case 'D':
| ^~~~
mfoc.c:252:7: note: previously used here
252 | case 'D':
| ^~~~
make[2]: *** [Makefile:397: mfoc.o] Error 1
make[2]: Leaving directory '/root/miLazyCracker/mfoc/src'
make[1]: *** [Makefile:358: all-recursive] Error 1
make[1]: Leaving directory '/root/miLazyCracker/mfoc'
make: *** [Makefile:299: all] Error 2
+ sudo make install
Making install in src
make[1]: Entering directory '/root/miLazyCracker/mfoc/src'
CC mfoc.o
mfoc.c:75:10: error: redefinition of ‘knownKey’
75 | uint64_t knownKey = 0;
| ^~~~~~~~
mfoc.c:68:10: note: previous definition of ‘knownKey’ was here
68 | uint64_t knownKey = 0;
| ^~~~~~~~
mfoc.c:76:6: error: redefinition of ‘knownKeyLetter’
76 | char knownKeyLetter = 'A';
| ^~~~~~~~~~~~~~
mfoc.c:69:6: note: previous definition of ‘knownKeyLetter’ was here
69 | char knownKeyLetter = 'A';
| ^~~~~~~~~~~~~~
mfoc.c:77:10: error: redefinition of ‘knownSector’
77 | uint32_t knownSector = 0;
| ^~~~~~~~~~~
mfoc.c:70:10: note: previous definition of ‘knownSector’ was here
70 | uint32_t knownSector = 0;
| ^~~~~~~~~~~
mfoc.c:78:10: error: redefinition of ‘unknownSector’
78 | uint32_t unknownSector = 0;
| ^~~~~~~~~~~~~
mfoc.c:71:10: note: previous definition of ‘unknownSector’ was here
71 | uint32_t unknownSector = 0;
| ^~~~~~~~~~~~~
mfoc.c:79:6: error: redefinition of ‘unknownKeyLetter’
79 | char unknownKeyLetter = 'A';
| ^~~~~~~~~~~~~~~~
mfoc.c:72:6: note: previous definition of ‘unknownKeyLetter’ was here
72 | char unknownKeyLetter = 'A';
| ^~~~~~~~~~~~~~~~
mfoc.c:80:10: error: redefinition of ‘unexpected_random’
80 | uint32_t unexpected_random = 0;
| ^~~~~~~~~~~~~~~~~
mfoc.c:73:10: note: previous definition of ‘unexpected_random’ was here
73 | uint32_t unexpected_random = 0;
| ^~~~~~~~~~~~~~~~~
mfoc.c: In function ‘main’:
mfoc.c:260:7: error: duplicate case value
260 | case 'D':
| ^~~~
mfoc.c:252:7: note: previously used here
252 | case 'D':
| ^~~~
make[1]: *** [Makefile:397: mfoc.o] Error 1
make[1]: Leaving directory '/root/miLazyCracker/mfoc/src'
make: *** [Makefile:358: install-recursive] Error 1
+ '[' -d crypto1_bs ']'
+ cd crypto1_bs
+ git reset --hard
+ git clean -dfx
+ patch -p1
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/libnfc_crypto1_crack.c b/libnfc_crypto1_crack.c
|index 8a53f64..21feed2 100644
|--- a/libnfc_crypto1_crack.c
|+++ b/libnfc_crypto1_crack.c
--------------------------
File to patch: