mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-12-31 04:39:49 +08:00
chg: enabled param to swap modulation to test
This commit is contained in:
parent
8c65649258
commit
43b5ba4ae2
1 changed files with 12 additions and 4 deletions
|
@ -9,7 +9,7 @@ local floor = math.floor
|
|||
|
||||
copyright = ''
|
||||
author = "Iceman"
|
||||
version = 'v1.0.2'
|
||||
version = 'v1.0.3'
|
||||
desc =[[
|
||||
This script will program a T55x7 TAG with a configuration and four blocks of data.
|
||||
It will then try to detect and read back those block data and compare if read data matches the expected data.
|
||||
|
@ -31,12 +31,17 @@ testsuit for T55XX commands demodulation
|
|||
]]
|
||||
example = [[
|
||||
1. script run test_t55x7
|
||||
2. script run test_t55x7 -t FSK2A
|
||||
3. script run test_t55x7 -t PSK1
|
||||
]]
|
||||
usage = [[
|
||||
script run test_t55x7 [-h]
|
||||
script run test_t55x7 [-h] [-t <modulation type>
|
||||
]]
|
||||
arguments = [[
|
||||
-h this help
|
||||
-t (optional, defaults to ASK) 'PSK1', 'PSK2', 'PSK3',
|
||||
'FSK1', 'FSK2', 'FSK1A', 'FSK2A',
|
||||
'ASK', 'BI'
|
||||
]]
|
||||
|
||||
local DEBUG = true -- the debug flag
|
||||
|
@ -303,9 +308,11 @@ local function main(args)
|
|||
print( string.rep('--',20) )
|
||||
print( string.rep('--',20) )
|
||||
|
||||
local modulation_type = 'ASK'
|
||||
-- Arguments for the script
|
||||
for o, arg in getopt.getopt(args, 'h') do
|
||||
for o, arg in getopt.getopt(args, 'ht:') do
|
||||
if o == 'h' then return help() end
|
||||
if o == 't' then modulation_type = arg end
|
||||
end
|
||||
|
||||
core.clearCommandBuffer()
|
||||
|
@ -313,7 +320,8 @@ local function main(args)
|
|||
|
||||
-- Adjust this table to set which configurations should be tested
|
||||
-- local test_modes = { 'PSK1', 'PSK2', 'PSK3', 'FSK1', 'FSK2', 'FSK1A', 'FSK2A', 'ASK', 'BI' }
|
||||
local test_modes = { 'ASK' }
|
||||
--local test_modes = { 'PSK1' }
|
||||
local test_modes = { modulation_type }
|
||||
|
||||
for _ = 1, #test_modes do
|
||||
res = WipeCard()
|
||||
|
|
Loading…
Reference in a new issue