Skip to content

Instantly share code, notes, and snippets.

@alhafoudh
Last active October 30, 2022 20:22
Show Gist options
  • Save alhafoudh/1fed59c4cacf38a997b8f718fbf70b89 to your computer and use it in GitHub Desktop.
Save alhafoudh/1fed59c4cacf38a997b8f718fbf70b89 to your computer and use it in GitHub Desktop.
# https://cardwerk.com/smart-card-standard-iso7816-4-section-6-basic-interindustry-commands/
alhafoudh@Gray:~/Projects/evrc$ opensc-explorer
OpenSC Explorer version 0.22.0
Using reader with a card: Gemalto PC Twin Reader
unable to change lifecycle: Security status not satisfied
OpenSC [3F00]> cd aid:A0000004564556522D3031
OpenSC [A000/0004/5645/5652/2D30/31]> find D000 D0FF
FileID Type Size
D001 wEF 4096
D011 wEF 4096
D021 wEF 4096
OpenSC [A000/0004/5645/5652/2D30/31]> asn1 D001
...
OpenSC [A000/0004/5645/5652/2D30/31]> asn1 D011
...
OpenSC [A000/0004/5645/5652/2D30/31]> asn1 D021
...
OpenSC [A000/0004/5645/5652/2D30/31]> get D001
Total of 4096 bytes read from D001 and saved to D001.
OpenSC [A000/0004/5645/5652/2D30/31]> get D011
Total of 4096 bytes read from D011 and saved to D011.
OpenSC [A000/0004/5645/5652/2D30/31]> get D021
Total of 4096 bytes read from D021 and saved to D021.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment