print(scapy_packet[scapy.Raw].load) gives hex string. How to convert into readable string?
Asked
Active
Viewed 62 times
1
Rebecca
- 23
- 4
-
No, that’s not a hex string. It’s the representation of the bytes value, see [What does a b prefix before a python string mean?](https://stackoverflow.com/q/2592764) – Martijn Pieters Feb 18 '20 at 01:12
1 Answers
0
You can use below code.
print(bytearray.fromhex(scapy_packet[scapy.Raw].load).decode())
Anupam Chaplot
- 724
- 5
- 20
-
-
can you please provide the value of Raw. I also updated my answer, please see if it works. – Anupam Chaplot Feb 17 '20 at 15:07
-
-
-