title: Using scapy.packet.raw
body: <p>I am sniffing packet with Scapy and I get the raw bytes:</p>
  
  <pre><code> t = packet[TCP].payload
  print(type(t))
  </code></pre>
  
  <p>type tells me that the content here is  and the output is: </p>
  
  <blockquote>
    <p>b'\x16\x03\x03\x01\x0b\x00\x00\x00\x00\x00\x00\x00H\xe2\xc9\x150\xc7\x92\x18\x8d\xf2~5x\xb2bU\xd0\xf2\x97\xe1\xc5\xc0na\x9f\x9d>Dnv\xa9X\xb18\r\x03\xdeuN8\xaf\xfb/\xd3^:\x1c\xd7\x984\xbbvn~8\x03\x16\t\x14'</p>
  </blockquote>
  
  <p>I cannot use the binascii.hexlify, etc to convert this to hexadecimal because the data type is not string, int, or bytes.</p>
  
  <p>Anyone have a solution to convert this to either bytes, hex string, something like this?</p>
  
  <blockquote>
    <p>16030102</p>
  </blockquote>