Live data from Hacker News

A file that’s both an acceptable HTML page and a JPEG (2012)

lcamtuf.coredump.cx

11–20 of 72 posts

Re: A file that’s both an acceptable HTML page and a JPEG (2012)

#16
EDIT: I realize that the subject of this thread is not a polygot, but I'm leaving this comment up in case it interests someone. :/

If anyone's interested in what these are called, they are called polygots.

> In computing, a polyglot is a computer program or script written in a valid form of multiple programming languages, which performs the same operations or output independent of the programming language used to compile or interpret it.

[1] https://en.wikipedia.org/wiki/Polyglot_(computing)

Re: A file that’s both an acceptable HTML page and a JPEG (2012)

#18
post #16

EDIT: I realize that the subject of this thread is not a polygot, but I'm leaving this comment up in case it interests someone. :/ If anyone's interested in what these are called, they are called polygots. > In computing, a polyglot is a computer program or script written in a valid form of multiple programming languages, which performs the same operations or output independent of the programming language used to com…

I wouldn’t call it a polyglot as that has to deal with computer programs, no?

Re: A file that’s both an acceptable HTML page and a JPEG (2012)

#19
POC||GTFO issue 2 (from 2013) was a PDF and a bootable OS at the same time:

From section 8:

"A careful reader may have noticed that a bootable OS image was hidden in the last issue of PoC k GTFO, as one of the files in its dual PDF/ZIP structure (if you haven’t, download and extract it now!). This time, though, let’s hide it in plain sight. You will find by running ‘qemu-system-i386 -fda pocorgtfo02.pdf’ that the PDF file you are reading is also a bootable disk image."

https://greatscottgadgets.com/pocorgtfo/pocorgtfo02.pdf

And issue 3:

"This file, pocorgtfo03.pdf, complies with the PDF, JPEG, and ZIP file formats. When encrypted with AES in CBC mode with an IV of 5B F0 15 E2 04 8C E3 D3 8C 3A 97 E7 8B 79 5B C1 and a key of “Manul Laphroaig!”, it becomes a valid PNG file. Treated as single-channel raw audio, 16-bit signed little-endian integer, at a sample rate of 22,050 Hz, it contains a 2400 baud AFSK transmission."

Re: A file that’s both an acceptable HTML page and a JPEG (2012)

#20
post #14

If you think that this is interesting, you should check out Daeken's Magister: http://demoseen.com/windowpane/magister.png.html It's a PNG that's interpreted as HTML and loads itself as compressed JavaScript!

https://news.ycombinator.com/item?id=4209168

So, literally copying previous top comments on old posts is now a popular thing?

Post reply on HN