small changes

This commit is contained in:
Dom 2018-02-28 13:41:32 +00:00
commit 46473030c1

View file

@ -145,7 +145,7 @@ end
function proximityCheck() function proximityCheck()
commandString = PREPAREPC commandString = PREPAREPC
response = sendRaw(commandString, true, true) --0x90 is returned upon success response = sendRaw(commandString, true, true)
commandString = PROXIMITYCHECK commandString = PROXIMITYCHECK
@ -159,22 +159,23 @@ function main(args)
-- Initialize the card using the read14a library -- Initialize the card using the read14a library
info,err = lib14a.read14443a(true, false) 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 if err then
oops(err) oops(err)
else 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 end
-- Now, the card is initialized and we can do more interesting things. -- Now, the card is initialized and we can do more interesting things.
--writePerso() --writePerso()
--commitPerso() --commitPerso()
--getVersion() --getVersion()
--proximityCheck() proximityCheck()
sendRaw("e050", true, true)
sendRaw("D01100", true, true)
sendRaw("0360", true, true)
-- Power off the Proxmark -- Power off the Proxmark