section .data shellcmd db `/bin/sh`,0 argv0 dq 0 argv1 dq 0 section .text global main: extern mysyscall main: mov rdi, shellcmd ; we will need this for the first paramter and to ; manipulate argv[0] mov [argv0], rdi ; put the address of the command in argv[0] mov rsi, argv0 mov rdx, 0 mov rax, 59 syscall