module

Sudo Commands

Disclosed
N/A
Created
2018-07-25

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.

Author

bcoles bcoles@gmail.com

Platform

BSD,Linux,OSX,Solaris,Unix

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_commands
msf post(sudo_commands) > show actions
...actions...
msf post(sudo_commands) > set ACTION < action-name >
msf post(sudo_commands) > show options
...show and set options...
msf post(sudo_commands) > run

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.