Is there a quick tcpdump one-liner to print out a TCP stream that matches a particular substring — or, if that’s not easy, how about printing out just the single TCP packet that matches the substring?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The best option is to use ngrep rather than tcpdump. Ngrep is designed to do exactly what you’re after.