New answers tagged gcc
Do xor 0 and exit() linux syscall instead of nop since the argv ends with a null byte opcode, thats the cause for segfault
In the proposed example, the program is executing a nop sled consisting of \x90. After this nop sled executes, it does not return to main, and therefore crashes with a Segmentation fault. Consider learning more assembler, and most importantly, use GDB to debug segmentation faults.
Top 50 recent answers are included