1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
--- devour.c 2020-11-10 11:18:04.550682287 +0200s @@ -14,6 +14,7 @@ char *arg; char cmd[1024] = {0}; + strcat(cmd, "$SHELL -i -c '"); while ((arg = *++argv)) { while ((arg_char = *arg++)) { if (strchr(UNSAFE_CHARS, arg_char)) @@ -22,6 +23,7 @@ } strcat(cmd, " "); } + strcat(cmd, "> /dev/null 2>&1; exit'"); system(cmd); }