linux code inject

0x00 : 基础

产生一个新的进程的方式

1
2
3
sys_clone – creates a copy of the running process with or without shared resources (memory, file descriptors, etc.);
sys_execve – replaces the running process with a new one (has several variations in the C library);
fork - creates a copy of the running process but without any shared resources (Actually, both sys_fork and sys_clone come down to do_fork() function in the kernel).
,