Change the .png to .mp3 and the music will play. New script on GitHub disguises files as images


Programmer David Buchanan has created a tweetable-polyglot-png repository on GitHub containing the script source for embedding any files in a PNG image (with some restrictions) that can be posted to Twitter. He demonstrates the work of this solution as clearly as possible: he posts images with encrypted files in his account – if you download these pictures and change their resolution to the specified one, they “turn” into completely working files.

If you download this picture and manually change the resolution of .png to .zip, and then unzip the file, a folder with the source code of the script will be created.

Image files that mask themselves in are indeed images – they are opened in file managers and loaded on the system. In other words, these are real pictures, not broken .png files.

If you download this picture and manually change the resolution .png to .mp3, and then open the file, then the famous composition by Rick Astley will play

Such scripts are not a new solution. A few years ago, polyglot type files became quite famous in the IT world. David Buchanan’s method stands out from others primarily in that images to mask other files can be published on Twitter – they will be displayed as standard images, and the integrity of their “content” will not be violated. However, the script has limitations: the weight of the final image must not exceed 3 MB, otherwise Twitter will convert the PNG image to JPEG, and nothing will come of it.

You may also like

Protesters set fire
World
Flora

Protesters set fire

At least three people were killed and four were injured when they were trapped in a regional council building, which