X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/16b04cb291feefce8f76c6b05f93b62d304be1ed..3b33bda694bcd22e2ceb8c9ff052f8fd4b81e3e8:/client/scripts/mfkeys.lua diff --git a/client/scripts/mfkeys.lua b/client/scripts/mfkeys.lua index 135108f3..f40b2be2 100644 --- a/client/scripts/mfkeys.lua +++ b/client/scripts/mfkeys.lua @@ -12,6 +12,9 @@ local cmds = require('commands') -- Load the default keys local keys = require('mf_default_keys') +-- Ability to read what card is there +local reader = require('read14a') + local desc = ("This script implements check keys. It utilises a large list of default keys (currently %d keys).\ If you want to add more, just put them inside mf_default_keys.lua. "):format(#keys) @@ -103,6 +106,14 @@ local function main() print(desc); + result, err = reader.read1443a() + if not result then + print(err) + return + end + print(("Found a %s tag"):format(result.name)) + + core.clearCommandBuffer() local blockNo local keyType = 0 -- A=0, B=1