L1L1 / cardpeek

Automatically exported from code.google.com/p/cardpeek
Other
454 stars 117 forks source link

GPO command not issued #66

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Using Omnikey 5421 Dual Interface reader (contact/contactless)
2. When using contactless interface, Cardpeek issues the GPO command and all 
information is retrieved and presented as expected
3. When using the contact interface, Cardpeek fails to issue the GPO command 
and only reads/presents the cold ATR and cplc data

What is the expected output? What do you see instead?

Expected to see dialog asking to run GPO, but no dialog appears.

What version of the product are you using? On what operating system?

0.8.4 on Mac OSX (also tried on Windows 8 w/ same result)

Please provide any additional information below.

Log info w/ multiple error messages deleted:

0016 DEBUG   Scripts are up to date.
0017 DEBUG   Found 2 PCSC readers
0018 INFO    Selected 'pcsc://OMNIKEY CardMan (076B:5421) 5421(1)'
0019 DEBUG   cardpeek scripts will be scheduled for update in less than a day.
0020 INFO    Running script emv.lua (please wait)
0021 DEBUG   Attempting to connect to 'pcsc://OMNIKEY CardMan (076B:5421) 
5421(1)'
0022 DEBUG   Could not determinate reader maximum input length
0023 INFO    Connection successful, protocol is T=0
0024 INFO    ATR is 15 bytes: 3B6B00000031C064002734000F9000
0025 INFO    send: 00A404000E315041592E5359532E4444(...) [4S]
0026 ERROR   Failed to transmit command to card: Transaction failed. (error 
0x80100016).
0027 INFO    Recv: 6FFF  [Cardpeek application-level error]
0028 INFO    No PSE

***

0393 ERROR   Failed to transmit command to card: Transaction failed. (error 
0x80100016).

***

0400 INFO    Recv: 6FFF  [Cardpeek application-level error]
0401 INFO    Reconnected reader
0402 INFO    ATR is 15 bytes: 3B6B00000031C064002734000F9000
0403 INFO    Processing CPLC data
0404 INFO    send: 80CA9F7F00 [2S]
0405 INFO    Recv: 6C2D  [Wrong length Le, see SW2]
0406 INFO    send: 80CA9F7F2D [2S]
0407 INFO    Recv: 9000 9F7F2A4790516882310258006B32532A(...) [Normal 
processing]
0408 INFO    Disconnected reader

Original issue reported on code.google.com by m...@mallecho.com on 10 Jun 2015 at 12:12

GoogleCodeExporter commented 9 years ago
Thanks for the report.
It seems that this could be a problem in the select command in cardpeek 
(example on line 0025), which affects some readers but not all. This could be 
fixed by removing a 00 at the end of the select command.  

I will do some investigations and issue a patch soon if this is confirmed.

Original comment by L...@gmx.com on 14 Jun 2015 at 7:35

ghost commented 9 years ago

Can confirm this issue is seen with 0.8.4 on Windows 7 using a Gemalto PC USB TR PIV as well. Attempted to see if issue was not present in earlier versions, unfortunately GPO prompt is not seen in 0.8.3 or 0.8.2 either.