c - Shellcode: perform 2 execve() calls -
i trying write shellcode in assembly. need perform /usr/bin/killall
command , /usr/bin/wget
command. have both commands running in shellcode execve()
syscall. want combine these 2, not possible because program exits when first execve()
call executed. (from man pages of execve()
: execve()
not return on success).
how can perform 2 execve()
calls? or there way call both /usr/bin/killall
, /usr/bin/wget
same shell code?
greets , in advance!
when use exec-family of functions, program call substituted current process. when first execve-call made, entire process image disappears, , second call never made. around must fork process before calling execve.
Comments
Post a Comment