Unknown
0bf4cec661
remove direct write check
2020-06-30 14:52:07 +02:00
Unknown
c8fcaea8ab
no need to differentiate routines
2020-06-27 16:17:15 +02:00
Unknown
6921e57fb8
correct typo
2020-06-27 13:33:04 +02:00
Unknown
01bc5693d9
another hardcode value
2020-06-26 19:08:04 +02:00
Unknown
db957aabdf
adds write condition check in unlock_card()
2020-06-26 18:29:01 +02:00
Unknown
f7b9b0eafa
remove unused stuff for block 0 writing
2020-06-26 13:36:18 +02:00
Unknown
709ef8381f
reinit for retrieving new uid after block 0 write
2020-06-26 13:34:50 +02:00
Unknown
3c55b8746b
swap 0 block write and other blocks write
...
when writing to gen2 and possible on gen3, it writes first block 3 wich is the trailing sector before writing to block 0, so the last write to block 0 fails because authenticate to old keyset
2020-06-26 01:50:11 +02:00
Unknown
02f0f6b290
add verbose case
...
add verbose case
2020-06-26 01:28:57 +02:00
Unknown
7a5e654309
hardcoded values
2020-06-25 23:56:38 +02:00
Unknown
2b21d87e8e
add gen2 desc to help
...
add gen2 desc to help
2020-06-25 23:45:17 +02:00
Unknown
4e922e8194
sends lib log to /dev/null in posix and added option (v) to reactivate
...
There in an error handling and messaging inside
2020-06-25 23:32:03 +02:00
Unknown
3f4b7a037a
add rewrite support for gen2 tags with W command
...
add rewrite support for gen2 tags with W command
2020-06-25 23:10:06 +02:00
Unknown
dd96571f88
no need to loop, only one block
2020-06-25 19:49:04 +02:00
Unknown
5a87f1f3db
Splitting block 0 writing and other block writing, not needed anymore
2020-06-25 19:29:38 +02:00
Adam Laurie
7b6ff73c4b
only test DirectWrite write if we need to. only write block 0 if specifically requested to.
2020-06-25 17:45:20 +02:00
Adam Laurie
e560689f60
restore original block count logic and add debuggers for block0
2020-06-25 17:44:20 +02:00
Adam Laurie
a28a537610
partial fix of nfc-mfclassic which only writes first sector of each block and not sector 1,2,3 unles 'unlocked' write - debuggers still in!
2020-06-25 17:43:19 +02:00
Ludovic Rousseau
c8692aa239
Fix compiler warning: no previous prototype
...
nfc-mfclassic.c:623:6: warning: no previous prototype for ‘is_directwrite’ [-Wmissing-prototypes]
bool is_directwrite(void)
^~~~~~~~~~~~~~
2020-05-22 09:51:14 +02:00
Ludovic Rousseau
91d7c5d32f
Fix compiler warning: old-style function definition
...
nfc-mfclassic.c:623:6: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
bool is_directwrite()
^~~~~~~~~~~~~~
nfc-mfclassic.c: In function ‘is_directwrite’:
nfc-mfclassic.c:623:6: warning: old-style function definition [-Wold-style-definition]
2020-05-22 09:50:26 +02:00
Philippe Teuwen
4525cd1c32
make style
2020-05-21 15:06:17 +02:00
Philippe Teuwen
5a059db901
remove warnings
2020-05-21 14:50:30 +02:00
hongbin@ftsafe.com
8352c80679
Modify pcsc.c to have support for Mifare classic and Ultralight card
...
Modify pcsc.c and mifare.c files.
1. add code into pcsc.c to have support Mifare classic card.
2. The PCSC reader has SW value, add response data length for PCSC
reader
2020-05-13 12:15:28 +08:00
Adam Laurie
66176016ed
bring nfc-list man page up to date
2020-05-12 16:52:47 +01:00
Philippe Teuwen
10f880374c
nfc-list bitfield
2020-05-11 19:55:44 +02:00
Adam Laurie
19a51dc2bd
first cut iClass support - get nfc-list to see UID
2020-05-11 11:45:28 +01:00
Adam Laurie
ff4e1efa7b
Merge branch 'master' into patch-2
2020-04-04 18:24:40 +01:00
Adam Laurie
54ba7359ce
Merge branch 'master' into master
2020-04-04 18:15:56 +01:00
Adam Laurie
a85f003d91
Merge pull request #451 from hph86/3_verbose_rats_cmd
...
Add RATS support indicator to nfc-mfclassic
2020-04-04 17:39:46 +01:00
quantum-x
fbdbe6eff3
Update nfc-mfclassic.c
...
Adding support for extended Magic cards:
- DirectWrite cards
- One Time Write cards
Direct Write cards support modification of B0 directly, without any unlock codes. When we are attempting to detect if a card is 'magic', we will attempt to modify B0 directly as an initial check.
One Time Write cards support modification of B0 directly, one time only. They do not respond to magic commands, but have a fixed UID coming out of the factory. We now detect this UID, and if so, deem the card 'magic'.
2019-08-19 19:07:18 +02:00
quantum-x
c109d37783
Update nfc-mfultralight.c
...
Adding support for "DirectWrite" Ultralight tags.
- The latest generation of "Magic" Ultralight tags support DirectWrite to B0.
- Several versions of these cards are bricked if the older 'unlock' command is issued to the card.
- To avoid this, when detecting if a card is magic, we attempt to modify B0 directly. If this fails, we proceed with an unlock command.
2019-08-19 19:04:52 +02:00
rstular
ebb13d8965
Updated function declaration in utils/nfc-mfultralight.c
...
Updated a function declaration in utils/nfc-mfultralight.c to match the new style of C function declarations.
2019-04-29 09:49:09 +02:00
Mikolaj Stawiski
793d5adde6
Fixed format warnings.
2018-11-25 13:48:04 +11:00
Stean
f93169feb4
Add undocumented option -s to nfc-relay-picc man page
2018-11-04 21:30:35 +01:00
Stean
c52cdb10c8
Add undocumented option -s to usage listing
2018-11-04 21:22:46 +01:00
Markus Werle
4ae4cc86f8
Merge pull request #450 from hph86/2_fix_typo
...
Fix typo in nfc-mfclassic
2018-10-02 12:32:45 +02:00
Adam Laurie
25ee3a2f76
Add OTP/Capability Bytes handling to NTAG
2018-09-18 11:14:08 +01:00
Adam Laurie
3ba065f00b
Remove redundant EV1 types and rely on NTAG types instead
2018-09-17 21:40:48 +01:00
Adam Laurie
40b54a10d7
Fix NTAG OTP and LOCK BYTES (Dynamic LOCK also applies to MF0UL21). Fix MF0UL21 sizing issue.
2018-09-17 16:58:49 +01:00
Adam Laurie
4c914e67e5
Fix handling of NTAG OTP and LOCK bytes
2018-09-17 14:37:09 +01:00
Adam Laurie
62f27c1c58
Add support for Ultralight NTAG213/215/216
2018-09-15 16:19:35 +01:00
Hanno Heinrichs
7a0a469c8a
add more verbosity to RATS handling
2017-09-17 21:04:33 +02:00
Hanno Heinrichs
df4f9c0fbd
fix typo
2017-09-17 21:02:50 +02:00
Hanno Heinrichs
e4ca7f45d2
remove redundant blanks
2017-09-17 21:01:12 +02:00
Philippe Teuwen
00700bc66d
Make Travis happy
2017-05-17 15:56:41 +02:00
Philippe Teuwen
dcdbff0705
New NFC modulation type NMT_BARCODE
2017-05-17 13:58:16 +02:00
Philippe Teuwen
e41a42cf96
nfc-mfultralight: avoid compilation warning
2017-04-01 01:03:41 +02:00
Philippe Teuwen
024fca9cb7
make style
2017-04-01 00:46:12 +02:00
Philippe Teuwen
3ec9ecf800
nfc-mfultralight: fix support for MF0UL21
2017-04-01 00:25:14 +02:00
Philippe Teuwen
560f6a6413
nfc-mfultralight: better parameters checks
2017-03-31 23:21:17 +02:00