]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
ADD: 'script runt remagic' - the Mifare Classic s50 (1k) magic tag restores now also...
authoriceman1001 <iceman@iuse.se>
Tue, 14 Feb 2017 14:54:10 +0000 (15:54 +0100)
committericeman1001 <iceman@iuse.se>
Tue, 14 Feb 2017 14:54:10 +0000 (15:54 +0100)
client/default_keys.dic
client/lualibs/mf_default_keys.lua
client/scripts/remagic.lua

index 3cf1c3eca346d3e65e311b1f8a36054d9248400c..cac226be478fe70e2cb5f07333f3e6b01e9bb45d 100644 (file)
@@ -284,4 +284,6 @@ cba6ae869ad5,
 645a166b1eeb,
 a7abbc77cc9e,
 f792c4c76a5c,
-bfb6796a11db,
\ No newline at end of file
+bfb6796a11db,
+# Data from 
+8829da9daf76,
\ No newline at end of file
index 86fd1f14d6ccfc06615b578a590020dec2d1fb4b..7c19e248d41752385856006a847c83d30b776785 100644 (file)
@@ -410,6 +410,10 @@ local _keys = {
        'a7abbc77cc9e',
        'f792c4c76a5c',
        'bfb6796a11db',
+       --[[
+       Data from 
+       --]]
+       '8829da9daf76',
 }
 
 ---
index 41a2cb83d160da30f6b246eec5dc462812e29956..806458999f2dd15dbc0a081b4e941d47e1676c81 100644 (file)
@@ -59,6 +59,22 @@ local function cmdClassic()
        [4] = "hf 14a raw -c -a 5000",
        }
 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
 function main(args)
@@ -76,16 +92,10 @@ function main(args)
        core.clearCommandBuffer()
        
        if isUltralight then
-               cmds = cmdUltralight()
+               sendCmds ( cmdUltralight() )
        else
-               cmds = cmdClassic()
-       end
-       
-       for i = 0, #cmds do
-               if cmds[i]  then 
-                       print ( cmds[i] )
-                       core.console( cmds[i] )
-               end
+               sendCmds( cmdClassic() )
+               sendCmds( cmdRestoreST() )
        end
 end
 
Impressum, Datenschutz