minor code clean up.
};\r
\r
nttmp = prng_successor(nt1, 100); //NXP Mifare is typical around 840,but for some unlicensed/compatible mifare card this can be 160\r
- for (i = 141; i < 1200; i++) {\r
+ for (i = 101; i < 1200; i++) {\r
nttmp = prng_successor(nttmp, 1);\r
if (nttmp == nt2) break;\r
}\r
#include "crapto1.h"\r
#include "mifareutil.h"\r
\r
-int MF_DBGLEVEL = MF_DBG_ERROR;\r
+int MF_DBGLEVEL = MF_DBG_ALL;\r
\r
// memory management\r
uint8_t* get_bigbufptr_recvrespbuf(void) {\r
\r
UsbCommand resp;\r
\r
- int size = GetCardSize(); \r
char cmdp = param_getchar(Cmd, 0);\r
-\r
- if ( size > -1) \r
- cmdp = (char)(48+size);\r
-\r
- PrintAndLog("Got %d",cmdp);\r
- \r
switch (cmdp) {\r
case '0' : numSectors = 5; break;\r
case '1' : \r
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);