I building a sniffer and I want to take the data from the Raw
layer of a packet and show it as hexdump in a wx.TextCtrl
. let's say the Raw is ABC
it will show 65 66 67
. I tried :
self.txt.SetLabelText(" ".join(map(hex,str(pkt[Raw]))))
It raises TypeError: hex() argument can't be converted to hex
Is there any known way to do it?
I am familiar with hexdump(pkt)
but it prints the hexdump and also the conversion to string and also doesn't return it..