int usage_lf_nedap_clone(void){
PrintAndLog("clone a NEDAP tag to a T55x7 tag.");
PrintAndLog("");
- PrintAndLog("Usage: lf nedap clone <Card-Number>");
- PrintAndLog("Options :");
- PrintAndLog(" <Card Number> : 24-bit value card number");
-// PrintAndLog(" Q5 : optional - clone to Q5 (T5555) instead of T55x7 chip");
+ PrintAndLog("Usage: lf nedap clone [h] <Card-Number>");
+ PrintAndLog("Options:");
+ PrintAndLog(" h : This help");
+ PrintAndLog(" <Card Number> : 24-bit value card number");
+// PrintAndLog(" Q5 : optional - clone to Q5 (T5555) instead of T55x7 chip");
PrintAndLog("");
- PrintAndLog("Sample : lf nedap clone 112233");
+ PrintAndLog("Sample: lf nedap clone 112233");
return 0;
}
PrintAndLog("Enables simulation of NEDAP card with specified card number.");
PrintAndLog("Simulation runs until the button is pressed or another USB command is issued.");
PrintAndLog("");
- PrintAndLog("Usage: lf nedap sim <Card-Number>");
- PrintAndLog("Options :");
- PrintAndLog(" <Card Number> : 24-bit value card number");
+ PrintAndLog("Usage: lf nedap sim [h] <Card-Number>");
+ PrintAndLog("Options:");
+ PrintAndLog(" h : This help");
+ PrintAndLog(" <Card Number> : 24-bit value card number");
PrintAndLog("");
- PrintAndLog("Sample : lf nedap sim 112233");
+ PrintAndLog("Sample: lf nedap sim 112233");
return 0;
}
arg1 = clk << 8 | encoding;
arg2 = invert << 8 | separator;
- if (sscanf(Cmd, "%u", &cn ) != 2) return usage_lf_nedap_sim();
+ if (sscanf(Cmd, "%u", &cn ) != 1) return usage_lf_nedap_sim();
cardnumber = (cn & 0x00FFFFFF);
if ( !GetNedapBits(cardnumber, bs)) {
return 0;
}
-
-
int CmdLFNedapChk(const char *Cmd){
uint8_t data[256] = { 0x30, 0x16, 0x00, 0x71, 0x40, 0x21, 0xBE};