mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
fix #1016 (thanks @mwalker33!)
This commit is contained in:
parent
6adf055e17
commit
5233e9c855
1 changed files with 6 additions and 7 deletions
|
@ -567,13 +567,9 @@ static int CmdIndalaSim(const char *Cmd) {
|
||||||
|
|
||||||
static int CmdIndalaClone(const char *Cmd) {
|
static int CmdIndalaClone(const char *Cmd) {
|
||||||
|
|
||||||
bool is_long_uid = false, got_cn = false, got_26 = false;
|
|
||||||
bool is_t5555 = false;
|
|
||||||
int32_t cardnumber;
|
int32_t cardnumber;
|
||||||
uint32_t blocks[8] = {0};
|
uint32_t blocks[8] = {0};
|
||||||
uint8_t max = 0;
|
uint8_t max = 0;
|
||||||
uint8_t data[7 * 4];
|
|
||||||
int datalen = 0;
|
|
||||||
uint8_t fc = 0;
|
uint8_t fc = 0;
|
||||||
uint16_t cn = 0;
|
uint16_t cn = 0;
|
||||||
|
|
||||||
|
@ -597,13 +593,16 @@ static int CmdIndalaClone(const char *Cmd) {
|
||||||
};
|
};
|
||||||
CLIExecWithReturn(ctx, Cmd, argtable, false);
|
CLIExecWithReturn(ctx, Cmd, argtable, false);
|
||||||
|
|
||||||
is_long_uid = arg_get_lit(ctx, 1);
|
bool is_long_uid = arg_get_lit(ctx, 1);
|
||||||
|
|
||||||
// raw param
|
// raw param
|
||||||
|
int datalen = 0;
|
||||||
|
uint8_t data[(7 * 4) + 1 ];
|
||||||
CLIGetHexWithReturn(ctx, 3, data, &datalen);
|
CLIGetHexWithReturn(ctx, 3, data, &datalen);
|
||||||
|
|
||||||
is_t5555 = arg_get_lit(ctx, 4);
|
bool is_t5555 = arg_get_lit(ctx, 4);
|
||||||
|
|
||||||
|
bool got_cn = false, got_26 = false;
|
||||||
if (is_long_uid == false) {
|
if (is_long_uid == false) {
|
||||||
|
|
||||||
// Heden param
|
// Heden param
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue