Outputting hex values in python3
<p>I am writing shellcode exploits with python3. However, when I try and output some hex bytes. e.g. using the line - <code>python3 -c 'print("\x8c")' | xxd</code></p>

<p>The value in <code>xxd</code> is <code>c28c</code>, rather than the expected <code>8c</code></p>

<p>This issue does not occur in python2.</p>