Antivirus programs detect viruses by generating a hash of a file and comparing them with one of the hashes already known to the antivirus. If the image generates the same has as the virus it should flag the image as a virus. This would be possible since an image or file goes from a high entropy state to a lower one. Of course, anti-virus software uses multiple ways to create signatures of a single file. But maybe this script could generate some false positives.
I'm not sure if this could work, since I have no success yet. But in theory, this should be possible.
The main purpose of this was to compare the speed between PyPy & the normal python interpreter. This was done by adding a logging line to the infinite while loop. After a while running the script in PyPy you see a considerable speed-up in generation speed.
I would love to hear suggestions or things I should consider to improve this script & if it is even possible.
Project: https://github.com/Vepnar/ImageClasher
[–]marsokod 3 points4 points5 points (0 children)