Description
This module attempts to gain root privileges by blindly injecting into the session user's running shell processes and executing commands by calling `system()`, in the hope that the process has valid cached sudo tokens with root privileges.
The system must have gdb installed and permit ptrace.
This module has been tested successfully on:
Debian 9.8 (x64); and CentOS 7.4.1708 (x64).
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 exploit/linux/local/ptrace/sudo_token_priv_escmsf undefined(sudo_token_priv_esc) > show actions ...actions...msf undefined(sudo_token_priv_esc) > set ACTION < action-name >msf undefined(sudo_token_priv_esc) > show options ...show and set options...msf undefined(sudo_token_priv_esc) > 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