mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
fix: wrong string used.
This commit is contained in:
parent
fcad4054b6
commit
96a5cefe97
1 changed files with 2 additions and 2 deletions
|
@ -95,7 +95,7 @@ local function main(args)
|
||||||
local c3_b = tonumber(string.sub(access, 4, 4), 16)
|
local c3_b = tonumber(string.sub(access, 4, 4), 16)
|
||||||
local c3 = tonumber(string.sub(access, 5, 5), 16)
|
local c3 = tonumber(string.sub(access, 5, 5), 16)
|
||||||
local c2 = tonumber(string.sub(access, 6, 6), 16)
|
local c2 = tonumber(string.sub(access, 6, 6), 16)
|
||||||
local b = string.sub(args, 7, 8)
|
local gpb = string.sub(access, 7, 8)
|
||||||
|
|
||||||
if bxor(c1, c1_b) ~= 0xF then print("!!! bitflip in c1") end
|
if bxor(c1, c1_b) ~= 0xF then print("!!! bitflip in c1") end
|
||||||
if bxor(c2, c2_b) ~= 0xF then print("!!! bitflip in c2") end
|
if bxor(c2, c2_b) ~= 0xF then print("!!! bitflip in c2") end
|
||||||
|
@ -125,6 +125,6 @@ local function main(args)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
print("B: "..b)
|
print("GPB: "..gpb)
|
||||||
end
|
end
|
||||||
main(args)
|
main(args)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue