From: martin.holst@gmail.com Date: Fri, 24 May 2013 21:43:02 +0000 (+0000) Subject: Started an experiment with lua mifare hack X-Git-Tag: v1.0.0~80^2~29 X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/3510cdff4b1abbd224e731a871c5a7c8687d0c93?hp=96e7a3a50b11d69da83e67ec78b5a7656bb903de Started an experiment with lua mifare hack --- diff --git a/client/scripts/mifare.lua b/client/scripts/mifare.lua new file mode 100644 index 00000000..174c760e --- /dev/null +++ b/client/scripts/mifare.lua @@ -0,0 +1,14 @@ +local desc = "How would the classic mifare hack look in lua? Let's find out " +print(desc); + +print("This script isn't even remotely finished!") +print("Checking preconditions"); +print("core", core) +print("core.SendCommand", core.SendCommand) +print("core.WaitForResponseTimeout", core.WaitForResponseTimeout) +print("core.nonce2key", core.nonce2key) +-- To actually send something meaningful, we need to include the 'Binlib' or 'lpack' library. +local x = core.SendCommand("aaaabbbb2222111100000ggggaaaabbbb2222111100000ggggaaaabbbb2222111100000ggggaaaabbbb2222111100000ggggaaaabbbb2222111100000ggggaaaabbbb2222111100000ggggaaaabbbb2222111100000ggggaaaabbbb2222111100000ggggaaaabbbb2222111100000ggggaaaabbbb2222111100000ggggaaaabbbb2222111100000ggggaaaabbbb2222111100000ggggaaaabbbb2222111100000ggggaaaabbbb2222111100000ggggaaaabbbb2222111100000ggggaaaabbbb2222111100000ggggaaaabbbb2222111100000ggggaaaabbbb2222111100000ggggaaaabbbb2222111100000ggggaaaabbbb2222111100000gggg12345678901234567890123456789012345678901234") +local result = core.WaitForResponseTimeout(0x0611,1000) +--- Oh, and nonce2Key is not 'glued' yet. +print("err", result) \ No newline at end of file