inaz2 / SimpleHTTPProxy

A Simple HTTP Proxy like Python's SimpleHTTPServer module.
37 stars 21 forks source link

[Help] Injecting code into the javascript/html files? #1

Open perskes opened 6 years ago

perskes commented 6 years ago

Hey, I've used your proxy in a few test scenarios in my lab now, and it always worked like a charm! No Errors, not bugs I could tell, nothing!

But now I want to modify your "SimpleHTTPServer.py" in a way that lets me inject html or Javascript into the files, but I really don't know where to start, so I'd love if you could provide me a starting point!

To my understanding, the proxy get's the request, makes a request on it's own to the website, caches the websites locally and forwards them to the client making the initial request.

I think if you can point out the relevant parts in your Proxy-Code, It will be much easier for me!

Thank you for providing this perfectly working proxy!

perskes commented 6 years ago

Nevermind, you did a great job in the "removeiframe" file! What I could not find yet is: where to change the cache time? I want the pages to only be cached for a couple of minutes for the testing purposes. I'd love to get a response!