Compare commits

..

No commits in common. "b38929a9f72e24417721da6ca983b96a61e218d2" and "7316d178dcf0d636025f936dd961df31365d9366" have entirely different histories.

7
info-dumper.sh Executable file → Normal file
View File

@ -28,13 +28,8 @@ lspci >> /tmp/rpc-dump.txt
printf "\n uptime:" >> /tmp/rpc-dump.txt printf "\n uptime:" >> /tmp/rpc-dump.txt
uptime >> /tmp/rpc-dump.txt uptime >> /tmp/rpc-dump.txt
# Remove non system user names on system # Remove all user names on system
getent passwd | while IFS=: read -r name password uid gid gecos home shell; do getent passwd | while IFS=: read -r name password uid gid gecos home shell; do
# System accounts shouldn't be redacted, as well as some user accounts
if (( $uid < 1000 )); then
continue
fi
cat /tmp/rpc-dump.txt | awk -v user="$name" '{gsub(user, "[REDACTED]"); print}' | tee /tmp/rpc-dump.txt &>/dev/null cat /tmp/rpc-dump.txt | awk -v user="$name" '{gsub(user, "[REDACTED]"); print}' | tee /tmp/rpc-dump.txt &>/dev/null
done done