From 46473030c140aba95e3eb11663156587e56415c1 Mon Sep 17 00:00:00 2001 From: Dom Date: Wed, 28 Feb 2018 13:41:32 +0000 Subject: [PATCH] small changes --- client/scripts/myscript.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/client/scripts/myscript.lua b/client/scripts/myscript.lua index 019bce4a..93207423 100644 --- a/client/scripts/myscript.lua +++ b/client/scripts/myscript.lua @@ -145,7 +145,7 @@ end function proximityCheck() commandString = PREPAREPC - response = sendRaw(commandString, true, true) --0x90 is returned upon success + response = sendRaw(commandString, true, true) commandString = PROXIMITYCHECK @@ -159,22 +159,23 @@ function main(args) -- Initialize the card using the read14a library info,err = lib14a.read14443a(true, false) + --Perform PPS (Protocol and Parameter Selection) check to finish the ISO 14443-4 protocol. + sendRaw("e050", true, true) + sendRaw("D01100", true, true) if err then oops(err) else - print(("Connected to card with a UID of %s"):format(info.uid)) + print(("Connected to card with a UID of %s."):format(info.uid)) end + -- Now, the card is initialized and we can do more interesting things. --writePerso() --commitPerso() --getVersion() - --proximityCheck() - sendRaw("e050", true, true) - sendRaw("D01100", true, true) + proximityCheck() - sendRaw("0360", true, true) -- Power off the Proxmark