Develop and test shellcodes locally.
- The source code for a tester program, to load the shellcode in memory and execute it;
- A basic shellcode example to:
openthe flag file,- Use
sendfileto send data from the flag file file descriptor to the standard output, effectively printing the flag, exitgracefully;
- An example flag file for the kit to work out of the box.
# compile the tester
gcc -o tester tester.c
# compile and extract the shellcode
as shellcode.s -o shellcode.o
objcopy --dump-section .text=shellcode shellcode.o
# run the shellcode using the tester
cat shellcode | ./tester
This repo is just a formatting of the snippets provided by @zardus during the Computer Systems Security (CSE466) class at ASU.