remover crc, sw codes in output

This commit is contained in:
iceman1001 2020-09-30 10:24:53 +02:00
commit b522899190

View file

@ -7,7 +7,7 @@ local ansicolors = require('ansicolors')
copyright = '' copyright = ''
author = 'Iceman' author = 'Iceman'
version = 'v1.0.3' version = 'v1.0.4'
desc = [[ desc = [[
This is a script to communicate with a CALYSPO / 14443b tag using the '14b raw' commands This is a script to communicate with a CALYSPO / 14443b tag using the '14b raw' commands
]] ]]
@ -256,7 +256,7 @@ function main(args)
else else
if result then if result then
local status, desc, err = calypso_apdu_status(result.data) local status, desc, err = calypso_apdu_status(result.data)
local d = result.data:sub(3, #result.data) local d = result.data:sub(3, (#result.data - 8))
if status then if status then
print('<< '..d..' ('..ansicolors.green..'ok'..ansicolors.reset..')') print('<< '..d..' ('..ansicolors.green..'ok'..ansicolors.reset..')')
else else