-
-
Save juniotee/6ef7395d4bf12f11d8660f380c2815d8 to your computer and use it in GitHub Desktop.
Kali Linux Hardening.
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
| apt-get clean | |
| apt-get update | |
| apt-get upgrade -y | |
| apt-get dist-upgrade -y | |
| passwd | |
| apt-get install chkrootkit | |
| leafpad /etc/hostname | |
| leafpad /etc/hosts | |
| updatedb | |
| cat /etc/shadow | awk -F: '($2==""){print $1}' > ./no_password_users.txt | |
| echo Running chkrootkit. Wait! | |
| sudo chkrootkit > ./chkrootkit_log.txt | |
| apt-get install lynis | |
| apt-get -f install | |
| apt-get install lynis | |
| echo Running lynis. Wait! | |
| lynis audit system > ./lynis_log.txt | |
| netstat -tulpn > ./open_ports_log.txt | |
| echo Close Unwanted Ports using: iptables -A INPUT -p tcp --dport PORT_NUMBER -j DROP | |
| iptables -L -n -v > ./iptables_log.txt | |
| apt-get install rkhunter | |
| rkhunter --update | |
| rkhunter -c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment