From f8167ee2831901fe6db0cc37c8c8b9f85009b7db Mon Sep 17 00:00:00 2001 From: laforge Date: Fri, 8 Feb 2008 15:04:18 +0000 Subject: 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 --- utils/mifare-tool.c | 6 +++--- 1 file 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; -- cgit v1.2.3