X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/13d77ef964cefe68750873d5268299a53c9e22a5..9c09e006d667665f7e81eaddfd977a55442854ff:/client/cmdlfem4x.c?ds=sidebyside diff --git a/client/cmdlfem4x.c b/client/cmdlfem4x.c index 5faf4801..22b12aa4 100644 --- a/client/cmdlfem4x.c +++ b/client/cmdlfem4x.c @@ -53,8 +53,9 @@ int CmdEM410xRead(const char *Cmd) PrintAndLog ("EM410x XL pattern found"); return 0; } - char id[11] = {0x00}; - sprintf(id, "%010x", lo); + char id[12] = {0x00}; + sprintf(id, "%010llx",lo); + global_em410xId = id; return 1; } @@ -68,9 +69,9 @@ int CmdEM410xSim(const char *Cmd) uint8_t uid[5] = {0x00}; if (cmdp == 'h' || cmdp == 'H') { - PrintAndLog("Usage: lf em4x 410xsim "); + PrintAndLog("Usage: lf em4x em410xsim "); PrintAndLog(""); - PrintAndLog(" sample: lf em4x 410xsim 0F0368568B"); + PrintAndLog(" sample: lf em4x em410xsim 0F0368568B"); return 0; } @@ -148,8 +149,8 @@ int CmdEM410xWatch(const char *Cmd) break; } - CmdLFRead(""); - CmdSamples("6000"); + CmdLFRead("s"); + getSamples("8192",true); //capture enough to get 2 full messages } while (!CmdEM410xRead("")); return 0; @@ -158,9 +159,9 @@ int CmdEM410xWatch(const char *Cmd) int CmdEM410xWatchnSpoof(const char *Cmd) { CmdEM410xWatch(Cmd); - PrintAndLog("# Replaying captured ID: %s",global_em410xId); - CmdLFaskSim(""); - return 0; + PrintAndLog("# Replaying captured ID: %s",global_em410xId); + CmdLFaskSim(""); + return 0; } /* Read the transmitted data of an EM4x50 tag