diff options
author | laforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2008-02-08 15:04:18 +0000 |
---|---|---|
committer | laforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2008-02-08 15:04:18 +0000 |
commit | f8167ee2831901fe6db0cc37c8c8b9f85009b7db (patch) | |
tree | 4372f45c9c376e263b6438a6d0274df6ceffc3ce | |
parent | 7142d7da7ac0264e16f23f2e8319f3fd01e11470 (diff) |
mifare-tool: fix '-h', use '-b' for brute force (Uwe Hermann)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2075 e0336214-984f-0b4b-a45f-81c69e1f0ede
-rw-r--r-- | utils/mifare-tool.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/mifare-tool.c b/utils/mifare-tool.c index 812d9f9..ab6d216 100644 --- a/utils/mifare-tool.c +++ b/utils/mifare-tool.c @@ -60,7 +60,7 @@ static struct option mifare_opts[] = { { "loop-read", 1, 0, 'l' }, { "write", 1 ,0, 'w' }, { "help", 0, 0, 'h' }, - { "brute-force", 1, 0, 'c' }, + { "brute-force", 1, 0, 'b' }, { 0, 0, 0, 0 } }; @@ -122,14 +122,14 @@ int main(int argc, char **argv) } while (1) { - c = getopt_long(argc, argv, "k:r:l:w:c:", mifare_opts, + c = getopt_long(argc, argv, "k:r:l:w:b:h", mifare_opts, &option_index); if (c == -1) break; switch (c) { int i; - case 'c': + case 'b': page = atoi(optarg); printf("key: %s\n", hexdump(key, MIFARE_CL_KEY_LEN)); len = MIFARE_CL_PAGE_SIZE; |