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

agent: mutual protection doesn't work #57

Closed jm33-m0 closed 2 years ago

jm33-m0 commented 2 years ago

https://github.com/jm33-m0/emp3r0r/blob/51639930444ecb8e21eea31db60a5a16d6230c36/core/cmd/agent/main.go#L156

jm33-m0 commented 2 years ago

After IsAgentAlive(), the PID file gets replaced with current process's PID, if we kill it, we will be killing ourselves