Files
baremetal-basics/bsec
T

26 lines
731 B
Bash
Raw Normal View History

2026-04-14 21:50:30 +00:00
#!/bin/bash
2026-05-07 11:43:07 +00:00
## BE-SECURE
2026-05-11 12:21:33 +00:00
## 20260511-121656
2026-05-07 11:41:31 +00:00
2026-04-14 21:50:30 +00:00
sudo clear
sudo rm -rf cav.log
echo 'Updating...'
2026-05-07 11:43:07 +00:00
sudo apt install ufw gufw clamav clamtk bleachbit fail2ban
2026-04-14 21:50:30 +00:00
echo 'Checking Firewall...'
sudo ufw status
sudo ufw allow ssh
sudo ufw reload
sudo ufw enable
sudo ufw status
sudo systemctl stop clamav-freshclam.service
sudo freshclam
sudo systemctl start clamav-freshclam.service
echo 'Cleaning...'
bleachbit --clean system.tmp system.cache system.trash deepscan.tmp deepscan.thumbs_db deepscan.ds_store
echo 'Scanning...'
2026-04-27 23:04:12 +00:00
clamscan -raz --log=cav.log --bell --cross-fs --bytecode --scan-mail --phishing-sigs --heuristic-alerts --phishing-scan-urls #--detect-pua #--detect-structured #-v
2026-05-07 11:53:56 +00:00
grep --color ' FOUND ' cav.log
2026-04-14 21:50:30 +00:00
echo 'Done.'
2026-05-11 12:21:33 +00:00
read -r