0% found this document useful (0 votes)
126 views

APDU - EMV, APDU Command - Response Parse at Iso8583.info

This document discusses parsing EMV smartcard log files and scripts. It supports parsing log files from ICC Solutions / FIME SmartSpy Level 1 files that contain ATR, APDU command requests and responses. It also supports basic scripts that contain card connection information and APDU command and response hexadecimal strings. Lines with ATR, command requests and responses will be extracted while excluding all other lines and spaces within hexadecimal strings. Only supported EMV payment instructions will be processed.

Uploaded by

Jack Daniels
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
126 views

APDU - EMV, APDU Command - Response Parse at Iso8583.info

This document discusses parsing EMV smartcard log files and scripts. It supports parsing log files from ICC Solutions / FIME SmartSpy Level 1 files that contain ATR, APDU command requests and responses. It also supports basic scripts that contain card connection information and APDU command and response hexadecimal strings. Lines with ATR, command requests and responses will be extracted while excluding all other lines and spaces within hexadecimal strings. Only supported EMV payment instructions will be processed.

Uploaded by

Jack Daniels
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

EMV

 Integrated Circuit Card Specifications for Payment Systems 


 parsing Data parsing available for authorised users.

APDU parser support two variants of smatcard log traces:


- SmartSpy Level 1 files by ICC Solutions / FIME;
- Basic script with ATR and APDU Command Request/Response;

1) SmartSpy Level 1 lines example


---==============================
*level 1 trace
*File name : [filename]
*Date : [datetime]
*Start of log file
Acquisition 1
ATR - 3B 6F 00 00 80 31 E0 6B 05 12 05
***** 02 87 55 55 55 55 55 55
IFD - 00 A4 04 00 0E
ICC - A4
IFD - 31 50 41 59 2E 53 59 53 2E 44 44 46 30 31
ICC - 61 17
...
*End of log file
*Checksum: [checksum]
---

Supported lines:
- 'ATR -' - ATR hexadecimal data.
- 'IFD -' - Device Request hexadecimal data.
- 'ICC -' - Smartcard Response hexadecimal data.
- '*****' - continue previous data block.

The rest of lines be excluded.

2) GPShell script log example


---==========================
enable_trace
establish_context
card_connect
select -AID A0000*****0000
Command --> 00A4040007A0000*****0000
Wrapped command --> 00A4040007A0000*****0000
Response <-- 6F658408A0000*****000000A559734A06072A864886FC6B01600C060A2A864886FC6B0202*********6072A864886FC6B03640B06092A864886FC6B040255650B06092B8510***********3660C06
send_apdu -APDU 80CA9F7F00
Command --> 80CA9F7F00
Wrapped command --> 80CA9F7F00
Response <-- 9F7F2A4090*******************2027B384D0109************************0000C1190***************9000
send_APDU() returns 0x80209000 (9000: Success. No error.)
card_disconnect
release_context
---

Supported lines:
- 'card_connect' - New session with card.
- 'Command -->' - APDU Request hexadecimal string.
- 'Response <--' - APDU Response hexadecimal string.

The rest of lines be excluded.

Spaces withing Hexadecimal string will be excluded.


Unsupported APDU Instructions (INS) will not be processed and will be excluded too.

3) APDU script lines example


---=========================
? 3B6F00008031E06B0512**************5555

> 00A404000E
> 315041592E5359532E4444463031
< 6117
...
---

Supported lines:
- '?' - ATR hexadecimal string.
- '>' - APDU Request hexadecimal string.
- '<' - APDU Response hexadecimal string.

The rest of lines be excluded.

Spaces withing Hexadecimal string will be excluded.


Unsupported APDU Instructions (INS) will not be processed and will be excluded too.

Good luck.
Supported instructions (INS):
16: EMV, Card Block
18: EMV, Application Unblock
1E: EMV, Application Block
20: EMV, Verify
24: EMV, Pin Change/Unblock
82: EMV, External Authenticate
84: EMV, Get Challenge
88: EMV, Internal Authenticate
A4: EMV, Select
A8: EMV, Get Processing Options (GPO)
AE: EMV, Generate AC
B2: EMV, Read Record(s)
C0: EMV, Get Response
CA: EMV, Get Data
XX: Undefined Command/Response

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy