+ local key_a = ""
+ local key_b = ""
+
+ for sector,_ in pairs(results) do
+ blockNo, keyA, keyB = unpack(_)
+ key_a = key_a .. bin.pack("H",keyA);
+ key_b = key_b .. bin.pack("H",keyB);
+ end
+ file:write(key_a)
+ file:write(key_b)
+ file:close()
+ end
+end
+
+local function main( args)
+
+ -- Arguments for the script
+ for o, a in getopt.getopt(args, 'h') do
+ if o == "h" then return help() end
+ end
+
+ result, err = reader.read1443a()
+ if not result then
+ print(err)
+ return
+ end
+
+ print(("Found a %s tag"):format(result.name))