Macos Python Env Injection

macOS Python application injection via PYTHONWARNINGS and BROWSER environment variables. Use this skill whenever you need to achieve code execution through Python on macOS, especially when you have write access to environment variables or can influence how Python is invoked. Trigger this for privilege escalation scenarios, CTF challenges involving Python, or when you need to bypass Python's isolated mode (-I flag). This technique works by exploiting how Python processes warning configurations and browser handlers.

abelrguezr Updated

File contents

abelrguezr/hacktricks-skills/tree/main/skills/macos-hardening/macos-security-and-privilege-escalation/macos-proces-abuse/macos-python-applications-injection commit 18334cc863

Frequently asked questions

npx skillmds@latest add abelrguezr/macos-python-env-injection