I have the hex string for the SMS bearer data, GSM MAP, etc part of a network capture. Rather than providing an entire capture file to the Wireshark application, I just want to provide the hex stream of the SMS bearer data for decoding. Does Wireshark provide tools or an API for such a task? For example, below I have provided the hex string for the GSM Mobile Application and GSM SMS TPDU parts of a packet capture. It is an SMS-SUBMIT request which I have manually decoded. 0x3045840891150009880132008208917535f150f239f2042f3d000a9132695403000011411090513032002074747a0e4acf416110bd3ca783ccf2771b44479741d120885e0eb743
I am hoping that I don't have to go spelunking through ANSI/GSM specification documents, since Wireshark has probably already done that... asked 09 Jan '14, 08:53 tongerny |
One Answer:
Hi, you can do this with some manual steps:
Note that to call directly the GSM SMS dissector, you need to use a Wireshark 1.11.2 or later development version. Good luck, Pascal. answered 10 Jan '14, 08:46 Pascal Quantin |
Nice! It worked. Thanks.
I do have another related question though. Can this be done using a command line tool?
For example, I would like to be able to display GSM MAP in human readable format via a Perl script. As a debugging tool.
Yes it can be done using a small script / program. You need to:
generate the text file
call text2pcap to generate a pcap file from the text file:
text2pcap -D -l 147 input.txt output.pcap
(if you want to use User 0 link type)call tshark and specifying how to decode the user DLT value as show here: https://ask.wireshark.org/questions/24474/user_dlt-option-in-tshark