ShenCode - Extract
Extract Module
With extract it is possible to extract relevant bytes from a binary file. E.g. if you compile a shellcode as a binary o-file, this could be helpful.
python shencode.py extract --input bin.o --output shell.raw --start-offset 0 --end-offset 128