I'm trying to figure out the file hierarchy within a contact smart card using pyScard and ISO 7816 commands.
The first thing I do is selecting the master file (INS = 0xA4) using
connection.execute([0x0, 0xA4, 0x0, 0x0, 0x0])
This returns ([ ], 0x61, 0x19) which means I have to run a GET_RESPONSE (INS = 0xC0) command in order to get the answer.
To do so I run
connection.execute([0x0, 0xC0, 0x0, 0x0, 0x19])
which returns a set of bytes (besides the 0x90 00).
If I understand it correctly, by running the SELECT FILE I've selected the master file but I don't seem to find an interpretation for those bytes that I receive with GET RESPONSE, what does that mean? How do you interpretate them?
Thanks!! :)