mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-22 06:13:27 -07:00
small changes
This commit is contained in:
parent
be3e148937
commit
46473030c1
1 changed files with 7 additions and 6 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue