All Projects → perfaram → pdf-zip-nes-polyglot

perfaram / pdf-zip-nes-polyglot

Licence: other
PDF/ZIP/NES polyglot file generator (PoC||GTFO 0x14-style)

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pdf-zip-nes-polyglot

magrrite
Generate ASCII art from any image
Stars: ✭ 21 (+10.53%)
Mutual labels:  ascii-art
AsciiArt
A tool written in go to translate picture to ascii text and image.
Stars: ✭ 35 (+84.21%)
Mutual labels:  ascii-art
asciimare
3D engine powered by ASCII art
Stars: ✭ 47 (+147.37%)
Mutual labels:  ascii-art
zzlib
zlib-compressed file depacking library in Lua
Stars: ✭ 44 (+131.58%)
Mutual labels:  zip
TextGraphic
TextGraphic is a framework for creating Textual Graphics. It provides layers, styling, rich color, text justification, layouts, tables, view-ports, transparency, etc.
Stars: ✭ 83 (+336.84%)
Mutual labels:  ascii-art
ViaCEP
The ViaCEP API/webservice .NET client
Stars: ✭ 21 (+10.53%)
Mutual labels:  zip
iupa2
Funcoding project - IUPA2 stands for 'InterfacceUtentePerArtistiASCII' aka 'User Interfaces for ASCII Artists'
Stars: ✭ 29 (+52.63%)
Mutual labels:  ascii-art
Backdoor
A backdoor that runs on Linux and Windows
Stars: ✭ 36 (+89.47%)
Mutual labels:  zip
QArchive
Async C++ Cross-Platform library that modernizes libarchive using Qt5 🚀. Simply extracts 7z 🍔, Tarballs 🎱 and other supported formats by libarchive. ❤️
Stars: ✭ 66 (+247.37%)
Mutual labels:  zip
VszLib
7-zip VB6 Helper
Stars: ✭ 35 (+84.21%)
Mutual labels:  zip
AsciiBird
ASCII version of the addictive Flappy Bird game.
Stars: ✭ 34 (+78.95%)
Mutual labels:  ascii-art
ascii-art
ASCII art images for Neofetch (and beyond)
Stars: ✭ 27 (+42.11%)
Mutual labels:  ascii-art
qlZipInfo
MacOSX QuickLook Generator for zip, jar, tar, tar.gz (.tgz), tar.bz2 (.tbz2/.tbz), tar.Z. xar (.xar, .pkg), debian (.deb), RedHat Package Manager (.rpm), 7zip (.7z), xz, Microsoft cabinet (.cab), gzip (.gz), lha, BinHex 4.0 (.hqx), and Stuffit (.sit) archives, and ISO9660 images
Stars: ✭ 47 (+147.37%)
Mutual labels:  zip
python-art
A ZTM Challenge for Hacktoberfest 2019
Stars: ✭ 25 (+31.58%)
Mutual labels:  ascii-art
jpgtxt
Generating jpg files that can be viewed both in image viewer and text editor (as ASCII art)
Stars: ✭ 24 (+26.32%)
Mutual labels:  ascii-art
ZeeArchiver
Zee is an efficient and simple to use Android Archiver and decompressor. It can decompress and compress from-to all the formats supported by the well known 7zip utility. Copyright © 2018 Mahmoud Galal , for support contact me:[email protected]
Stars: ✭ 35 (+84.21%)
Mutual labels:  zip
asciju
Conversion of Image, video, text into ASCII format
Stars: ✭ 11 (-42.11%)
Mutual labels:  ascii-art
wechit
WeChat in Terminal (微信终端版)
Stars: ✭ 74 (+289.47%)
Mutual labels:  ascii-art
asm16 projects
My small projects writen in 16 bit asm (NOTE: those are my practice projects that I wrote when I was 15, I give no warranty for this code!)
Stars: ✭ 20 (+5.26%)
Mutual labels:  ascii-art
zip install
Mit diesem AddOn kannst du gezippte AddOns oder PlugIns einfach im Backend hochladen und installieren.
Stars: ✭ 32 (+68.42%)
Mutual labels:  zip

PDF-ZIP-NES polyglot file generator

Run with (using the included sample files) :

./gen_poly.py --out magic.pdf --in "CAMUS, Albert - The Stranger.pdf" --message monalisa_joconde_ascii.txt --zip hyeronimus_bosch.jpg --header sample.nes

Let's break this up :

  • --out is the path/name of the resulting file – which will be a perfectly valid PDF file
  • --in is your original PDF file
    • in my example : The Stranger, by Camus
  • --message is the plaintext message that should appear when the resulting file will be opened in a hex editor, or directly cat-ed in a terminal
    • in my example : a splendid rendition of the Mona Lisa in ASCII
    • additional feature : a command to directly output this message (and only this message without any surrounding gibberish) will be added just before the message itself
      • this command looks like tail -c +offset of message in file magic.pdf | head -c length of message
  • --zip is the (list of) file(s) that are to be zipped and appended in the original PDF
    • in my example : a famous painting by Hyeronimus Bosch
    • additional feature : when unzipped, the original PDF will also appear, although it is not duplicated in the resulting file – ain't this magic :)
  • --header is the file that is to be included at the beginning of the file, before the PDF itself
    • in my example : a NES game, for emulators. So that you can also the PDF in an emulator !

Still, with all this stuff appended to and included at the beginning of the PDF, it stays valid and viewable in any standard PDF viewer (such as Adobe Reader, Preview on macOS, etc...) All of this is possible thanks to the fact that the PDF header does not have to be at the beginning of the file, for it to be a valid PDF.

Inspired by PoC||GTFO-0x14, though this would seem very basic to @angea

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].