Proxmark3 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.

Announcement

Time changes and with it the technology
Proxmark3 @ discord

Users of this forum, please be aware that information stored on this site is not private.

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

piwi
Contributor
Registered: 2013-06-04
Posts: 704

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
Contributor
Registered: 2013-06-04
Posts: 704

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: 632

Re: Use standard Smartcard Readers with sc and emv commands

What is the model number of your reader?

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: 632

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.

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: 632

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.

Offline

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

piwi
Contributor
Registered: 2013-06-04
Posts: 704

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: 53

Re: Use standard Smartcard Readers with sc and emv commands

Nice work! This one is exciting!

Offline

#13 2019-07-21 12:15:19

fazer
Contributor
Registered: 2019-03-02
Posts: 146

Re: Use standard Smartcard Readers with sc and emv commands

Hello, here is a total wash card with a proxmark3 rdv4 card reader. Thank you for the job works great. Good Sunday

[usb] pm3 --> sc info
[=] --- Smartcard Information ---------         
[=] -------------------------------------------------------------         
[=] ISO7618-3 ATR : 3B B2 11 00 10 80 00 02           
         
[=] http://smartcard-atr.appspot.com/parse?ATR=3BB2110010800002
         
         
[=] ATR         
    - TA1 (Maximum clock frequency, proposed bit duration) [ 0x11 ]         
    - TB1 (Deprecated: VPP requirements) [ 0x00 ]         
    - TD1 (First offered transmission protocol, presence of TA2..TD2) [ 0x10 ] Protocol T0         
    - TA2 (Specific protocol and parameters to be used after the ATR) [ 0x80 ]         
         
[=] Historical bytes | len 0x02 | format 00
         
[=]     Historical bytes         
       00: 00 02                                           |..
         
[=] D/F (TA1)         
[=] Using default values...         
    - Di 1         
    - Fi 372         
    - F  5,0 MHz         
    - Cycles/ETU 372         
    - 10752,7 bits/sec at 4 MHz         
    - 13440,9 bits/sec at Fmax (5,0MHz)         
[usb] pm3 -->

This card must put euros in the station, then I can clean my car is more or less a credit card because I think I can pay my full fuel with, for me it's just for fun because I do not know if it is possible to modify the sum on this card, I will make a check of both cards to see the difference. Have a good day

Offline

#14 2019-07-23 08:36:04

iceman
Administrator
Registered: 2013-04-25
Posts: 9,495
Website

Re: Use standard Smartcard Readers with sc and emv commands

@fazer, you should open a new thread instead.

Offline

#15 2020-06-24 21:26:28

cristalcorp
Contributor
Registered: 2020-06-24
Posts: 2

Re: Use standard Smartcard Readers with sc and emv commands

@fazer I'm also working on the SC cards and learning more about them, feel free to contact me.

Offline

#16 2020-08-20 12:00:05

fazer
Contributor
Registered: 2019-03-02
Posts: 146

Re: Use standard Smartcard Readers with sc and emv commands

Hi Cristalcorp, ok many thanks
have a nice day .

Offline

Board footer

Powered by FluxBB