shells
I started by listing all available login shells on the system using cat /etc/shells
. Then, I iterated over each shell path and checked its permissions using ls -l
, ensuring that errors were suppressed.
Next, I searched the system for SUID binaries using find / -perm -4000
, which can help identify files that run with elevated privileges. Finally, I attempted to execute /bin/rbash
with elevated privileges using find -exec
, allowing me to see if a restricted shell could be invoked without privilege reduction.
Last updated