mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-14 02:26:59 -07:00
Implemented client side changes for iclass hack, attempted to fix issues with trace. The trace functionality from iso14443 has been rewritten, unfortunately iclass used that also, which made iclass 'list' stop functioning, both for simulation and snooping
This commit is contained in:
parent
ff7bb4ef17
commit
17cba2693d
4 changed files with 230 additions and 71 deletions
|
@ -190,7 +190,7 @@ void AppendCrc14443a(uint8_t* data, int len)
|
|||
}
|
||||
|
||||
// The function LogTrace() is also used by the iClass implementation in iClass.c
|
||||
bool RAMFUNC LogTrace(const uint8_t * btBytes, uint8_t iLen, uint32_t timestamp, uint32_t dwParity, bool bReader)
|
||||
bool RAMFUNC LogTrace(const uint8_t * btBytes, uint8_t iLen, uint32_t timestamp, uint32_t dwParity, bool readerToTag)
|
||||
{
|
||||
// Return when trace is full
|
||||
if (traceLen + sizeof(timestamp) + sizeof(dwParity) + iLen >= TRACE_SIZE) {
|
||||
|
@ -203,7 +203,8 @@ bool RAMFUNC LogTrace(const uint8_t * btBytes, uint8_t iLen, uint32_t timestamp,
|
|||
trace[traceLen++] = ((timestamp >> 8) & 0xff);
|
||||
trace[traceLen++] = ((timestamp >> 16) & 0xff);
|
||||
trace[traceLen++] = ((timestamp >> 24) & 0xff);
|
||||
if (!bReader) {
|
||||
|
||||
if (!readerToTag) {
|
||||
trace[traceLen - 1] |= 0x80;
|
||||
}
|
||||
trace[traceLen++] = ((dwParity >> 0) & 0xff);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue