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 2021-12-22 01:29:10

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

[question] emv hf_msdsal

Hello

So basically I loaded this standalone mode on my proxmark.
The problem is that I always keep receiving the same proxmark command, the same challenges and the sames card answer

#] ----
[#] +Found ISO 14443 Type A!
[#] [ Proxmark command ]
[#] 00 a4 04 00 0e 32 50 41
[#] 59 2e 53 59 53 2e 44 44
[#] 46 30 31 00
[#] [ Card answer ]
[#] 6f 2e 84 0e 32 50 41 59
[#] 2e 53 59 53 2e 44 44 46
[#] 30 31 a5 1c bf 0c 19 61
[#] 17 4f 07 a0 00 00 00 04
[#] 10 10 87 01 01 9f 0a 08
[#] 00 01 05 01 00 00 00 00
[#] 90 00
[#] ----
[#] [ Proxmark command ]
[#] 00 a4 04 00 07 a0 00 00
[#] 00 03 10 10 00
[#] [ Card answer ]
[#] 6a 82
[#] ----
[#] [ Challenge generated ]
[#] 80 a8 00 00 02 83 00 00
[#] [ Proxmark command ]
[#] 80 a8 00 00 02 83 00 00
[#] [ Card answer ]
[#] 6d 00
[#] ----
[#] [ Proxmark command ]
[#] 00 b2 01 0c 00
[#] [ Card answer ]
[#] 6d 00
[#] ----

According to the article (https://salmg.net/2020/04/24/hf_msdsal- … lone-mode/) I should end up getting the track 1&2 including the card data.
I have tried with a bunch of visa&mastercard cards & apple pay cards and they doesn't work with this standalone mode.

Any ideas?

Thanks

Offline

#2 2021-12-22 18:54:44

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

Re: [question] emv hf_msdsal

Maybe try reading an EMV card normally with the pm3 before you start with complex standalone modes?

Offline

#3 2021-12-23 02:38:19

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

Re: [question] emv hf_msdsal

I believe the default was other mode, now the default is HF_MSDSAL (https://github.com/RfidResearchGroup/proxmark3/wiki/Standalone%2Dmode).

But I have tried reading EMV, the only command that works for me is "emv scan output.json" because the others like "emv exec" gives me very weird and long output (1) and others like "emv readrec -k 0101" (2) gives output I don't like.
(1)

[usb] pm3 --> emv exec
[=] Selected channel... CONTACTLESS (T=CL)

* PPSE.
[-] Field currently inactive, cannot send an APDU
[!!] PPSE ERROR: Can't select PPSE AID. Error: -8
Check PPSE instead of PSE and vice versa...
[-] Field currently inactive, cannot send an APDU
[!!] PSE ERROR: Can't select PPSE AID. Error: -8

* Search AID in list.
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A00000000305076010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000031010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A000000003101001]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A000000003101002]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000032010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000032020]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000033010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000034010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000035010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000036010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000036020]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000038002]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000038010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000039010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A000000003999910]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A000000098]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000980848]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A00000000401]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000041010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A00000000410101213]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A00000000410101215]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000042010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000043010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000043060]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A000000004306001]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000044010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000045010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000046000]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000048002]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000049999]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [B012345678]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A000000025]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000250000]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A00000002501]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A000000025010402]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A000000025010701]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A000000025010801]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000421010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000422010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000423010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000424010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000425010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A00000006510]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000651010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000050001]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000050002]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000001523010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000001524010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A00000002401]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000291010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A00000006900]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A000000077010000021000000000003B]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000001211010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000001410001]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000001544442]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A000000172950001]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000001850002]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000002281010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000002282010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000002771010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A00000031510100528]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000003156020]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000003591010028001]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000003710001]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000004540010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000004540011]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000004766C]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000005241010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000006723010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000006723020]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000007705850]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [D27600002545500100]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [D4100000030001]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [D5280050218002]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [D5780000021010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [F0000000030001]. Skipped...
[=] |------------------+--------+-------------------------|
[=] |    AID           |Priority| Name                    |
[=] |------------------+--------+-------------------------|
[=] |                         none                        |
[=] |------------------+--------+-------------------------|
[!] Can't select AID. EMV AID not found

(2)

[usb] pm3 --> emv readrec -k 0101
[=] Selected channel... CONTACTLESS (T=CL)
[-] Field currently inactive, cannot send an APDU

Right now I believe there is something wrong with the github hf_msdsal standalone repository mode. But I will investigate all this to know what's wrong with me.

Thanks

Offline

#4 2021-12-23 07:35:29

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

Re: [question] emv hf_msdsal

lets jump to the conclusion the code is wrong.  It must be.  I am looking forward to a fix on the repo.

Offline

#5 2021-12-23 12:17:12

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

Re: [question] emv hf_msdsal

Awesome!
I am also looking at the source code and see if I can do something.
Thanks

Offline

#6 2021-12-23 17:20:39

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

Re: [question] emv hf_msdsal

Why "emv search" doesn't work?

[usb] pm3 --> emv search
[=] Selected channel... CONTACTLESS (T=CL)
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A00000000305076010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000031010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A000000003101001]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A000000003101002]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000032010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000032020]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000033010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000034010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000035010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000036010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000036020]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000038002]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000038010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000039010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A000000003999910]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A000000098]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000980848]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A00000000401]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000041010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A00000000410101213]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A00000000410101215]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000042010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000043010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000043060]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A000000004306001]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000044010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000045010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000046000]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000048002]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000049999]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [B012345678]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A000000025]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000250000]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A00000002501]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A000000025010402]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A000000025010701]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A000000025010801]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000421010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000422010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000423010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000424010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000425010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A00000006510]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000651010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000050001]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000050002]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000001523010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000001524010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A00000002401]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000000291010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A00000006900]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A000000077010000021000000000003B]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000001211010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000001410001]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000001544442]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A000000172950001]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000001850002]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000002281010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000002282010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000002771010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A00000031510100528]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000003156020]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000003591010028001]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000003710001]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000004540010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000004540011]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000004766C]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000005241010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000006723010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000006723020]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [A0000007705850]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [D27600002545500100]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [D4100000030001]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [D5280050218002]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [D5780000021010]. Skipped...
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Field currently inactive, cannot send an APDU
[-] Retry failed [F0000000030001]. Skipped...
[+] Search completed.
[=] |------------------+--------+-------------------------|
[=] |    AID           |Priority| Name                    |
[=] |------------------+--------+-------------------------|
[=] |                         none                        |
[=] |------------------+--------+-------------------------|

Also, I have tried today, inputting a track2 and then emulating the card (with the hf_msdsal standalone mode), and it seems it emulates but it doesn't work, so it is broken too.

Also when I do "emv challenge" I receive:

[usb] pm3 --> emv challenge
[=] Selected channel... CONTACTLESS (T=CL)
[-] Field currently inactive, cannot send an APDU

and the card is well positioned.
Also from the following commands I don't find anyone that seems to first insert a card, then a blanked and copy it there (instead of emulating)

[usb] pm3 --> emv
help             This help
exec             Executes EMV contactless transaction.
pse              Execute PPSE. It selects 2PAY.SYS.DDF01 or 1PAY.SYS.DDF01 directory.
search           Try to select all applets from applets list and print installed applets.
select           Select applet.
gpo              Execute GetProcessingOptions.
readrec          Read files from card.
genac            Generate ApplicationCryptogram.
challenge        Generate challenge.
intauth          Internal authentication.
scan             Scan EMV card and save it contents to json file for emulator.
test             Crypto logic test.
list             List ISO7816 history
roca             Extract public keys and run ROCA test


Is there any command to do that?

Thanks

Offline

#7 2021-12-23 19:25:55

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

Re: [question] emv hf_msdsal

Dunno, but I feel that we just need to test some more commands and see what sticks.

Offline

#8 2021-12-23 21:23:55

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

Re: [question] emv hf_msdsal

About the emulation mode, I believe there is an error in hf_msdsal between the PSE, PPSE, FCI and GPO. After that the AFL and C-APDU/R-APDU commands don't work.

