Skip to content Skip to sidebar Skip to footer

Retrieve Smart Card's Pan With Python And Pyscard

I'm trying to retrieve the PAN of a smart card using pyscard in Python. What I have done so far is to connect to the reader and to retrieve various information about the reader and

Solution 1:

You should specify which smartcard you are using.

If I am remembering right, not all the cards had the serial number accessible and if it is accessible, I don't think there is a standard command.

Anyway, you should take a look at the iso 7816-4 standand, which defines the APDU commands. Additionally, you should check the documentation of your card to see if it has some non-standard APDU command that can help you.

Post a Comment for "Retrieve Smart Card's Pan With Python And Pyscard"