On Tue, 6 Dec 2005 m@xxxxxxxxxxxxxxxx wrote:
>
> Dear all,
>
> Is it possible to extract a datagram as hex? I've tried:
>
> 1:- Viewing datagram in the usual manner where the raw datagram is given
> in one scroll window and the analysis is given in another. Press In the
> analysis window click the top line, corresponding to the whole datagram
> and causing the whole binary datagram to be highlighted. Paste to a text
> editor by (on linux) pressing the middle button. Expected to get the one
> analysis line followed by the hex but no joy. (Happy to implement this
> behaviour if someone's willing to very patiently take me over the source
> code layout!)
>
> 2:- Printing packet to file. This prints the analysis, not the raw hex.
>
> Feel that surely people must need to extract the hex quite frequently so
> there must be a solution but I can't see it.
How about: tcpdump -xx -r capture.cap
Good luck,
Jaap