I have looked the source code, and loaded older version of the file that I found on github (using my emulated card mode from the beginning) of the hf_msdsal.c file, but older files also doesn't work, displaying different output in the command prompt. I have compared older version with a tool called winmerge, and I have concluded the most recent code is more documented than the previous. But as older version doesn't work for me, I can't what is the error.

I have also thought that if I want to load older version of hf_msdsal.c, I need to load the full repository at that period of time, not only the file. I did that but got unsuccess.

In the most last commit of the hf_msdsal file I get the following output, when emulating the card and putting next to a card reader.

[#] +Request for UID C1
[#] +Request for SELECT S1
[#] +Request for RATS
[#] +WAKEUP Received
[#] +Received a HALT
[#] +WAKEUP Received
[#] +Request for UID C1
[#] +Request for SELECT S1
[#] +Request for RATS
[#] [ Card reader command ]
[#] 02 00 a4 04 00 0e 32 50
[#] 41 59 2e 53 59 53 2e 44
[#] 44 46 30 31 00 e0 42
[#] [ Proxmark3 answer ]
[#] 02 6f 23 84 0e 32 50 41
[#] 59 2e 53 59 53 2e 44 44
[#] 46 30 31 a5 11 bf 0c 0e
[#] 61 0c 4f 07 a0 00 00 00
[#] 03 10 10 87 01 01 90 00
[#] ----
[#] [ Card reader command ]
[#] 03 00 a4 04 00 07 a0 00
[#] 00 00 03 10 10 00 bc 41
[#] [ Proxmark3 answer ]
[#] 03 6f 1e 84 07 a0 00 00
[#] 00 03 10 10 a5 13 50 0b
[#] 56 49 53 41 20 43 52 45
[#] 44 49 54 9f 38 03 9f 66
[#] 02 90 00
[#] ----
[#] [ Card reader command ]
[#] 02 80 a8 00 00 04 83 02
[#] 36 a0 00 a0 5c
[#] [ Proxmark3 answer ]
[#] 02 80 06 00 80 08 01 01
[#] 00 90 00
[#] ----
[#] [ Card reader command ]
[#] 03 00 b2 01 0c 00 58 90
[#] [ Proxmark3 answer ]
[#] 03 70 15 57 13 51 63 83
[#] 03 04 90 41 98 d2 61 12
[#] 01 59 08 74 15 00 00 0f
[#] 90 00
[#] ----
[#] +WAKEUP Received
[#] +Received a HALT
[#] +WAKEUP Received
[#] +Request for UID C1
[#] +Request for SELECT S1
[#] +Request for RATS
[#] [ Card reader command ]
[#] 02 00 a4 04 00 0e 32 50
[#] 41 59 2e 53 59 53 2e 44
[#] 44 46 30 31 00 e0 42
[#] [ Proxmark3 answer ]
[#] 02 6f 23 84 0e 32 50 41
[#] 59 2e 53 59 53 2e 44 44
[#] 46 30 31 a5 11 bf 0c 0e
[#] 61 0c 4f 07 a0 00 00 00
[#] 03 10 10 87 01 01 90 00
[#] ----
[#] [ Card reader command ]
[#] 03 00 a4 04 00 07 a0 00
[#] 00 00 03 10 10 00 bc 41
[#] [ Proxmark3 answer ]
[#] 03 6f 1e 84 07 a0 00 00
[#] 00 03 10 10 a5 13 50 0b
[#] 56 49 53 41 20 43 52 45
[#] 44 49 54 9f 38 03 9f 66
[#] 02 90 00
[#] ----
[#] [ Card reader command ]
[#] 02 80 a8 00 00 04 83 02
[#] 36 a0 00 a0 5c
[#] [ Proxmark3 answer ]
[#] 02 80 06 00 80 08 01 01
[#] 00 90 00
[#] ----
[#] [ Card reader command ]
[#] 03 00 b2 01 0c 00 58 90
[#] [ Proxmark3 answer ]
[#] 03 70 15 57 13 51 63 83
[#] 03 04 90 41 98 d2 61 12
[#] 01 59 08 74 15 00 00 0f
[#] 90 00
[#] ----


Any ideas?

Thanks

Offline

Board footer

Powered by FluxBB