trace extract: reset the UID and epurse at the start of each run
They are static and were never cleared, so an iCLASS CHECK in a trace without a SELECT gave an `hf iclass lookup` line with the CSN and epurse of a trace extracted earlier. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
bbb438df71
commit
e5ee5098c8
1 file changed
+5
@@ -1511,6 +1511,11 @@ static int CmdTraceExtract(const char *Cmd) {
|
||||
return PM3_SUCCESS;
|
||||
}
|
||||
|
||||
// don't carry a UID or epurse over from the previous trace
|
||||
memset(extract_uid, 0, sizeof(extract_uid));
|
||||
extract_uidlen = 0;
|
||||
memset(extract_epurse, 0, sizeof(extract_epurse));
|
||||
|
||||
uint16_t tracepos = 0;
|
||||
|
||||
while (tracepos < gs_traceLen) {
|
||||
|
||||
Reference in new issue
Block a user