Hacktricks Doas Work
cat /etc/doas.conf
Unlike sudo -l , which lists allowed commands for the current user, doas does not always provide a convenient "list allowed commands" flag that works reliably for non-root users unless specific permissions are granted. However, the configuration file is often world-readable by default. hacktricks doas
permit nopass user1 as root cmd /bin/mount cat /etc/doas
doas -u root /bin/bash # or doas -s
A typical rule looks like this:
In the world of Linux privilege escalation, sudo has traditionally been the giant in the room. However, as security best practices evolve, many modern systems and hardened environments are shifting toward simpler, less error-prone alternatives. Enter . cat /etc/doas.conf Unlike sudo -l