This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

how to tshark mms packets which are ISO/FDIS 9506-2

1

some kind person tell me "Edit->preferences->protocol->PRES and edit the users context tale enter context = 3 and OID = 1.0.9506.2.3 and your trace will be dissected as MMS."

i want to use "tshak" convert packets to text, such as "tshak -r d:sg1.pcap -V -T text > d:sg1.txt".

how to make the contents in text to appear the result of "Edit->preferences->protocol->PRES and edit the users context tale, enter context = 3 and OID = 1.0.9506.2.3", not "single-ASN1-type: A029020201B5A423A121A01F301DA01BA1191A0944455035..." ?

asked 14 Sep '11, 01:08

ylda_ljm0620's gravatar image

ylda_ljm0620
31101013
accept rate: 0%

You could add the mms tag

(01 Sep '14, 02:56) mildred

One Answer:

0

The solution is to use the preference files in ~/.wireshark

When you add a user context entry in the Wireshark GUI, it appears in the file ~/.wireshark/pres_context_list (or if you use a profile, in ~/.wireshark/profiles/PROFILENAME/pres_context_list). These are automatically picked up by tshark.

In tshark, you can use a profile by setting the -C PROFILENAME command line options.

The pres_context_list file contains the table in the following format:

# This file is automatically generated, DO NOT MODIFY.
"3","1.0.9506.2.1"

You can use a script to populate this table, in a profile if you want to keep out from wireshark preferences:

mkdir -p ~/.wireshark/profiles/tshark-mms
echo "\"3\",\"1.0.9506.2.1\"" >> ~/.wireshark/profiles/tshark-mms/pres_context_list

Then, run tshark with:

tshak -C tshark-mms -r d:sg1.pcap -V -T text > d:sg1.txt

I waanted to do exactly the same thing, and it worked for me. Adjust the values in the table for your specific case. You can find the mapping between the identifier 3 and 1.0.9506.2.1 (that's what I have in my specific case) using the following steps:

  • start the capture before the MMS session starts
  • Start the MMS session on the network
  • Stop the capture
  • Look at the very first MMS message captured (you can use the Filter TCP stream feature to locate it easily, the protocol column in wireshark must show "MMS")
  • The mapping can be found in:

    • the pres protocol "ISO 8823 OSI Presentation Protocol"
    • pres.cptype: "CP-type"
    • pres.normal_mode_parameters: "normal-mode-parameters"
    • pres.presentation_context_definition_list: "presentation-context-definition-list: 2 items"
    • one of pres.Context_list_item: "Context-list item"

Look at pres.presentation_context_identifier and pres.abstract_syntax_name. These are the two columns of the context list table.

answered 01 Sep '14, 03:08

mildred's gravatar image

mildred
11
accept rate: 0%