diff --git a/client/src/cmdhf.c b/client/src/cmdhf.c index b58a7066b..dc1aff1e7 100644 --- a/client/src/cmdhf.c +++ b/client/src/cmdhf.c @@ -222,6 +222,10 @@ int CmdHFSearch(const char *Cmd) { PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("ISO 18092 / FeliCa tag") " found\n"); success[FELICA] = true; res = PM3_SUCCESS; + } else if (info_felica_seac() == PM3_SUCCESS) { + PrintAndLogEx(SUCCESS, "Valid " _GREEN_("FeliCa SEAC tag") " found\n"); + success[FELICA] = true; + res = PM3_SUCCESS; } } diff --git a/client/src/cmdhffelica.c b/client/src/cmdhffelica.c index 5c2595621..cabfc145a 100644 --- a/client/src/cmdhffelica.c +++ b/client/src/cmdhffelica.c @@ -1981,7 +1981,7 @@ static bool get_seac_poll_response_data(const PacketResponseNG *resp, uint8_t se return true; } -static int info_seac(void) { +int info_felica_seac(void) { static const uint8_t seac_poll_frames[][FELICA_SEAC_POLL_FRAME_LEN] = { // LEN CMD System Code selector Time Slot {0x06, FELICA_SEAC_POLLING_CMD, 0x01, 0x01, 0x01, FELICA_SEAC_POLL_TIME_SLOT}, @@ -2506,7 +2506,7 @@ static int CmdHFFelicaInfo(const char *Cmd) { CLIExecWithReturn(ctx, Cmd, argtable, true); CLIParserFree(ctx); int ret = info_felica(false); - return ret == PM3_SUCCESS ? ret : info_seac(); + return ret == PM3_SUCCESS ? ret : info_felica_seac(); } /** diff --git a/client/src/cmdhffelica.h b/client/src/cmdhffelica.h index 2fd8b5634..666b174ff 100644 --- a/client/src/cmdhffelica.h +++ b/client/src/cmdhffelica.h @@ -24,6 +24,7 @@ int CmdHFFelica(const char *Cmd); int read_felica_uid(bool loop, bool verbose); +int info_felica_seac(void); int send_request_service(uint8_t flags, uint16_t datalen, uint8_t *data, bool verbose); #endif