Last active
January 12, 2017 09:21
-
-
Save JohnPreston/6d7a38b578371ba4f76b707c3fa430dc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
cd /var/log ; for i in `ls -l | grep drw | awk '{print $NF}'`; do cd $i; for j in `ls | more` ; do cat /dev/null > $j ; done ; cd - ; done | |
rm -rfv /etc/udev/rules.d/* | |
rm -rfv /etc/ssh/ssh_host_* | |
cd $HOME | |
rm -rfv .bash_history | |
rm -rf .ssh/authorized_keys | |
history -c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment