Linux Kernel Exploit

Updated Jul 11, 2024

uncompress

1
2
3
4
$ file rootfs.cpio
rootfs.cpio: ASCII cpio archive (SVR4 with no CRC)

$ cpio -id -v < ../rootfs.cpio
1
2
3
4
5
6
$ file rootfs
rootfs: gzip compressed data, max compression, from Unix, original size modulo 2^32 10018816

$ mv rootfs rootfs.cpio.gz
$ gunzip ./rootfs.cpio.gz
$ cpio -id -v < ../rootfs.cpio

compress

1
$ find . | cpio -o --format=newc > ../rootfs.cpio