
Trailing data
Find and carve out bytes appended after a PNG/JPEG/PDF/ZIP/GIF's real end marker, a common place to smuggle a second payload.
Trailing data walks a PNG, JPEG, PDF, ZIP or GIF's own structure to find its real end marker. That marker is IEND, EOI, the last %%EOF, the central-directory record, or the GIF trailer byte. It reports whatever bytes follow that marker. Anything found gets carved into its own file rather than only counted. An unrecognised signature is refused.
Questions
What formats does it walk?
PNG, JPEG, PDF, ZIP and GIF, each walked with real container-parsing logic, not a byte-string search for the end marker.
Why not search for the marker text?
Because a marker like %%EOF or byte 0x3B can legitimately appear inside a format's own compressed payload before the real end, so a text search would find the wrong one.
What happens when trailing data is found?
It is carved out into its own separate file, in addition to reporting the byte count and offset.
What if the format is not recognised?
The tool refuses, naming that the file matches none of the five supported signatures at offset 0.
What if the end marker cannot be located?
The tool refuses, reporting the file as recognised but malformed or truncated.