mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-20 03:48:33 +08:00
ADD: 'script runt remagic' - the Mifare Classic s50 (1k) magic tag restores now also all sector trailers. Default A/B keys is 0xFFFFFFFFFFFF.
This commit is contained in:
parent
ab2167c47b
commit
dd015c5915
3 changed files with 26 additions and 10 deletions
|
@ -285,3 +285,5 @@ cba6ae869ad5,
|
||||||
a7abbc77cc9e,
|
a7abbc77cc9e,
|
||||||
f792c4c76a5c,
|
f792c4c76a5c,
|
||||||
bfb6796a11db,
|
bfb6796a11db,
|
||||||
|
# Data from
|
||||||
|
8829da9daf76,
|
|
@ -410,6 +410,10 @@ local _keys = {
|
||||||
'a7abbc77cc9e',
|
'a7abbc77cc9e',
|
||||||
'f792c4c76a5c',
|
'f792c4c76a5c',
|
||||||
'bfb6796a11db',
|
'bfb6796a11db',
|
||||||
|
--[[
|
||||||
|
Data from
|
||||||
|
--]]
|
||||||
|
'8829da9daf76',
|
||||||
}
|
}
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
|
@ -59,6 +59,22 @@ local function cmdClassic()
|
||||||
[4] = "hf 14a raw -c -a 5000",
|
[4] = "hf 14a raw -c -a 5000",
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
local function cmdRestoreST()
|
||||||
|
local arr = {}
|
||||||
|
for i = 0, 15 do
|
||||||
|
local blk = 3 + (4*i)
|
||||||
|
arr[i] = "hf mf csetbl "..blk.." FFFFFFFFFFFFFF078000FFFFFFFFFFFF"
|
||||||
|
end
|
||||||
|
return arr
|
||||||
|
end
|
||||||
|
local function sendCmds( cmds )
|
||||||
|
for i = 0, #cmds do
|
||||||
|
if cmds[i] then
|
||||||
|
print ( cmds[i] )
|
||||||
|
core.console( cmds[i] )
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
---
|
---
|
||||||
-- The main entry point
|
-- The main entry point
|
||||||
function main(args)
|
function main(args)
|
||||||
|
@ -76,16 +92,10 @@ function main(args)
|
||||||
core.clearCommandBuffer()
|
core.clearCommandBuffer()
|
||||||
|
|
||||||
if isUltralight then
|
if isUltralight then
|
||||||
cmds = cmdUltralight()
|
sendCmds ( cmdUltralight() )
|
||||||
else
|
else
|
||||||
cmds = cmdClassic()
|
sendCmds( cmdClassic() )
|
||||||
end
|
sendCmds( cmdRestoreST() )
|
||||||
|
|
||||||
for i = 0, #cmds do
|
|
||||||
if cmds[i] then
|
|
||||||
print ( cmds[i] )
|
|
||||||
core.console( cmds[i] )
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue