mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-20 21:33:19 -07:00
fixed 'hf mf' command and some others
This commit is contained in:
parent
fe7bfa7856
commit
7dd1908b24
3 changed files with 3 additions and 3 deletions
|
@ -88,7 +88,7 @@ int CmdHelp(const char *Cmd)
|
||||||
int CmdHFEPA(const char *Cmd)
|
int CmdHFEPA(const char *Cmd)
|
||||||
{
|
{
|
||||||
// flush
|
// flush
|
||||||
while (!WaitForResponseTimeout(CMD_ACK,NULL,500));
|
WaitForResponseTimeout(CMD_ACK,NULL,100);
|
||||||
|
|
||||||
// parse
|
// parse
|
||||||
CmdsParse(CommandTable, Cmd);
|
CmdsParse(CommandTable, Cmd);
|
||||||
|
|
|
@ -1676,7 +1676,7 @@ static command_t CommandTable[] =
|
||||||
int CmdHFMF(const char *Cmd)
|
int CmdHFMF(const char *Cmd)
|
||||||
{
|
{
|
||||||
// flush
|
// flush
|
||||||
while (!WaitForResponseTimeout(CMD_ACK,NULL,500));
|
WaitForResponseTimeout(CMD_ACK,NULL,100);
|
||||||
|
|
||||||
CmdsParse(CommandTable, Cmd);
|
CmdsParse(CommandTable, Cmd);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -65,7 +65,7 @@ int mfnested(uint8_t blockNo, uint8_t keyType, uint8_t * key, uint8_t trgBlockNo
|
||||||
memset(resultKeys, 0x00, 16 * 6);
|
memset(resultKeys, 0x00, 16 * 6);
|
||||||
|
|
||||||
// flush queue
|
// flush queue
|
||||||
while (!WaitForResponseTimeout(CMD_ACK,NULL,500));
|
WaitForResponseTimeout(CMD_ACK,NULL,100);
|
||||||
|
|
||||||
UsbCommand c = {CMD_MIFARE_NESTED, {blockNo, keyType, trgBlockNo + trgKeyType * 0x100}};
|
UsbCommand c = {CMD_MIFARE_NESTED, {blockNo, keyType, trgBlockNo + trgKeyType * 0x100}};
|
||||||
memcpy(c.d.asBytes, key, 6);
|
memcpy(c.d.asBytes, key, 6);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue