sudo

Linux Privesc

Python Library Hijacking for Privilege Escalation on Linux

Abuse writable modules, PYTHONPATH, and sys.path ordering to hijack imports in privileged Python scripts and escalate to root.