Page 1 of 1
script file format for pyapdutool.
Posted: Thu Oct 13, 2016 5:16 am
by Squli
I want to make a script file and send it via
pyApdutool. But I don't know the script file format for
pyApdutool.
Is there any document that can help me ?
Re: script file format for pyapdutool.
Posted: Thu Oct 13, 2016 11:45 pm
by product
Every APDU command is ended up with semicolon. The format of script command is as follows.
Code: Select all
00A404000611223344556600;
0001223300;
0001050602112200;
Here is an example, including checking SW1,SW2 correct or error upon the expected value.
Code: Select all
//check SW1 SW2 and data
//expect: 6F5C8408A000000003000000A550734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864886FC6B03640B06092A864886FC6B040255650B06092B8510864864020103660C060A2B060104012A026E01029F6501FF9000
00A40400;
//expect: 9000
00A40400;
//only check SW1 SW2
//expect: 6A82
00A40400051122334455;
//expect: 6A82
00A40400051122334455;