|
|
|
|
|
by jester23947
1414 days ago
|
|
I really like this article about FreeBSD. One really nice feature that is not cover though is to set the immutable flags on some binaries with the command chflags. It's possible to boot your very secure system into securemode level 1 or higher. In this mode, it's impossible to delete those files. rm -rf /* has very limited damage.
chmod -R 0000 /* won't touch chmod and all kind of ooops become much less destructive. It's probably not useful in all scenarios, but definitely some systems deserve to never be touch live. Automation, scada, super important core backbone systems. FreeBSD is the power to serve. It deserves more credits. |
|
I picked this little trick up watching a red team discuss how they set themselves persistence on the target system by making /etc/shadow immutable this way.. Fun bit is, root can't even remove the file until the flag is removed, and you can't see the immutable flag on the file unless you know what you are looking for via lsattr.