m@xxxxxxxxxxxxxxxx wrote:
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!)
The middle button in UNIX+X means "paste current selection". The hex
dump is *highlighted*, but it's not *selected*. The hex dump pane just
a text window - try selecting the text *there*.
Note that you'll get *all* the text, including the hex offsets on the
left of each line, and the ASCII to the right of the hex.
2:- Printing packet to file. This prints the analysis, not the raw hex.
It prints what you tell it to print; the default is "Packet summary
line" and "Packet details", but you can try un-selecting them and
selecting "Packet bytes". (Again, you'll get all the text.)
BTW, if you're writing to a file, you can use Export -> as "Plain Text"
File, and it leaves out all the printing-related crap.