From f57654b84b4cf0ffa1287034fc9f66ba200bb259 Mon Sep 17 00:00:00 2001
From: ben
Date: Tue, 18 Sep 2018 10:52:38 +0200
Subject: First public commit
---
website/index.html | 249 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 249 insertions(+)
create mode 100644 website/index.html
(limited to 'website/index.html')
diff --git a/website/index.html b/website/index.html
new file mode 100644
index 0000000..c19a2ab
--- /dev/null
+++ b/website/index.html
@@ -0,0 +1,249 @@
+
+
+
+
+
+
+ TruePolyglot
+
+
+
+
+
+
+
+
+
+
TruePolyglot
+Truepolyglot is polyglot file generator project.
+This means that the generated file is composed of several file formats. The same file can be opened as a ZIP file and as a PDF file for example.
+The idea of this project comes from work of Ange Albertini, International Journal of Proof-of-Concept or Get The Fuck Out and Julia Wolf that explain how we can build a polyglot file.
+Polyglot file can be fastidious to build, even more if you want to respect correctly file format. That's why I decided to build a tool to generate them.
+My main motivation was the technical challenge.
+
+
+
Features and changelog
+
+
+
+
Description
+
Version
+
+
+
Build a polyglot file valid as PDF and ZIP format and that can be opened with 7Zip and Windows Explorer
+
POC
+
+
+
Add a stream object in PDF part
+
POC
+
+
+
Polyglot file checked without warning with pdftocairo
+
>= 1.0
+
+
+
Polyglot file checked without warning with caradoc
+
>= 1.0
+
+
+
Rebuild PDF Xref Table
+
>= 1.0
+
+
+
Stream object with correct length header value
+
>= 1.0
+
+
+
Format "zippdf", file without offset after Zip data
+
>= 1.1
+
+
+
Polyglot file keep original PDF version
+
>= 1.1.1
+
+
+
Add "szippdf" format without offset before and after Zip data
+
>= 1.2
+
+
+
Fix /Length stream object value and PDF offset for szippdf format
+usage: truepolyglot format [options] output-file
+
+Generate a polyglot file.
+
+Formats availables:
+* pdfzip: Generate a file valid as PDF and ZIP. The format is closest to PDF.
+* zippdf: Generate a file valid as ZIP and PDF. The format is closest to ZIP.
+* szippdf: Generate a file valid as ZIP and PDF. The format is strictly a ZIP. Archive is modified.
+
+positional arguments:
+ {pdfzip,zippdf,szippdf}
+ Output polyglot format
+ output_file Output polyglot file path
+
+optional arguments:
+ -h, --help show this help message and exit
+ --pdffile PDFFILE PDF input file
+ --zipfile ZIPFILE ZIP input file
+ --verbose {none,error,info,debug}
+ Verbosity level (default: debug)
+
+TruePolyglot v1.3
+