shellcoder is a perl application which creates c source shellcodes starting from assembly sources or executables, it can create both windows and gnu/linux shellcodes and is compatible with both 32 and 64 bit.
In order to install shellcoder, few dependencies are required, once we have access to a cpan (or cpanm) we do:
$> cd path/to/shellcoder
Now we first install cpanminus, I report the command to do it on Debian based GNU/Linux distros:
$> sudo apt install cpanminus
$> cpanm --installdeps .
Let's see some usage examples:
$> perl shellcoder.pl --os linux-64 --asm-source example.asm
This will generate a C source file containing the assembly file relative shellcode.
$> perl shellcoder.pl --help
This will show a help message, where possible options are shown.