I'm learning about stenography and found this example.
I've followed the instructions but when I write out a new zip file after changing the filename inside the file I get this:
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
note: nospaces.zip may be a plain executable, not an archive
unzip: cannot find zipfile directory in one of nospaces.zip or
nospaces.zip.zip, and cannot find nospaces.zip.ZIP, period.
I found that I could use
zip -FF --out to 'fix' the zip file and extract the embedded contents but would like to understand what I might be doing wrong when saving the contents of the original file between 0x504B0304 and 0x506B0506
I got the same results in WinHex (32bit Windows 10 VM) and HexFiend (OSX 10.10.5 - 64bit.)
Can anyone suggest what I might have done wrong when editing the file?