ADD: a CmdEM410xWatchnSpoof in cmdlfem4x.c , looks for a tag, then replays it.
minor code clean up.
This commit is contained in:
@@ -278,14 +278,7 @@ int CmdHF14AMfDump(const char *Cmd)
|
||||
|
||||
UsbCommand resp;
|
||||
|
||||
int size = GetCardSize();
|
||||
char cmdp = param_getchar(Cmd, 0);
|
||||
|
||||
if ( size > -1)
|
||||
cmdp = (char)(48+size);
|
||||
|
||||
PrintAndLog("Got %d",cmdp);
|
||||
|
||||
switch (cmdp) {
|
||||
case '0' : numSectors = 5; break;
|
||||
case '1' :
|
||||
|
||||
@@ -16,6 +16,7 @@ int CmdEMdemodASK(const char *Cmd);
|
||||
int CmdEM410xRead(const char *Cmd);
|
||||
int CmdEM410xSim(const char *Cmd);
|
||||
int CmdEM410xWatch(const char *Cmd);
|
||||
int CmdEM410xWatchnSpoof(const char *Cmd);
|
||||
int CmdEM410xWrite(const char *Cmd);
|
||||
int CmdEM4x50Read(const char *Cmd);
|
||||
int CmdReadWord(const char *Cmd);
|
||||
|
||||
Reference in New Issue
Block a user