jm33-m0 / emp3r0r

Linux/Windows post-exploitation framework made by linux user
https://infosec.exchange/@jm33
MIT License
1.26k stars 232 forks source link

wait4 does not work #15

Closed jm33-m0 closed 3 years ago

jm33-m0 commented 3 years ago

https://github.com/jm33-m0/emp3r0r/blob/131aea90c08df2b820485d3523ea4d8c314a6a82/shellcode/guardian.asm#L25

on success, returns the process ID of the child whose state has changed; if WNOHANG was specified and one or more child(ren) specified by pid exist, but have not yet changed state, then 0 is returned. On error, -1 is returned.

And it returns 0 as I see in gdb

jm33-m0 commented 3 years ago

It turned out that I used a wrong syscall NR...