views:

272

answers:

2

April fools is coming up. I'd like to play this prank where we use an http proxy to modify images as they come through the proxy. I've been told that there are scripts/add-ons to ISA/Squid that can do this but I haven't been able to find much on my own.

Ideally, we'd like to superimpose another image on top of every .gif/.jpeg/.png that comes through the proxy. The only problem is I have no idea how to do this!

If I had my choice I'd rather do it with ISA than Squid, but beggars can't be choosers. If you can think of another way I'm open to that too!

A: 

I also dont have much idea, but i have a concept you can try.

Get a caching proxy, make it cache all pages that you want to prank.

then somehow manipulate the cache, like if the proxy caches test.jpg, go into its cache, and replace that test.jpg with another picture that is almost similar in size and dimensions.

Then after you gotta make the proxy not update its cache for a while.

Well its just a concept, hope it works ;)

tHeSiD
+3  A: 

Look here: The Upside-Down-Ternet ;)

You would need to replace the call in the script to add your additional image. ImageMagick would be a good tool for that.

0xA3