/zipsfx

Primer on a process accessing an embedded appended ZIP via libarchive

Primary LanguageC

This example takes advantage that ZIP appended to ELF is both a valid ELF and ZIP. I use libarchive to scan the process file and then use either mmap or fread to open the entries embedded in the ZIP.

make zipsfx
make zipsfx.zip
make zipsfxzip

./zipsfx
./zipsfxzip
./zipsfxzip Makefile