1 local getopt
= require('getopt')
2 local ansicolors
= require('ansicolors')
8 This script tries to recover soft bricked ntag i2c tags through the use of raw commands
11 1. script run hf_14a_i2crevive
14 script run hf_14a_i2crevive
25 print(ansicolors
.cyan
..'Usage'..ansicolors
.reset
)
27 print(ansicolors
.cyan
..'Arguments'..ansicolors
.reset
)
29 print(ansicolors
.cyan
..'Example usage'..ansicolors
.reset
)
35 [0] = 'hf 14a raw -k -a -b 7 40',
36 [1] = 'hf 14a raw -k -a 43',
37 [2] = 'hf 14a raw -c -a A203E1106D00',
38 [3] = 'hf 14a raw -k -a -b 7 40',
39 [4] = 'hf 14a raw -k -a 43',
40 [5] = 'hf 14a raw -c -a A20244000F00',
41 [6] = 'hf 14a raw -k -a -b 7 40',
42 [7] = 'hf 14a raw -k -a 43',
43 [8] = 'hf 14a raw -c -a A2E20000FF00',
44 [9] = 'hf 14a raw -k -a -b 7 40',
45 [10] = 'hf 14a raw -k -a 43',
46 [11] = 'hf 14a raw -c -a A2E3000000E3',
47 [12] = 'hf 14a raw -c -a 5000',
51 local function sendCmds( cmds
)
55 core
.console( cmds
[i
] )
56 core
.clearCommandBuffer()
66 for o
, a
in getopt
.getopt(args
, 'h') do
67 if o
== 'h' then return help() end
70 core
.clearCommandBuffer()