root kali miLazyCracker miLazyCrackerFreshIn stall sh sudo apt-get ins

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
root@kali:~/miLazyCracker# ./miLazyCrackerFreshInstall.sh
+ sudo apt-get install git libnfc-bin autoconf libnfc-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
autoconf is already the newest version (2.69-11.1).
git is already the newest version (1:2.25.1-1).
libnfc-bin is already the newest version (1.7.1-4+b1).
libnfc-dev is already the newest version (1.7.1-4+b1).
The following packages were automatically installed and are no longer required:
clusterd libboost-python1.67.0 libdns1104 libemu2 libexiv2-14 libgeos-3.8.0 libgtkmm-2.4-1v5 libisc1100 libmysofa0 libproj15 libprotobuf17 libradare2-3.9 libre2-5
linux-image-5.4.0-kali2-amd64 python-aes python-asn1crypto python-backports.functools-lru-cache python-bs4 python-certifi python-cffi-backend python-colorama python-configparser
python-cryptography python-dnspython python-editorconfig python-enum34 python-future python-html5lib python-idna python-ipaddress python-jsbeautifier python-lxml python-netaddr python-olefile
python-openssl python-peepdf python-pil python-pylibemu python-pyv8 python-requests python-six python-soupsieve python-urllib3 python-webencodings python3-simplegeneric
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ '[' -d mfoc ']'
+ cd mfoc
+ git reset --hard
HEAD is now at ba072f1 update debian dir with up-to-date packaging
+ git clean -dfx
Removing src/mfoc.c.orig
Removing src/mfoc.c.rej
+ patch -p1
patching file src/mfoc.c
Hunk #1 succeeded at 72 with fuzz 2 (offset 14 lines).
Hunk #2 FAILED at 159.
Hunk #3 succeeded at 257 (offset 15 lines).
Hunk #4 FAILED at 471.
Hunk #5 FAILED at 554.
Hunk #6 FAILED at 770.
Hunk #7 FAILED at 1029.
5 out of 7 hunks FAILED -- saving rejects to file src/mfoc.c.rej
+ patch -p1
patching file src/mfoc.c
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file src/mfoc.c.rej
+ patch -p1
patching file src/mfoc.c
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file src/mfoc.c.rej
+ patch -p1
patching file src/mfoc.c
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
6 out of 6 hunks ignored -- saving rejects to file src/mfoc.c.rej
patching file src/mfoc.h
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file src/mfoc.h.rej
+ autoreconf -vfi
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:11: installing './compile'
configure.ac:9: installing './install-sh'
configure.ac:9: installing './missing'
Makefile.am: installing './INSTALL'
src/Makefile.am: installing './depcomp'
autoreconf: Leaving directory `.'
+ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking whether make supports nested variables... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libnfc... yes
checking for inline... inline
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for size_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for memset... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands
+ 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 ']'
+ git clone https://github.com/aczid/crypto1_bs
Cloning into 'crypto1_bs'...
remote: Enumerating objects: 373, done.
remote: Total 373 (delta 0), reused 0 (delta 0), pack-reused 373
Receiving objects: 100% (373/373), 133.42 KiB | 553.00 KiB/s, done.
Resolving deltas: 100% (240/240), done.
+ cd crypto1_bs
+ git reset --hard
HEAD is now at 873a384 Merge branch 'master' of github.com:aczid/crypto1_bs
+ git clean -dfx
+ patch -p1
patching file libnfc_crypto1_crack.c
Hunk #1 succeeded at 730 with fuzz 2 (offset 17 lines).
+ make get_craptev1
wget http://crapto1.netgarage.org/craptev1-v1.1.tar.xz
--2020-04-08 09:49:24-- http://crapto1.netgarage.org/craptev1-v1.1.tar.xz
Resolving crapto1.netgarage.org (crapto1.netgarage.org)... 176.9.4.150
Connecting to crapto1.netgarage.org (crapto1.netgarage.org)|176.9.4.150|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-04-08 09:49:25 ERROR 404: Not Found.
make: *** [Makefile:34: get_craptev1] Error 8
+ make get_crapto1
wget http://crapto1.netgarage.org/crapto1-v3.3.tar.xz
--2020-04-08 09:49:25-- http://crapto1.netgarage.org/crapto1-v3.3.tar.xz
Resolving crapto1.netgarage.org (crapto1.netgarage.org)... 176.9.4.150
Connecting to crapto1.netgarage.org (crapto1.netgarage.org)|176.9.4.150|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-04-08 09:49:25 ERROR 404: Not Found.
make: *** [Makefile:38: get_crapto1] Error 8
+ make
gcc -std=gnu99 -O3 -march=native solve_bs.c crypto1_bs.c crypto1_bs_crack.c crapto1-v3.3/crapto1.c crapto1-v3.3/crypto1.c -I crapto1-v3.3/ craptev1-v1.1/craptev1.c -I craptev1-v1.1/ -o solve_bs -lpthread -lm
gcc: error: crapto1-v3.3/crapto1.c: No such file or directory
gcc: error: crapto1-v3.3/crypto1.c: No such file or directory
gcc: error: craptev1-v1.1/craptev1.c: No such file or directory
make: *** [Makefile:19: solve_bs] Error 1
+ sudo cp -a libnfc_crypto1_crack /usr/local/bin
cp: cannot stat 'libnfc_crypto1_crack': No such file or directory
+ sudo cp -a miLazyCracker.sh /usr/local/bin/miLazyCracker
+ echo Done.
Done.
root@kali:~/miLazyCracker#