cyberpatriot-linux-script/README.md
2024-11-26 11:00:08 -08:00

1.4 KiB

first add the users that are authorized to the end of usersnorm (BUT KEEP THE EXISTING ONES) (all users that should be on the system) then add any system users that might be unusually tied to the system you are currently working on (extra applications/things i might have missed)

run the command in "usefulcommands.txt" to list all users, and paste that into userstest (idk why i havent automated this yet, i havent touched this script in like a year lol)

run "debiandetox.sh", respond yes or no appropriately (read the users you are removing before you remove them, most likely it is a system user that is just there due to an extra program)

what the script does

attempts to remove common forbidden applications (outputs the removed applications to removedapps.txt, in order to allow for you to fix your fuckup)

installs and enables ufw

changes password settings for users in "/etc/login.defs"

enables tcp_syncookies in /etc/sysctl.conf

turns off root login in ssh

turns on autoupdate (IMPORTANT: SEPERATE FROM GUI AUTOUPDATE)

attempts to remove users that shouldnt be on the machine (outputs removed users to removedusers.txt)

installs and enables freshclam (currently borked, but it probably wouldnt give points anyways)

usually gets around 20 points round 1, 10 points in round 2, 5 points in round 3

usefulcommands.txt is probably going to help you more than the script tbh