Proxmark developers community

Research, development and trades concerning the powerful Proxmark3 device.

Remember; sharing is caring. Bring something back to the community.


"Learn the tools of the trade the hard way." +Fravia

You are not logged in.

#1 2019-01-29 16:44:24

piwi
Moderator
Registered: 2013-06-04
Posts: 560

Use standard Smartcard Readers with sc and emv commands

For those who don't own a RDV4: Official repo now supports standard USB Smartcard Readers.

A new command 'sc select' let's you choose one of the connected Smartcard Readers (a 10$ reader should do). Then just use 'sc info' or 'sc reader'.

Support for other 'sc' and the 'emv' commands coming soon.

proxmark3> sc select
Please select one of these:
  [0] PM3 RDV40 Smartcard Slot (default, not available)
  [1] Generic Smart Card Reader Interface 0
  [2] OMNIKEY CardMan 5x21 0
  [3] OMNIKEY CardMan 5x21-CL 0
Your choice (0...3)?
INFO: Selected Generic Smart Card Reader Interface 0
proxmark3> sc info
INFO: --- Smartcard Information ---------
INFO: -------------------------------------------------------------
INFO: ISO7618-3 ATR : 3b 6b 00 00 00 31 c0 64 00 27 34 00 07 90 00

INFO:
http://smartcard-atr.appspot.com/parse?ATR=3b6b00000031c06400273400079000


INFO: ATR
        - TB1 (Deprecated: VPP requirements) [ 0x00 ]
        - TC1 (Extra delay between bytes required by card) [ 0x00 ]

INFO: Historical bytes | len 11 | format 00

INFO:   Historical bytes
                00: 00 31 c0 64 00 27 34 00 07 90 00            
|.1.d.'4....

INFO: D/F (TA1)
INFO: Using default values...
        - Di=1
        - Fi=372
        - F=5.0 MHz
        - Cycles/ETU=372
        - 10752.7 bits/sec at 4MHz
        - 13440.9 bits/sec at Fmax=5.0MHz

Offline

#2 2019-01-29 22:41:51

Bergera
Contributor
Registered: 2018-11-07
Posts: 7

Re: Use standard Smartcard Readers with sc and emv commands

Very nice! I'll pick up a reader and start playing with it

Offline

#3 2019-02-04 12:56:05

piwi
Moderator
Registered: 2013-06-04
Posts: 560

Re: Use standard Smartcard Readers with sc and emv commands

Support is now extended to other 'sc' and the 'emv' commands. Give it a try.

Note for Linux-Users: you need to have the pcscd and libpcsclite-dev packages installed. E.g. on Debian based systems run 'apt install libpcsclite-dev pcscd'. Respective Wiki has been updated by Fl0-0.

Offline

#4 2019-02-04 19:21:36

Bergera
Contributor
Registered: 2018-11-07
Posts: 7

Re: Use standard Smartcard Readers with sc and emv commands

Looks like the OMNIKEY reader I got isn't showing up. Got another one on the way just in case.

Offline

#5 2019-02-04 23:02:02

0xFFFF
Administrator
From: Vic - Australia
Registered: 2011-05-31
Posts: 575

Re: Use standard Smartcard Readers with sc and emv commands

What is the model number of your reader?


Want to contact me? Here's my email address...
modhex(ecijhhhhhhhhfchdhbidhniihghdduhehvhtduhbig)

Offline

#6 2019-02-05 04:30:35

Bergera
Contributor
Registered: 2018-11-07
Posts: 7

Re: Use standard Smartcard Readers with sc and emv commands

Its a HID OMNIKEY 3021

Offline

#7 2019-02-05 05:33:54

0xFFFF
Administrator
From: Vic - Australia
Registered: 2011-05-31
Posts: 575

Re: Use standard Smartcard Readers with sc and emv commands

Shouldn't be a problem. Check device manager. Windows can be a bit of a jerk when it comes to OmniKey drivers.
If you're not already, you should be using (or at least try) the OmniKey smart card reader driver from HID.


Want to contact me? Here's my email address...
modhex(ecijhhhhhhhhfchdhbidhniihghdduhehvhtduhbig)

Offline

#8 2019-02-05 05:41:53

Bergera
Contributor
Registered: 2018-11-07
Posts: 7

Re: Use standard Smartcard Readers with sc and emv commands

Using linux (ubuntu) and looks like i may have to do a little setup on my end. Will try it again tomorrow.
That is assuming it should work in linux as well, I'd think the proxmark client wouldn't care?

Offline

#9 2019-02-05 07:15:43

0xFFFF
Administrator
From: Vic - Australia
Registered: 2011-05-31
Posts: 575

Re: Use standard Smartcard Readers with sc and emv commands

(...Why did I assume you were using Windows?)
The client does not care but it depends on what it is enumerating as. I only have experience using the 3021 on Android and Windows.
Try other PCSC apps to see if your results vary.
There is a chance that the device isn't being detected if it appears as a composite device (such as the 5427). I can't recall if the 3021 is one of those or not.


Want to contact me? Here's my email address...
modhex(ecijhhhhhhhhfchdhbidhniihghdduhehvhtduhbig)

Offline

#10 2019-02-05 17:45:01

piwi
Moderator
Registered: 2013-06-04
Posts: 560

Re: Use standard Smartcard Readers with sc and emv commands

Did you see the notes regarding required packages?

Offline

#11 2019-02-05 18:47:48

Bergera
Contributor
Registered: 2018-11-07
Posts: 7

Re: Use standard Smartcard Readers with sc and emv commands

proxmark3> sc select
Please select one of these:
  [0] PM3 RDV40 Smartcard Slot (default, not available)
  [1] HID Global OMNIKEY 3x21 Smart Card Reader [OMNIKEY 3x21 Smart Card Reader] 00 00
Your choice (0 or 1)?1
INFO: Selected HID Global OMNIKEY 3x21 Smart Card Reader [OMNIKEY 3x21 Smart Card Reader] 00 00
proxmark3> sc info
INFO: --- Smartcard Information ---------
INFO: -------------------------------------------------------------
INFO: ISO7618-3 ATR : 3b 04 49 32 43 2e

INFO: http://smartcard-atr.appspot.com/parse?ATR=3b044932432e


INFO: ATR

INFO: Historical bytes | len 04 | format 49

INFO:   Historical bytes
                00: 49 32 43 2e                                     |I2C.

INFO: D/F (TA1)
INFO: Using default values...
        - Di=1
        - Fi=372
        - F=5.0 MHz
        - Cycles/ETU=372
        - 10752.7 bits/sec at 4MHz
        - 13440.9 bits/sec at Fmax=5.0MHz

Suppose to be a hotel card I got off of ebay

Getting something back now.

I followed this link and was able to get everything to work.

https://justrocketscience.com/post/install-card-reader-ubuntu-vm

I needed to install CCID (I got it from the github repo)

hopefully that helps someone else looking to get it working under linux

Offline

#12 2019-02-10 06:28:14

Tom5ive
Contributor
Registered: 2017-09-18
Posts: 42

Re: Use standard Smartcard Readers with sc and emv commands

Nice work! This one is exciting!

Offline

Board footer

Powered by FluxBB