style
This commit is contained in:
@@ -442,7 +442,7 @@ static int CmdAWIDClone(const char *Cmd) {
|
|||||||
|
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
SetConfigWithBlock0(blocks[0]);
|
SetConfigWithBlock0(blocks[0]);
|
||||||
if ( t55xxAquireAndCompareBlock0(false, 0, blocks[0], false) )
|
if (t55xxAquireAndCompareBlock0(false, 0, blocks[0], false))
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -450,7 +450,7 @@ static int CmdAWIDClone(const char *Cmd) {
|
|||||||
res++;
|
res++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( res == 0 )
|
if (res == 0)
|
||||||
PrintAndLogEx(SUCCESS, "Success writing to tag");
|
PrintAndLogEx(SUCCESS, "Success writing to tag");
|
||||||
|
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
|
|||||||
@@ -323,7 +323,7 @@ static int CmdFdxClone(const char *Cmd) {
|
|||||||
|
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
SetConfigWithBlock0(blocks[0]);
|
SetConfigWithBlock0(blocks[0]);
|
||||||
if ( t55xxAquireAndCompareBlock0(false, 0, blocks[0], false) )
|
if (t55xxAquireAndCompareBlock0(false, 0, blocks[0], false))
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -331,7 +331,7 @@ static int CmdFdxClone(const char *Cmd) {
|
|||||||
res++;
|
res++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( res == 0 )
|
if (res == 0)
|
||||||
PrintAndLogEx(SUCCESS, "Success writing to tag");
|
PrintAndLogEx(SUCCESS, "Success writing to tag");
|
||||||
|
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
|
|||||||
@@ -210,7 +210,7 @@ static int CmdGuardClone(const char *Cmd) {
|
|||||||
|
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
SetConfigWithBlock0(blocks[0]);
|
SetConfigWithBlock0(blocks[0]);
|
||||||
if ( t55xxAquireAndCompareBlock0(false, 0, blocks[0], false) )
|
if (t55xxAquireAndCompareBlock0(false, 0, blocks[0], false))
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -218,7 +218,7 @@ static int CmdGuardClone(const char *Cmd) {
|
|||||||
res++;
|
res++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( res == 0 )
|
if (res == 0)
|
||||||
PrintAndLogEx(SUCCESS, "Success writing to tag");
|
PrintAndLogEx(SUCCESS, "Success writing to tag");
|
||||||
|
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
|
|||||||
@@ -470,7 +470,7 @@ static int CmdIndalaClone(const char *Cmd) {
|
|||||||
CLIGetHexWithReturn(2, data, &datalen);
|
CLIGetHexWithReturn(2, data, &datalen);
|
||||||
CLIParserFree();
|
CLIParserFree();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
//TODO add selection of chip for Q5 or T55x7
|
//TODO add selection of chip for Q5 or T55x7
|
||||||
|
|
||||||
// data[0] = T5555_SET_BITRATE(32 | T5555_MODULATION_PSK2 | 7 << T5555_MAXBLOCK_SHIFT;
|
// data[0] = T5555_SET_BITRATE(32 | T5555_MODULATION_PSK2 | 7 << T5555_MAXBLOCK_SHIFT;
|
||||||
@@ -480,7 +480,7 @@ static int CmdIndalaClone(const char *Cmd) {
|
|||||||
// data[0] = T5555_SET_BITRATE(32 | T5555_MODULATION_PSK1 | 2 << T5555_MAXBLOCK_SHIFT;
|
// data[0] = T5555_SET_BITRATE(32 | T5555_MODULATION_PSK1 | 2 << T5555_MAXBLOCK_SHIFT;
|
||||||
//Alternative config for Indala (Extended mode;RF/32;PSK1 with RF/2;Maxblock=2;Inverse data)
|
//Alternative config for Indala (Extended mode;RF/32;PSK1 with RF/2;Maxblock=2;Inverse data)
|
||||||
// T5567WriteBlock(0x603E1042,0);
|
// T5567WriteBlock(0x603E1042,0);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (isLongUid) {
|
if (isLongUid) {
|
||||||
// config for Indala (RF/32;PSK2 with RF/2;Maxblock=7)
|
// config for Indala (RF/32;PSK2 with RF/2;Maxblock=7)
|
||||||
@@ -530,7 +530,7 @@ static int CmdIndalaClone(const char *Cmd) {
|
|||||||
|
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
SetConfigWithBlock0(blocks[0]);
|
SetConfigWithBlock0(blocks[0]);
|
||||||
if ( t55xxAquireAndCompareBlock0(false, 0, blocks[0], false) )
|
if (t55xxAquireAndCompareBlock0(false, 0, blocks[0], false))
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -538,7 +538,7 @@ static int CmdIndalaClone(const char *Cmd) {
|
|||||||
res++;
|
res++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( res == 0 )
|
if (res == 0)
|
||||||
PrintAndLogEx(SUCCESS, "Success writing to tag");
|
PrintAndLogEx(SUCCESS, "Success writing to tag");
|
||||||
|
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
|
|||||||
@@ -304,7 +304,7 @@ static int CmdIOProxClone(const char *Cmd) {
|
|||||||
|
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
SetConfigWithBlock0(blocks[0]);
|
SetConfigWithBlock0(blocks[0]);
|
||||||
if ( t55xxAquireAndCompareBlock0(false, 0, blocks[0], false) )
|
if (t55xxAquireAndCompareBlock0(false, 0, blocks[0], false))
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -312,7 +312,7 @@ static int CmdIOProxClone(const char *Cmd) {
|
|||||||
res++;
|
res++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( res == 0 )
|
if (res == 0)
|
||||||
PrintAndLogEx(SUCCESS, "Success writing to tag");
|
PrintAndLogEx(SUCCESS, "Success writing to tag");
|
||||||
|
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ static int CmdJablotronClone(const char *Cmd) {
|
|||||||
|
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
SetConfigWithBlock0(blocks[0]);
|
SetConfigWithBlock0(blocks[0]);
|
||||||
if ( t55xxAquireAndCompareBlock0(false, 0, blocks[0], false) )
|
if (t55xxAquireAndCompareBlock0(false, 0, blocks[0], false))
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -205,7 +205,7 @@ static int CmdJablotronClone(const char *Cmd) {
|
|||||||
res++;
|
res++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( res == 0 )
|
if (res == 0)
|
||||||
PrintAndLogEx(SUCCESS, "Success writing to tag");
|
PrintAndLogEx(SUCCESS, "Success writing to tag");
|
||||||
|
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ static int CmdKeriClone(const char *Cmd) {
|
|||||||
|
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
SetConfigWithBlock0(blocks[0]);
|
SetConfigWithBlock0(blocks[0]);
|
||||||
if ( t55xxAquireAndCompareBlock0(false, 0, blocks[0], false) )
|
if (t55xxAquireAndCompareBlock0(false, 0, blocks[0], false))
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -194,7 +194,7 @@ static int CmdKeriClone(const char *Cmd) {
|
|||||||
res++;
|
res++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( res == 0 )
|
if (res == 0)
|
||||||
PrintAndLogEx(SUCCESS, "Success writing to tag");
|
PrintAndLogEx(SUCCESS, "Success writing to tag");
|
||||||
|
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
|
|||||||
Reference in New Issue
Block a user