mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-07-31 12:00:10 -07:00
nexwatch fix .h file + icemans mf csetblk w arg
forgot to include the new nexwatch command in the header... added icemans hf mf csetblk w parameter fix
This commit is contained in:
parent
25d3e5cc83
commit
664f658650
2 changed files with 13 additions and 11 deletions
|
@ -35,6 +35,7 @@ int CmdFSKdemodPyramid(const char *Cmd);
|
||||||
int CmdFSKrawdemod(const char *Cmd);
|
int CmdFSKrawdemod(const char *Cmd);
|
||||||
int CmdPSK1rawDemod(const char *Cmd);
|
int CmdPSK1rawDemod(const char *Cmd);
|
||||||
int CmdPSK2rawDemod(const char *Cmd);
|
int CmdPSK2rawDemod(const char *Cmd);
|
||||||
|
int CmdPSKNexWatch(const char *Cmd);
|
||||||
int CmdGrid(const char *Cmd);
|
int CmdGrid(const char *Cmd);
|
||||||
int CmdGetBitStream(const char *Cmd);
|
int CmdGetBitStream(const char *Cmd);
|
||||||
int CmdHexsamples(const char *Cmd);
|
int CmdHexsamples(const char *Cmd);
|
||||||
|
|
|
@ -1499,16 +1499,16 @@ int CmdHF14AMfCSetUID(const char *Cmd)
|
||||||
|
|
||||||
int CmdHF14AMfCSetBlk(const char *Cmd)
|
int CmdHF14AMfCSetBlk(const char *Cmd)
|
||||||
{
|
{
|
||||||
uint8_t uid[8] = {0x00};
|
|
||||||
uint8_t memBlock[16] = {0x00};
|
uint8_t memBlock[16] = {0x00};
|
||||||
uint8_t blockNo = 0;
|
uint8_t blockNo = 0;
|
||||||
|
bool wipeCard = FALSE;
|
||||||
int res;
|
int res;
|
||||||
|
|
||||||
if (strlen(Cmd) < 1 || param_getchar(Cmd, 0) == 'h') {
|
if (strlen(Cmd) < 1 || param_getchar(Cmd, 0) == 'h') {
|
||||||
PrintAndLog("Usage: hf mf csetblk <block number> <block data (32 hex symbols)>");
|
PrintAndLog("Usage: hf mf csetblk <block number> <block data (32 hex symbols)> [w]");
|
||||||
PrintAndLog("sample: hf mf csetblk 1 01020304050607080910111213141516");
|
PrintAndLog("sample: hf mf csetblk 1 01020304050607080910111213141516");
|
||||||
PrintAndLog("Set block data for magic Chinese card (only works with!!!)");
|
PrintAndLog("Set block data for magic Chinese card (only works with such cards)");
|
||||||
PrintAndLog("If you want wipe card then add 'w' into command line. \n");
|
PrintAndLog("If you also want wipe the card then add 'w' at the end of the command line");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1519,14 +1519,15 @@ int CmdHF14AMfCSetBlk(const char *Cmd)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
char ctmp = param_getchar(Cmd, 2);
|
||||||
|
wipeCard = (ctmp == 'w' || ctmp == 'W');
|
||||||
PrintAndLog("--block number:%2d data:%s", blockNo, sprint_hex(memBlock, 16));
|
PrintAndLog("--block number:%2d data:%s", blockNo, sprint_hex(memBlock, 16));
|
||||||
|
|
||||||
res = mfCSetBlock(blockNo, memBlock, uid, 0, CSETBLOCK_SINGLE_OPER);
|
res = mfCSetBlock(blockNo, memBlock, NULL, wipeCard, CSETBLOCK_SINGLE_OPER);
|
||||||
if (res) {
|
if (res) {
|
||||||
PrintAndLog("Can't write block. error=%d", res);
|
PrintAndLog("Can't write block. error=%d", res);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1637,7 +1638,7 @@ int CmdHF14AMfCGetBlk(const char *Cmd) {
|
||||||
if (strlen(Cmd) < 1 || param_getchar(Cmd, 0) == 'h') {
|
if (strlen(Cmd) < 1 || param_getchar(Cmd, 0) == 'h') {
|
||||||
PrintAndLog("Usage: hf mf cgetblk <block number>");
|
PrintAndLog("Usage: hf mf cgetblk <block number>");
|
||||||
PrintAndLog("sample: hf mf cgetblk 1");
|
PrintAndLog("sample: hf mf cgetblk 1");
|
||||||
PrintAndLog("Get block data from magic Chinese card (only works with!!!)\n");
|
PrintAndLog("Get block data from magic Chinese card (only works with such cards)\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1664,7 +1665,7 @@ int CmdHF14AMfCGetSc(const char *Cmd) {
|
||||||
if (strlen(Cmd) < 1 || param_getchar(Cmd, 0) == 'h') {
|
if (strlen(Cmd) < 1 || param_getchar(Cmd, 0) == 'h') {
|
||||||
PrintAndLog("Usage: hf mf cgetsc <sector number>");
|
PrintAndLog("Usage: hf mf cgetsc <sector number>");
|
||||||
PrintAndLog("sample: hf mf cgetsc 0");
|
PrintAndLog("sample: hf mf cgetsc 0");
|
||||||
PrintAndLog("Get sector data from magic Chinese card (only works with!!!)\n");
|
PrintAndLog("Get sector data from magic Chinese card (only works with such cards)\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue