mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
fix: lua bit32 can actually take several values. How did I miss this?
This commit is contained in:
parent
3f9024eeaf
commit
1629287291
3 changed files with 7 additions and 7 deletions
|
@ -120,8 +120,8 @@ function main(args)
|
|||
|
||||
local uidbytes = utils.ConvertHexToBytes(uid)
|
||||
|
||||
local bcc1 = bxor(bxor(bxor(uidbytes[1], uidbytes[2]), uidbytes[3]), 0x88)
|
||||
local bcc2 = bxor(bxor(bxor(uidbytes[4], uidbytes[5]), uidbytes[6]), uidbytes[7])
|
||||
local bcc1 = bxor(0x88, uidbytes[1], uidbytes[2], uidbytes[3])
|
||||
local bcc2 = bxor(uidbytes[4], uidbytes[5], uidbytes[6], uidbytes[7])
|
||||
|
||||
local block0 = string.format('%02X%02X%02X%02X', uidbytes[1], uidbytes[2], uidbytes[3], bcc1)
|
||||
local block1 = string.format('%02X%02X%02X%02X', uidbytes[4], uidbytes[5], uidbytes[6], uidbytes[7])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue