<div dir="ltr"><div><div><div><div><div><div><div><div>Greetings,<br><br></div>I have been working with wireshark and SIMtrace.<br></div>And decided to extended the dissector for 'GET RESPONSE' (mf/df/ef) and 'STATUS' - according to the ETSI 11.11 Section 9.2.1 Page 39 - 41 and Page 46 (Definitions and Codings for response params) <br>Keeping update with latest wireshark commits.<br><br></div>I would like to commit to their gerrit.<br></div>Please could you let me know here -  if the output is as expected.<br></div><div>Let me know your views/comments on the output so I can change it before commit.<br><br></div><div>Also code can be viewed here '<a href="https://github.com/GerardPinto/wireshark">https://github.com/GerardPinto/wireshark</a>' (properly forked and synced with upstream) or <br>reviewed by wireshark gerrit (Once I get your views on the output).<br></div><br>(1) Get Response MF/DF:<br><br>GSM SIM 11.11<br>    1010 .... = Class Coding: ISO/IEC 7816-4 unless stated otherwise (0xa)<br>    .... 00.. = Secure Messaging Indication: No SM used between terminal and card (0x0)<br>    .... ..00 = Logical Channel number: 0<br>    Instruction: GET RESPONSE (0xc0)<br>    Length of Expected Response Data: 32<br>    RFU: 0x00<br>    Total amt of memory not allocated to any of the DFs or EFs under the selected dir: 0x00<br>    File ID: DF.GSM (0x7f20)<br>    Type of File: DF (0x02)<br>    RFU: 0000000000<br>    Length of following data: 19<br>    GSM Specific Data<br>        File Characteristics: 0xb3, Clock Stopping Indication: Not Allowed - unless at low level, Frequency Required for ENVELOPE cmd /AUTH algo, CHV1 Status<br>            .... 00.1 = Clock Stopping Indication: Not Allowed - unless at low level (0x1)<br>            .... ..1. = Frequency Required for ENVELOPE cmd /AUTH algo: 13/4 Mhz<br>            .011 .... = RFU: 0x3<br>            1... .... = CHV1 Status: Enabled<br>        DFs in Current Directory: 0<br>        EFs in Current Directory: 41<br>        Number of CHVs, UNBLOCK CHVs and administrative codes: 4<br>        RFU: 0x00<br>        CHV1 status: 0x83, Secret Code initialized<br>            .... 0011 = False presentations remaining ('0' means blocked): 3<br>            .000 .... = RFU: 0x0<br>            1... .... = Secret Code initialized: Yes<br>        UNBLOCK CHV1 Status: 0x8a, Secret Code initialized<br>            .... 1010 = False presentations remaining ('0' means blocked): 10<br>            .000 .... = RFU: 0x0<br>            1... .... = Secret Code initialized: Yes<br>        CHV2 Status: 0x8a, Secret Code initialized<br>            .... 1010 = False presentations remaining ('0' means blocked): 10<br>            .000 .... = RFU: 0x0<br>            1... .... = Secret Code initialized: Yes<br>        UNBLOCK CHV2 Status: 0x8a, Secret Code initialized<br>            .... 1010 = False presentations remaining ('0' means blocked): 10<br>            .000 .... = RFU: 0x0<br>            1... .... = Secret Code initialized: Yes<br>        RFU: 0x00<br>        Reserved for the Administrative Management: 030000bbda00000000<br>    Status Word: 9000 Normal ending of the command<br><br></div>(2) Get Response EF:<br><br>GSM SIM 11.11<br>    1010 .... = Class Coding: ISO/IEC 7816-4 unless stated otherwise (0xa)<br>    .... 00.. = Secure Messaging Indication: No SM used between terminal and card (0x0)<br>    .... ..00 = Logical Channel number: 0<br>    Instruction: GET RESPONSE (0xc0)<br>    Length of Expected Response Data: 15<br>    RFU: 0x00<br>    File Size: 11<br>    File ID: EF.LOCI (0x6f7e)<br>    Type of File: EF (0x04)<br>    EF response Byte 8: RFU: 00<br>    Access Condition Byte 9: 0x00, UPDATE: Always (ALW), READ/SEEK: Always (ALW)<br>        .... 0000 = UPDATE: Always (ALW) (0x0)<br>        0000 .... = READ/SEEK: Always (ALW) (0x0)<br>    Access Condition Byte 10: 0x14, INCREASE: Administrative Authority (ADM), RFU: Card Holder Verification1 (CHV1)<br>        .... 0100 = INCREASE: Administrative Authority (ADM) (0x4)<br>        0001 .... = RFU: Card Holder Verification1 (CHV1) (0x1)<br>    Access Condition Byte 11: 0x01, INVALIDATE: Card Holder Verification1 (CHV1), REHABILITATE: Always (ALW)<br>        .... 0001 = INVALIDATE: Card Holder Verification1 (CHV1) (0x1)<br>        0000 .... = REHABILITATE: Always (ALW) (0x0)<br>    File Status: 0x01, Validation Status<br>        .... ...1 = Validation Status: Not invalidated<br>        .... ..0. = RFU: 0x0<br>        .... .0.. = Read Update Status: Not readable or updatable when invalidated<br>        0000 0... = RFU: 0x00<br>    Length of following data: 2<br>    File Structure: Transparent (0x00)<br>    Length of a record: 0<br>    Status Word: 9000 Normal ending of the command<br><br></div>(3) STATUS ( ETSI 11.11 Section 9.2.2) says -<br></div>The response parameters/data are identical to the response parameters/data of the SELECT command in case of an MF or DF.<br><br><div><br></div><div>Thanks,<br></div><div>Gerard<br></div></div>