mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
cmdhficlass, cmdhfseos: fixed data argument parsing
This commit is contained in:
parent
97aa1ff598
commit
550af14502
2 changed files with 8 additions and 2 deletions
|
@ -5436,7 +5436,10 @@ static int CmdHFiClassSAM(const char *Cmd) {
|
|||
data[0] = flags;
|
||||
|
||||
int cmdlen = 0;
|
||||
CLIGetHexBLessWithReturn(ctx, 8, data+1, &cmdlen, 0);
|
||||
if (CLIParamHexToBuf(arg_get_str(ctx, 8), data+1, PM3_CMD_DATA_SIZE-1, &cmdlen) != PM3_SUCCESS){
|
||||
CLIParserFree(ctx);
|
||||
return PM3_ESOFT;
|
||||
}
|
||||
|
||||
CLIParserFree(ctx);
|
||||
|
||||
|
|
|
@ -1660,7 +1660,10 @@ static int CmdHfSeosSAM(const char *Cmd) {
|
|||
data[0] = flags;
|
||||
|
||||
int cmdlen = 0;
|
||||
CLIGetHexBLessWithReturn(ctx, 5, data+1, &cmdlen, 0);
|
||||
if (CLIParamHexToBuf(arg_get_str(ctx, 5), data+1, PM3_CMD_DATA_SIZE-1, &cmdlen) != PM3_SUCCESS){
|
||||
CLIParserFree(ctx);
|
||||
return PM3_ESOFT;
|
||||
}
|
||||
|
||||
CLIParserFree(ctx);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue