mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
chg: 'script run test_t55x7' - better test loops
This commit is contained in:
parent
229452719a
commit
774cbc5cb9
1 changed files with 11 additions and 12 deletions
|
@ -194,7 +194,7 @@ local function GetConfigs( modulation )
|
||||||
[7] = '00183040',
|
[7] = '00183040',
|
||||||
[8] = '001c3040',
|
[8] = '001c3040',
|
||||||
}
|
}
|
||||||
return t[modulation]
|
return t[modulation:upper()]
|
||||||
end
|
end
|
||||||
---
|
---
|
||||||
-- lf t55xx wipe
|
-- lf t55xx wipe
|
||||||
|
@ -243,6 +243,8 @@ local function test(modulation)
|
||||||
|
|
||||||
process_block0_cmds = GetConfigs(modulation)
|
process_block0_cmds = GetConfigs(modulation)
|
||||||
|
|
||||||
|
if process_block0_cmds == nil then return oops('Cant find modulation '..modulation) end
|
||||||
|
|
||||||
for _ = 1, #process_block0_cmds do
|
for _ = 1, #process_block0_cmds do
|
||||||
|
|
||||||
local p_config_cmd = process_block0_cmds[_]
|
local p_config_cmd = process_block0_cmds[_]
|
||||||
|
@ -289,17 +291,14 @@ local function main(args)
|
||||||
core.clearCommandBuffer()
|
core.clearCommandBuffer()
|
||||||
local res
|
local res
|
||||||
|
|
||||||
res = WipeCard()
|
-- Adjust this table to set which configurations should be tested
|
||||||
if res then test("ASK") end
|
local test_modes = { 'ASK', 'PSK1' }
|
||||||
|
|
||||||
-- res = WipeCard()
|
for _ = 1, #test_modes do
|
||||||
-- if res then test("FSK1") end
|
res = WipeCard()
|
||||||
|
print (test_modes[_])
|
||||||
-- res = WipeCard()
|
if res then test(test_modes[_]) end
|
||||||
-- if res then test("FSK2") end
|
end
|
||||||
|
|
||||||
-- res = WipeCard()
|
|
||||||
-- if res then test("PSK1") end
|
|
||||||
|
|
||||||
exitMsg('Tests finished')
|
exitMsg('Tests finished')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue