diff --git a/client/src/cmdlfem4x.c b/client/src/cmdlfem4x.c index 459f49a47..74ce5a737 100644 --- a/client/src/cmdlfem4x.c +++ b/client/src/cmdlfem4x.c @@ -646,7 +646,7 @@ static command_t CommandTable[] = { {"4x05_read", CmdEM4x05Read, IfPm3Lf, "read word data from EM4x05/EM4x69"}, {"4x05_write", CmdEM4x05Write, IfPm3Lf, "write word data to EM4x05/EM4x69"}, {"4x05_unlock", CmdEM4x05Unlock, IfPm3Lf, "execute tear off against EM4x05/EM4x69"}, - {"4x05_sniff", CmdEM4x05Sniff, IfPm3Lf, "Attempt to recover em4x05 commands from sample buffer"}, + {"4x05_sniff", CmdEM4x05Sniff, AlwaysAvailable, "Attempt to recover em4x05 commands from sample buffer"}, {"4x05_brute", CmdEM4x05Brute, IfPm3Lf, "Bruteforce password"}, {"----------", CmdHelp, AlwaysAvailable, "----------------------- " _CYAN_("EM 4x50") " -----------------------"}, {"4x50_dump", CmdEM4x50Dump, IfPm3EM4x50, "dump EM4x50 tag"}, diff --git a/client/src/cmdlfem4x05.c b/client/src/cmdlfem4x05.c index c3a17a596..7ff4cb07f 100644 --- a/client/src/cmdlfem4x05.c +++ b/client/src/cmdlfem4x05.c @@ -1756,6 +1756,10 @@ int CmdEM4x05Sniff(const char *Cmd) { // setup and sample data from Proxmark // if not directed to existing sample/graphbuffer if (sampleData) { + if (!IfPm3Lf()) { + PrintAndLogEx(WARNING, "Only offline mode is available"); + return PM3_EINVARG; + } CmdLFSniff(""); }