For an assignment, I wrote the following assembly code shell_exec.asm that should execute a shell in Linux:
shell_exec.asm
section .data ; declare stuff arg0