From 96a5cefe9716e0f4e6bcc820c0dd2d3b3039681e Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 25 Apr 2018 18:13:28 +0200 Subject: [PATCH] fix: wrong string used. --- client/scripts/mifare_access.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/scripts/mifare_access.lua b/client/scripts/mifare_access.lua index 39ea352c5..273d524c8 100644 --- a/client/scripts/mifare_access.lua +++ b/client/scripts/mifare_access.lua @@ -95,7 +95,7 @@ local function main(args) local c3_b = tonumber(string.sub(access, 4, 4), 16) local c3 = tonumber(string.sub(access, 5, 5), 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(c2, c2_b) ~= 0xF then print("!!! bitflip in c2") end @@ -125,6 +125,6 @@ local function main(args) end end - print("B: "..b) + print("GPB: "..gpb) end main(args)