adds privilege escalation method for pmrun(Unix Privilege Manager 6.0)

This commit is contained in:
Kevin Clark 2017-05-19 14:24:54 -07:00 committed by Brian Coca
parent f9b836a901
commit 04073dfa9b
4 changed files with 14 additions and 6 deletions

View file

@ -119,7 +119,7 @@ def check_command(commandline):
'mount': 'mount', 'rpm': 'yum, dnf or zypper', 'yum': 'yum', 'apt-get': 'apt',
'tar': 'unarchive', 'unzip': 'unarchive', 'sed': 'template or lineinfile',
'dnf': 'dnf', 'zypper': 'zypper' }
become = [ 'sudo', 'su', 'pbrun', 'pfexec', 'runas' ]
become = [ 'sudo', 'su', 'pbrun', 'pfexec', 'runas', 'pmrun' ]
warnings = list()
command = os.path.basename(commandline.split()[0])
if command in arguments: