Commit 7a30e354 authored by Philippe Teuwen's avatar Philippe Teuwen

nfc-mfclassic: update help & man page

parent d4762331
......@@ -3,10 +3,13 @@
nfc-mfclassic \- MIFARE Classic command line tool
.SH SYNOPSIS
.B nfc-mfclassic
.RI \fR\fBr\fR|\fR\fBR\fR|\fBw\fR\fR|\fBW\fR
.RI \fR\fBf\fR|\fR\fBr\fR|\fR\fBR\fR|\fBw\fR\fR|\fBW\fR
.RI \fR\fBa\fR|\fR\fBA\fR|\fBb\fR\fR|\fBB\fR
.IR DUMP
.IR [KEYS]
.RI [
.IR KEYS
.RI [\fR\fBf\fR]
.RI ]
.SH DESCRIPTION
.B nfc-mfclassic
......@@ -27,6 +30,10 @@ to store the keys and data for all sectors.
Be cautious that some parts of a MIFARE Classic memory are used for r/w access
of the rest of the memory, so please read the tag documentation before experimenting too much!
The
.B f
option to format the card will reset all keys to FFFFFFFFFFFF, all data to 00 and all ACLs to default.
The
.B W
option allows writing of special MIFARE cards that can be 'unlocked' to allow block 0
......@@ -57,8 +64,10 @@ options only work on special versions of MIFARE 1K cards (Chinese clones).
.SH OPTIONS
.TP
.BR r " | " R " | " w " | " W
Perform read from (
.BR f " | " r " | " R " | " w " | " W
Perform format (
.B f
) or read from (
.B r
) or unlocked read from (
.B R
......@@ -86,6 +95,11 @@ MiFare Dump (MFD) used to write (card to MFD) or (MFD to card)
.TP
.IR KEYS
MiFare Dump (MFD) that contains the keys (optional). Data part of the dump is ignored.
.TP
.B f
Force using the keyfile
.IR KEYS
even if UID does not match (optional).
.SH BUGS
Please report any bugs on the
......
......@@ -476,7 +476,7 @@ static void
print_usage(const char *pcProgramName)
{
printf("Usage: ");
printf("%s r|R|w|W a|b <dump.mfd> [<keys.mfd> [f]]\n", pcProgramName);
printf("%s f|r|R|w|W a|b <dump.mfd> [<keys.mfd> [f]]\n", pcProgramName);
printf(" f|r|R|w|W - Perform format (f) or read from (r) or unlocked read from (R) or write to (w) or unlocked write to (W) card\n");
printf(" *** format will reset all keys to FFFFFFFFFFFF and all data to 00 and all ACLs to default\n");
printf(" *** unlocked read does not require authentication and will reveal A and B keys\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment