]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdlfhid.c
CHG: mostly syntax suger, trying to uniform the look 'n feel.. To make calls act...
[proxmark3-svn] / client / cmdlfhid.c
index 85d72b67afc7be44b4f5b080ff28936a406b71d0..5bdeea6d9efe01e3772a128ccd793f110aecf71d 100644 (file)
@@ -40,8 +40,8 @@ int usage_lf_hid_brute(void){
        PrintAndLog("");
        PrintAndLog("Usage:  lf hid brute <formatlength> <Facility-Code>");
        PrintAndLog("Options :");
        PrintAndLog("");
        PrintAndLog("Usage:  lf hid brute <formatlength> <Facility-Code>");
        PrintAndLog("Options :");
-       PrintAndLog("  <formatlength>   : 26|33|34|35|37|40|44|84 ");
-       PrintAndLog("  <Facility-Code>  : 8-bit value HID facility code");
+       PrintAndLog("  <formatlength>   - 26|33|34|35|37|40|44|84");
+       PrintAndLog("  <Facility-Code>  - 8-bit value HID facility code");
        PrintAndLog("");
        PrintAndLog("Sample  : lf hid brute 26 224");
        return 0;
        PrintAndLog("");
        PrintAndLog("Sample  : lf hid brute 26 224");
        return 0;
@@ -362,16 +362,18 @@ int CmdHIDBrute(const char *Cmd){
 }
 
 static command_t CommandTable[] = {
 }
 
 static command_t CommandTable[] = {
-       {"help",      CmdHelp,        1, "This help"},
-       //{"demod",     CmdHIDDemod,    1, "Demodulate HID Prox Card II (not optimal)"},
-       {"fskdemod",  CmdHIDDemodFSK, 0, "['1'] Realtime HID FSK demodulator (option '1' for one tag only)"},
-       {"sim",       CmdHIDSim,      0, "<ID> -- HID tag simulator"},
-       {"clone",     CmdHIDClone,    0, "<ID> ['l'] -- Clone HID to T55x7 (tag must be in antenna)(option 'l' for 84bit ID)"},
-       {"wiegand",  CmdHIDWiegand,  1, "<oem> <fmtlen> <fc> <cardnum> -- convert facilitycode, cardnumber to Wiegand code"},
+       {"help",        CmdHelp,                1, "This help"},
+       //{"demod",     CmdHIDDemod,    1, "Demodulate HID Prox Card II (not optimal)"},
+       {"fskdemod",CmdHIDDemodFSK,     0, "['1'] Realtime HID FSK demodulator (option '1' for one tag only)"},
+       {"sim",         CmdHIDSim,              0, "<ID> -- HID tag simulator"},
+       {"clone",       CmdHIDClone,    0, "<ID> ['l'] -- Clone HID to T55x7 (tag must be in antenna)(option 'l' for 84bit ID)"},
+       {"wiegand",     CmdHIDWiegand,  0, "<oem> <fc> <cardnum> -- convert facilitycode, cardnumber to Wiegand code"},
+       {"brute",       CmdHIDBrute,    0, "<formatlength> <Facility-Code> -- bruteforce card number"},
        {NULL, NULL, 0, NULL}
 };
 
 int CmdLFHID(const char *Cmd) {
        {NULL, NULL, 0, NULL}
 };
 
 int CmdLFHID(const char *Cmd) {
+       clearCommandBuffer();
        CmdsParse(CommandTable, Cmd);
        return 0;
 }
        CmdsParse(CommandTable, Cmd);
        return 0;
 }
Impressum, Datenschutz