Hello, For the sake of completeness, someone should mention Philippe Biondi's ShellForge. Old stuff, but very neat. http://www.secdev.org/projects/shellforge/ It fits exactly your needs (C -> shellcode), however I am not sure if it has been ported for GCC 4.x yet. Regards, - Nicolas RUFF