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 2018-02-09 13:26:11

neoprema
Contributor
Registered: 2017-01-10
Posts: 14

EMV Card PAN/Name/Expiry Read

Hi All,

Can someone point me to info on how to use the Proxmark to read EMV data in particular the card number, expiry date etc.

I assume this should be possible as if I read the card with an NFC-enabled phone like an S8 and a run-of-the-mill app it shows me the card no etc.

I just cant seem to find how to do it.

Offline

#2 2018-02-18 03:25:51

lonewolf
Contributor
Registered: 2016-09-03
Posts: 37

Re: EMV Card PAN/Name/Expiry Read

Thanks to all the wonderful work merlokk's done it should be a simple "hf emv exec -s" assuming you have recent code from GitHub.

Offline

#3 2018-02-19 14:43:36

neoprema
Contributor
Registered: 2017-01-10
Posts: 14

Re: EMV Card PAN/Name/Expiry Read

Awesome thanks, am I looking for a particular fork or just the main source?

Offline

#4 2018-02-19 16:50:24

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

Re: EMV Card PAN/Name/Expiry Read

works in offical and iceman

Offline

#5 2018-04-02 10:24:05

jontaa
Contributor
Registered: 2016-06-17
Posts: 12

Re: EMV Card PAN/Name/Expiry Read

When I received my NFC enabled Mastercard from my bank I wanted to disable this contactless feature.
The way it is done is by calling my bank and asking them to disable.
I have wondered exactly what happens after they do this, and how this affect the card, but now when I compare my disabled with an enabled one from the same bank the results are obvious

My disabled one:
######################
pm3 --> hf emv exec -s
* PPSE.

APDU ERROR: Proxmark error 0.
PPSE ERROR: Can't select PPSE AID. Error: 1
* Search AID in list.

APDU ERROR: Proxmark error 0.
APDU ERROR: Proxmark error 3.
APDU ERROR: Proxmark error 0.
Exit...
pm3 -->
######################

Thought this might be interesting. Not sure if the bank sent some instructions to the card the next time I used it after they had disabled it, that also changed something on the NFC chip itself.


As I said, I also scanned a functional card, that gave a lot more output.
Not sure if any if it is of interest however. And I am a bit reluctant to post the entire output here just in case there is indeed something interesting.
What I wanted to verify is if the the card number, name or other critical information could be read from the card when enabled.

This part seem to indicate no
* MSD dCVV path. Check dCVV
Error MSD: Track2 data not found.
* Transaction completed.

What I can see is for example that the authorized amount to shop without pin is 100, currency code etc, as well as the language it prefers on the POS terminal.

Offline

#6 2018-04-02 10:30:10

jontaa
Contributor
Registered: 2016-06-17
Posts: 12

Re: EMV Card PAN/Name/Expiry Read

I compared with an older card I have not used in a while. It is from the same bank. There I could see the full card number etc. scary

Offline

#7 2018-04-03 02:41:34

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

Re: EMV Card PAN/Name/Expiry Read

At what point did you read the card?
Did you read the card and obtain something like transaction history, disable the card, then re-read the the card?
How was the card disabled?
After the phone call did you present the card to your phone / POS terminal?

Offline

#8 2018-07-25 11:48:36

www
Contributor
Registered: 2018-07-25
Posts: 9

Re: EMV Card PAN/Name/Expiry Read

jontaa wrote:

My disabled one:
######################
pm3 --> hf emv exec -s
* PPSE.

APDU ERROR: Proxmark error 0.
PPSE ERROR: Can't select PPSE AID. Error: 1
* Search AID in list.

APDU ERROR: Proxmark error 0.
APDU ERROR: Proxmark error 3.
APDU ERROR: Proxmark error 0.
Exit...
pm3 -->
######################

I get almost the same output with my recent NFC ENABLED VISA

proxmark3> hf emv exec -s

* PPSE.
APDU ERROR: Proxmark error 0.
PPSE ERROR: Can't select PPSE AID. Error: 1

* Search AID in list.
APDU ERROR: Proxmark error 0.
APDU ERROR: Proxmark error 0.
APDU ERROR: Proxmark error 0.
Exit...

However

hf emv exec -s -a -t -c -g

Leads to a successful transaction message (last PM3 build // bootrom: master/v3.0.1-379-gb2e0ac5-suspect 2018-07-25 07:58:59
os: master/v3.0.1-379-gb2e0ac5-suspect 2018-07-25 07:58:33 ).

Last edited by www (2018-07-25 11:53:29)

Offline

#9 2018-07-27 22:26:23

HighPressure
Contributor
Registered: 2016-07-17
Posts: 56

Re: EMV Card PAN/Name/Expiry Read

im on windows build / master 3.0.1-381-g913

same for me with a 2 month old visa with nfc enabled

hf search tells its a desfire
hf emv exec -s brought same error messages for me

I then ran a hf em test

now after this the hf emv exec -s works fine, no matter if I just exit the client software or also reboot the proxmark device itself.
Seems the card was stuckin a state and is now "unlocked"

the menitoned exec with satcg didnt change anything for me.

anyhow it doesnt show the name, number date or anything.. just things like what type of visa card it is and if online pin is enabled etc.
my other cc´s are all nfc disabled, so I cant tell if its just that card

Offline

#10 2018-10-13 10:10:12

merlok
Contributor
Registered: 2011-05-16
Posts: 132

Re: EMV Card PAN/Name/Expiry Read

`hf emv exec -s` just make an EMV transaction.
if card can't make a transaction - it cant too...
if you look more detail `hf emv exec -sa` you see might be... it founds an application, but it in status BLOCKED...
to unblock it you need to put it to your bank's ATM and bank need to send to it some script to unblock it.
any command cant do nothing with blocked card.
it needs to know card's key or card's master key

P.S. as for emv test its strange...  coz it dont touch any structures instead of crypto

Last edited by merlok (2018-10-13 10:11:34)

Offline

#11 2018-10-13 10:12:54

merlok
Contributor
Registered: 2011-05-16
Posts: 132

Re: EMV Card PAN/Name/Expiry Read

and sometimes it needs to play with card place on the anntenna...   it may not read if too far or too close or with some angle...

Offline

#12 2021-12-23 02:59:45

kosgguy
Contributor
Registered: 2021-12-18
Posts: 56

Re: EMV Card PAN/Name/Expiry Read

in my case when I execute "emv exec -s" I end up getting this and no track2

* Read records from AFL.
[!] WARNING: AFL not found.
[!!] Can't find AIP.

* Transaction completed.

but when I execute "emv exec -s -a -t -c -g" I end up getting track2, but only the first 16 digits hmm

Offline

Board footer

Powered by FluxBB