mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
ADD: num_to_bytebitsLSBF function.
ADD: lf guard clone - works... needs some checking. ADD: added a option to "addparity" to set zero on fixed pos.
This commit is contained in:
parent
733eb42022
commit
0d2c590974
5 changed files with 121 additions and 70 deletions
|
@ -619,13 +619,13 @@ int CmdG_Prox_II_Demod(const char *Cmd)
|
|||
continue;
|
||||
}
|
||||
if (keyCnt<8){ //lsb first
|
||||
xorKey = xorKey | (DemodBuffer[startIdx+idx]<<keyCnt);
|
||||
xorKey |= (DemodBuffer[startIdx+idx]<<keyCnt);
|
||||
keyCnt++;
|
||||
if (keyCnt==8 && g_debugMode) PrintAndLog("xorKey Found: %02x", xorKey);
|
||||
continue;
|
||||
}
|
||||
//lsb first
|
||||
ByteStream[ByteCnt] = ByteStream[ByteCnt] | (DemodBuffer[startIdx+idx]<<bitCnt);
|
||||
ByteStream[ByteCnt] |= (DemodBuffer[startIdx+idx]<<bitCnt);
|
||||
bitCnt++;
|
||||
if (bitCnt % 8 == 0){
|
||||
if (g_debugMode) PrintAndLog("byte %u: %02x", (unsigned int)ByteCnt, ByteStream[ByteCnt]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue