you can writing shellcode in c, and then compile it to shellcode directly.
and extra feature is debugging shellcode with gdb and c source code.
# writing shellcode in C
vim payload.c# compile to shellcode
make# run the shellcode
make run# run with debugger
make debugdebug will launch pwndbg by default, so u can debug ur shellcode with your c source code like fallowing picture shows.
