From 09f33a45c7550d886262bf3bf5914b57b92e57eb Mon Sep 17 00:00:00 2001 From: merlokk <807634+merlokk@users.noreply.github.com> Date: Wed, 2 Jun 2021 19:50:35 +0300 Subject: [PATCH] get additional info --- client/src/cmdhfcipurse.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/client/src/cmdhfcipurse.c b/client/src/cmdhfcipurse.c index d90179c29..f4d51f633 100644 --- a/client/src/cmdhfcipurse.c +++ b/client/src/cmdhfcipurse.c @@ -75,7 +75,22 @@ static int CmdHFCipurseInfo(const char *Cmd) { PrintAndLogEx(INFO, "Cipurse card: " _GREEN_("OK")); + res = CIPURSESelectFile(0x2ff7, buf, sizeof(buf), &len, &sw); + if (res != 0 || sw != 0x9000) { + DropField(); + return PM3_SUCCESS; + } + res = CIPURSEReadBinary(0, buf, sizeof(buf), &len, &sw); + if (res != 0 || sw != 0x9000) { + DropField(); + return PM3_SUCCESS; + } + + if (len > 0) { + PrintAndLogEx(INFO, "Info file: " _GREEN_("OK")); + PrintAndLogEx(INFO, "[%d]: %s", len, sprint_hex(buf, len)); + } DropField(); return PM3_SUCCESS;