70 Commits

Author SHA1 Message Date
Daniel Seiller
7f2abb32c7 First check for key B, then A when selecting exploit sector 2019-08-14 21:07:45 +02:00
Daniel Seiller
ca8ab62bf7 Remove second block_to_sector definition 2019-08-14 18:30:37 +02:00
Daniel Seiller
aaaee56626 Simplify Exploit sector picking 2019-08-14 18:28:07 +02:00
Daniel Seiller
0313b7bcc5 Pick exploit sector starting from last sector 2019-08-14 17:56:59 +02:00
Daniel Seiller
786fe821fe Fix sector/block conversion 2019-08-14 17:54:59 +02:00
Daniel Seiller
9f352d2258 Add key-reuse check 2019-08-14 00:32:32 +02:00
Daniel Seiller
64069b3231 Fix -C option 2019-08-14 00:31:41 +02:00
Daniel Seiller
27c8490fd2 Make -O parameter optional 2019-08-13 22:21:39 +02:00
Daniel Seiller
634f7e3646 Add option to skip checking default keys 2019-08-13 22:20:49 +02:00
Valentín Kivachuk
5658f224bc fix memmory issue 2018-11-30 17:43:45 +01:00
Valentín Kivachuk
ca895fc373 poc: hardnested attack 2018-11-30 15:11:57 +01:00
Valentín Kivachuk
fc39e033c4 basic integration of mfoc + cropto1_bs
Special thanks to @skgsergio for helping with automake stuff :)
2018-11-25 17:01:24 +01:00
Valentín Kivachuk
0723f53aaf update crapto1 and fix compiling warnings
Crapto1 library from proxmark3 repo
2018-11-22 21:18:54 +01:00
user
593315f7d4 FIX: warning "DBG" redefine 2018-01-31 11:22:41 +01:00
Philippe Teuwen
9d9f01fba4 Simplify PRNG validation 2017-02-17 16:14:01 +01:00
Philippe Teuwen
34d42e5e47 Port miLazyCracker patch: test PRNG
cf 39658a2ac4/mfoc_test_prng.diff
2017-02-17 15:44:30 +01:00
Philippe Teuwen
2316ad0815 Replace non-ANSI-C getline by fgets 2017-02-17 15:44:30 +01:00
Philippe Teuwen
0970559b97 Port miLazyCracker patch: support 2k
cf 39658a2ac4/mfoc_support_2k.diff
2017-02-17 13:52:48 +01:00
Philippe Teuwen
e36025bb25 Port miLazyCracker patch: support tnp
cf 39658a2ac4/mfoc_support_tnp.diff
2017-02-17 13:52:48 +01:00
Philippe Teuwen
f172064f98 Port miLazyCracker patch: fix 4k and Mini
cf 39658a2ac4/mfoc_fix_4k_and_mini.diff
2017-02-17 13:52:48 +01:00
Adam Laurie
e2cf90202a show known keys before trying to crack 2015-06-08 16:34:00 +01:00
Simon Yorkston
51bae1e1c8 Final tweaks to regexp 2015-04-15 14:24:55 +02:00
Simon Yorkston
0976e6f285 Added -f to CL arguments 2015-04-15 13:28:50 +02:00
Simon Yorkston
eff3dc0d5f Updated SLRE syntax to comply with new version 2015-04-15 13:25:43 +02:00
Simon Yorkston
c346e2af72 Tweaked in the SLRE libraries 2015-04-15 13:18:09 +02:00
Simon Yorkston
86caca5f6b Adding ability to load keys from file
Switch -f allows for a file to be provided that contains additional keys
2015-04-15 12:45:15 +02:00
Kirill Elagin
3b5be84676 Proper amount of data to dump 2015-04-11 23:56:21 +03:00
Kirill Elagin
f3ebde09ef Fix user-provided keys handling
This makes mfoc try user-provided keys even if the built-in
ones are removed from the code (for efficiency).
2015-04-11 23:30:58 +03:00
Kirill Elagin
b872a328e3 Fix typo
This was horrible as this made mfoc non-functional for cards
with unknown SAK’s.
2015-04-11 23:30:20 +03:00
Kirill Elagin
30ce00aa8e Alternative Mifare Classic 1k SAK 2015-04-11 23:29:59 +03:00
Adam Laurie
5d8bf95968 don't bother cracking KeyB when you can just read it out of data block 2015-03-23 15:20:46 +00:00
Marcos Vives Del Sol
f13efb0a6d Implemented Mifare Mini using FireFart's patch 2015-03-17 16:06:16 +01:00
Romuald Conty
e1a2b0225f Check if nfc_init() returns a valid context
This fixes a potential segfault when libnfc is not correctly initialized
2013-12-06 15:24:08 +01:00
Romuald Conty
222ba1838c Display right message when no tag is detected
This fixes a potential segfault due to an access to uninitialised memory variable access
2013-12-06 15:22:42 +01:00
Romuald Conty
9b37ccd725 Restore missing default keys
Bug introduced in previous commit...
2013-04-05 10:15:54 +02:00
Romuald Conty
e5024608f3 Sync nfc-utils.[hc] with devel libnfc files 2013-04-04 23:55:00 +02:00
Romuald Conty
ba7e75cd16 make style 2013-02-20 19:01:41 +01:00
Romuald Conty
0c2d2b5894 Fixes error handling when performing MIFARE commands:
Before this commit, MFOC was considering any errors as authentication error (AUTH command) or permission error (READ/WRITE commands);
With this patch, any error which is not a tag-related error will produce a program exit (with EXIT_FAILURE flag).

Plus, this commit silents MIFARE authentication error while MFOC try some default keys...
2013-02-20 18:50:42 +01:00
Romuald Conty
9a02d34ede Clean GPL licence header in mfoc.c 2013-02-20 18:44:29 +01:00
Romuald Conty
0406f0002e Fixes comparaisons between signed and unsigned values 2013-02-20 18:23:07 +01:00
Romuald Conty
166a1467c2 Use defined macros instead of hardcoded values (MC_AUTH_A/MC_AUTH_B) 2013-02-20 18:08:36 +01:00
Romuald Conty
2b16dc7ff8 Prints symbols signification during key search 2013-02-20 18:05:57 +01:00
Romuald Conty
6048309a13 Format source code with "make style" 2013-01-20 15:36:59 +01:00
Romuald Conty
10699271f6 Updates source to use libnfc 1.7.0 2013-01-20 15:27:05 +01:00
Romuald Conty
02afffce07 Fix tolerance (-T) option (Fixes issue 102)
Thanks to fnargwibble
2012-10-14 10:35:37 +00:00
Romuald Conty
451f2fa29c use authuid instead uid name when handling the authentication uid bytes (different from UID with 7bytes MIFARE Classic 2012-06-03 21:23:51 +00:00
Romuald Conty
bc109b9252 some code clean up: find . -name '*.[ch]' | xargs perl -pi -e 's/\t+$//; s/ +$//' 2012-06-03 21:07:51 +00:00
Romuald Conty
435de61cc5 Allow to find default keys using 7bytes UID MIFARE Classic tags 2012-06-02 01:26:48 +00:00
Romuald Conty
3b02985173 Remove not requiered anticol and configuration, its speed up default keys search 2012-06-02 00:48:58 +00:00
Romuald Conty
262e206b0a Enhance default keys search result: '/', '\' and 'x' means respectively A, B and both key(s) found. 2012-06-02 00:44:58 +00:00