Im looking for something along the lines of this
https:// hiddencodes . word press . com /2014/10/29/hide-javascript-inside-jpeg-file/
i wanted it so it will apply on all the images on the server, not directly, if i open the img within filezilla or smth it will be normal without the script injected in it,
i am 99.9% sure this is achiveable within php and/or htaccess
its ok if the file path within the adress bar will be example . com /script.php?img=123.png but the end result when opening example . com/script.php?img=123.png by that i mean it should show exactly like it shows in example . com/123.png it should be threated like a actual png not a html ish file with <img> tags
What is this for you might ask?
well some people find it funny to sometimes steal my shit memes and reupload it to some other website so ill just put in a crypto miner idc, if you want to say that mining wont work, ¯\_(ツ)_/¯ i want this for personal expiriance and knowledge aswell so in case i think of something neat i could possibly use this with i would use that
and yes ive tried to look online, i have tried looking for the following methods
Include within htaccess
inject java code in img
i found this this might be usefull for you
https:// ****** . com /jklmnn/imagejs
and some others idk wich
Thanks anyway