I\'m practicing some buffer-overflow techniques and I came across an odd issue with sending socked data.
I have this two almost identical codes, except the fact that
You can use six.b to make it compatible with both python2 and python3:
six.b
import six ... sock.send(six.b(buffer))
https://six.readthedocs.io/#six.b