I can examine a payload using libemu (sctest) and ndisasm, like this :
msfvenom -p linux/x86/shell_bind_tcp -f raw | ./sctest -vvv -Ss 1000
msfvenom -p linux/x86/shell_bind_tcp -f raw | ndisasm -u -
And I'd also like to debug the payload with gdb.
So I create an elf executable :
msfvenom -p linux/x86/shell_bind_tcp -a x86 --platform linux -f elf > payloadexec
But running the payloadexec leads to permission denied.
./payloadexec
bash: ./payloadexec: Permission denied
chmod +x payloadexec
you will make the file executable.