Created
March 12, 2017 21:47
-
-
Save NitescuLucian/b65f26e4db4c0f5a44cf40b390a4fd50 to your computer and use it in GitHub Desktop.
Kali Linux Hardening.
This file contains 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