Description
This module examines the sudoers configuration for the session user and lists the commands executable via sudo.
This module also inspects each command and reports potential avenues for privileged code execution due to poor file system permissions or permitting execution of executables known to be useful for privesc, such as utilities designed for file read/write, user modification, or execution of arbitrary operating system commands.
Note, you may need to provide the password for the session user.
Module options
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use post/multi/recon/sudo/commandsmsf undefined(commands) > show actions ...actions...msf undefined(commands) > set ACTION < action-name >msf undefined(commands) > show options ...show and set options...msf undefined(commands) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub