Which parameters I have to provide to tshark to filter IP packets from a specific IP address (in wireshark I use ip.src == xxx.yyy.zzz.nnn) and which parameters I need to provide to decode these packets using ssl, to do it in wireshark I use the "decode as" and in "Transport tab" I set SSL. The packages, although encoded using ssl, not come from a https connection. How can I write the content of all decoded and filtered packets to a file or to stdout ? Update: I have tried tshark n -o ssl.keylog_file:/tmp/master.txt -Y ip.src==xxx.yyy.nnn.mmm -d tcp.port==0-999999,ssl I see this Capturing on 'eth0'
How can I dump the packet content as "Follow stream" in wireshark already does ? This question is marked "community wiki". asked 31 Dec '15, 04:44 famedoro edited 13 Jan '16, 06:40 grahamb ♦ |
One Answer:
The answers to your multiple questions are (hopefully) shown below:
You may need to quote some arguments depending on the shell you're using. answered 31 Dec '15, 09:00 grahamb ♦ Thanks for your response, using -d tcp.port==8888,ssl I decode only traffic on port 8888 as ssl, but I need to decode all the traffic from a specific ip . (02 Jan '16, 04:26) famedoro I'm not aware of any method using tshark or Wireshark to decode all traffic from a particular IP as another protocol. You can use a port range in the tcp.port selector, e.g. You can also list all the selectors available using (02 Jan '16, 08:30) grahamb ♦ Possibly that version's too old. I don't have that version to check the possible arguments for you. Check the possible arguments with (12 Jan '16, 11:29) grahamb ♦ |
You should really create a different question for your new problem, as other readers now won't be able to follow your original question and my answers to those questions. In addition, if my answer has solved your original issue, please accept the answer for the benefit of other users by clicking the checkmark icon next to the answer.
This is a Q&A site, not a forum, please see the FAQ for more info.
@grahamb I'm sorry, I have posted a new question on https://ask.wireshark.org/questions/49141/how-to-show-ssl-decrypted-packet-content