I tried this:
tcpdump -s 1500 -A -l -i eth0 '(port 6667) and (length > 74)'
I need only the ascii part of it. How do I remove the rest?
|
|
I'm not sure about the exact syntax for |
|||
|
|
|
A quick and dirty way to do this is to filter the output through strings:
Sometimes you don't have other tools and for a quick peek into the payload this is enough. It's no good if you need the exact payload for injection or an exact analysis, of course. |
|||
|
|
|
If you need only the ASCII part you can use: |
||||
|
|
|
I had the same problem last week - I used the wireshark gui instead and did a "copy readable ascii" for the interesting packets. I was (successfully) trying to pin down a problem with a http request to a web-service and its XML-answer. |
|||
|
|