mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-20 12:07:05 +08:00
fix: avoid empty strings.
This commit is contained in:
parent
2b34fbec0c
commit
2d2a8b7b1b
1 changed files with 9 additions and 7 deletions
|
@ -61,6 +61,7 @@ function main(args)
|
|||
if lists == nil then return oops("Couldn't find any CRC algos with that width") end
|
||||
|
||||
for _,i in pairs(lists) do
|
||||
if string.len(i) > 1 then
|
||||
local a1 = core.reveng_runmodel(i, data, false, '0')
|
||||
local a2 = core.reveng_runmodel(i, data, true, '0')
|
||||
local a3 = core.reveng_runmodel(i, data, false, 'b')
|
||||
|
@ -69,6 +70,7 @@ function main(args)
|
|||
local a6 = core.reveng_runmodel(i, data, false, 'L')
|
||||
print( ('%-20s| %-16s| %-16s| %-16s| %-16s| %-16s| %-16s'):format(i, a1:upper(), a2:upper(),a3:upper(),a4:upper(),a5:upper(),a6:upper() ) )
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
main(args)
|
Loading…
Add table
Reference in a new issue