; Program to start the shell on x86 Linux ; Author: illustrissimus ; To build and run: ; nasm -f elf32 -o s32.o s32.asm ; ld -m elf_i386 -o s32 s32.o; strip -s s32 ; ./s32 ; To inspect: ; objdump -M intel -d s32 global _start section .text _start: xor eax, eax push eax ; "\0" push 0x68732f6e ; "hs/n" push 0x69622f2f ; "ib//" mov al, 0x0b ; execve mov ebx, esp ; pathname -> "//bin/sh" xor ecx, ecx ; argv = NULL xor edx, edx ; envp = NULL int 0x80