mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
improved the SEOS annotation, also added a trace file to look at
This commit is contained in:
parent
dc80ef3713
commit
50a1c63470
3 changed files with 34 additions and 5 deletions
|
@ -1685,10 +1685,39 @@ void annotateSeos(char *exp, size_t size, uint8_t *cmd, uint8_t cmdsize) {
|
||||||
// it's basically a ISO14443a tag, so try annotation from there
|
// it's basically a ISO14443a tag, so try annotation from there
|
||||||
if (applyIso14443a(exp, size, cmd, cmdsize, false) != PM3_SUCCESS) {
|
if (applyIso14443a(exp, size, cmd, cmdsize, false) != PM3_SUCCESS) {
|
||||||
|
|
||||||
// switch (cmd[0]) {
|
int pos = 0;
|
||||||
// default:
|
switch (cmd[0]) {
|
||||||
// break;
|
case 2:
|
||||||
// };
|
case 3:
|
||||||
|
pos = 2;
|
||||||
|
break;
|
||||||
|
case 0:
|
||||||
|
pos = 1;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
pos = 2;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (memcmp(cmd + pos, "\x00\xa4\x04\x00\x0a", 5) == 0) {
|
||||||
|
snprintf(exp, size, "SELECT AID");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (memcmp(cmd + pos, "\x80\xA5\x04\x00", 4) == 0) {
|
||||||
|
snprintf(exp, size, "SELECT ADF / OID");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (memcmp(cmd + pos, "\x00\x87\x00\x01\x04\x7c\x02\x81\x00", 9) == 0) {
|
||||||
|
snprintf(exp, size, "GET CHALLENGE");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (memcmp(cmd + pos, "\x00\x87\x00\x01\x2c", 5) == 0) {
|
||||||
|
snprintf(exp, size, "MUTUAL AUTHENTICATION");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (memcmp(cmd + pos, "\x0c\xcb\x3f\xff", 4) == 0) {
|
||||||
|
snprintf(exp, size, "GET DATA");
|
||||||
|
}
|
||||||
|
|
||||||
// apply ISO7816 annotations?
|
// apply ISO7816 annotations?
|
||||||
// if (annotateIso7816(exp, size, cmd, cmdsize) == 0) {
|
// if (annotateIso7816(exp, size, cmd, cmdsize) == 0) {
|
||||||
|
|
|
@ -112,7 +112,7 @@ static int CmdHfSeosInfo(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static int CmdHfSeosList(const char *Cmd) {
|
static int CmdHfSeosList(const char *Cmd) {
|
||||||
return CmdTraceListAlias(Cmd, "hf seos", "7816");
|
return CmdTraceListAlias(Cmd, "hf seos", "seos -c");
|
||||||
}
|
}
|
||||||
|
|
||||||
static command_t CommandTable[] = {
|
static command_t CommandTable[] = {
|
||||||
|
|
BIN
traces/hf_seos_sniff_fc60_cn640001.trace
Normal file
BIN
traces/hf_seos_sniff_fc60_cn640001.trace
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue