Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gromnitsky/zipography
Steganography with zip archives
https://github.com/gromnitsky/zipography
steganography
Last synced: about 6 hours ago
JSON representation
Steganography with zip archives
- Host: GitHub
- URL: https://github.com/gromnitsky/zipography
- Owner: gromnitsky
- Created: 2020-08-22T13:48:28.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-27T13:32:38.000Z (about 4 years ago)
- Last Synced: 2024-04-28T19:45:06.193Z (7 months ago)
- Topics: steganography
- Language: Ruby
- Homepage:
- Size: 78.1 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Zipography
Steganography with zip archives: hide a blob of data within an
archive. For typical file archivers (7-zip, WinRAR, File Roller, &c) or
file managers (Windows Explorer), the blob is invisible.$ gem install zipography
Limitations:
* single blob only (but you can just add another .zip as a blob);
* doesn't work w/ zip64 files (this means ~4GB max for an archive+blob
combo).## How does it work?
A blob is injected after a file section right before the 1st *central
directory header*. After that, a pointer in an *end of central
directory* record is updated to compensate the shift of the *central
directory header*.## Usage
Say we have a .zip that contains 2 files:
~~~
$ du orig.zip
12K orig.zip$ bsdtar tf orig.zip
The Celebrated Jumping Frog of Calaveras County.txt
What You Want.txt
~~~Inject a picture into the archive:
$ zipography-inject orig.zip blob1.png > 1.zip
(On Windows, use `-o 1.zip`, instead of a redirection.)
Is it visible? It isn't:
~~~
$ bsdtar tf 1.zip
The Celebrated Jumping Frog of Calaveras County.txt
What You Want.txt$ du 1.zip
30K 1.zip
~~~(`unzip -l` prints the same, but in a much verbose form.)
Check if we have the picture in the archive:
~~~
$ zipography-info 1.zip
Payload size: 18313
Adler32: 0x6812d9f
Blob version: 1
Valid: true
~~~Extract it:
~~~
$ zipography-extract 1.zip > 1.png
$ xdg-open !$
~~~## License
MIT.