Support FeliCa SEAC in 'hf search'

This commit is contained in:
kormax committed 2026-08-01 13:33:00 +03:00
1 parent 7d674b1484
commit 9cab438fd2
3 files changed
+7 -2

No files matched your search

+4
View File
@@ -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;
}
}
+2 -2
View File
@@ -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();
}
/**
+1
View File
@@ -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