pyscard

Authentication on website using smart card in python

*爱你&永不变心* 提交于 2020-02-27 22:33:08
问题 So I have a smart card provided by the company which looks like a credit card with a chip. This card logins on a website after the card is inserted into the card reader. Now I have to write a program in python which can read the card and login on that website using Requests module. I tried to find out how to retrieve this authentication data from the card using python script and then use this data but I am partially successful. I installed the pyscard : from smartcard.System import readers

Authentication on website using smart card in python

為{幸葍}努か 提交于 2020-02-27 22:32:08
问题 So I have a smart card provided by the company which looks like a credit card with a chip. This card logins on a website after the card is inserted into the card reader. Now I have to write a program in python which can read the card and login on that website using Requests module. I tried to find out how to retrieve this authentication data from the card using python script and then use this data but I am partially successful. I installed the pyscard : from smartcard.System import readers

Extended APDUs and T=0/1 communication protocols

*爱你&永不变心* 提交于 2019-12-04 11:48:18
I have a JCOP V2.4.2 R3 java card that it is mentioned in its datasheet "The card support both T=1 and T=0 communication protocols" I have also an ACR38 smart card reader that it support both T=0 and T=1 protocols. (I have T=0 communication with one card successfully and T=1 communication with this card successfully.) I wrote the below program and upload it on the card to send and receive extended APDUs: package extAPDU; import javacard.framework.APDU; import javacard.framework.Applet; import javacard.framework.ISOException; import javacardx.apdu.ExtendedLength; public class ExAPDU extends

How to send commands to smart card reader (and not to the smart card) while no card present?

此生再无相见时 提交于 2019-11-30 08:20:34
Preface: I have a dual interface smart card reader that has some extended capabilities (other than sending APDU commands to card and receiving APDU responses). For example in its document it is mentioned that you can get firmware version of your reader using following command: GET_FIRMWARE_VERSION: FF 69 44 42 05 68 92 00 05 00 In its tool, there is a button for this function and it works fine: I even sniffed USB port to see what exactly exchanged in the connection between my PC and my reader for this function: Command: Response: Problem: I want to get my reader version (and maybe send other

How to send commands to smart card reader (and not to the smart card) while no card present?

我是研究僧i 提交于 2019-11-29 11:31:04
问题 Preface: I have a dual interface smart card reader that has some extended capabilities (other than sending APDU commands to card and receiving APDU responses). For example in its document it is mentioned that you can get firmware version of your reader using following command: GET_FIRMWARE_VERSION: FF 69 44 42 05 68 92 00 05 00 In its tool, there is a button for this function and it works fine: I even sniffed USB port to see what exactly exchanged in the connection between my PC and my reader