Linux x86_64 Assembly works standalone, but Segfaults when ran as shellcode in C
I wrote a NASM program that uses the execve system call to run wget inside a newly spawned shell and execute the retrieved page:
[bits 64]
global _start
section .text
_start:
xor rcx, rcx
push rcx ; first 4
mov rcx, &qu… Continue reading Linux x86_64 Assembly works standalone, but Segfaults when ran as shellcode in C