mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-24 06:55:27 -07:00
Created parameter in CommitPerso() function.
This commit is contained in:
parent
d1b56172c6
commit
bda0d7e04b
1 changed files with 4 additions and 4 deletions
|
@ -153,9 +153,9 @@ function getVersion()
|
||||||
sendRaw(GETVERS_CONT, true, true)
|
sendRaw(GETVERS_CONT, true, true)
|
||||||
end
|
end
|
||||||
|
|
||||||
function commitPerso()
|
function commitPerso(SL)
|
||||||
-- commandString = COMMITPERSO .. "01" --switch to SL1
|
--pass SL as "01" to move to SL1 or "03" to move to SL3.
|
||||||
commandString = COMMITPERSO .. "03" --switch to SL3
|
commandString = COMMITPERSO .. SL
|
||||||
response = sendRaw(commandString, true, true) --0x90 is returned upon success
|
response = sendRaw(commandString, true, true) --0x90 is returned upon success
|
||||||
if string.sub(response, 3, 4) ~= "90" then
|
if string.sub(response, 3, 4) ~= "90" then
|
||||||
oops("error occurred while trying to switch security level")
|
oops("error occurred while trying to switch security level")
|
||||||
|
@ -268,7 +268,7 @@ function main(args)
|
||||||
-- 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("03") --move to SL3
|
||||||
--getVersion()
|
--getVersion()
|
||||||
proximityCheck()
|
proximityCheck()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue