Python just keeps amazing me, the following code is all you need to have a proxy up and running in like 10 seconds
from flask import Flask from flask import request import requests app = Flask(__name__) hosttorequest = 'www.cnn.com' @app.route('/') def root(): r = requests.get('http://'+hosttorequest+'/') return r.content @app.route('/<path:other>') def other(other): r = requests.get('http://'+hosttorequest+'/'+other) return r.content if __name__ == '__main__': app.run(host='0.0.0.0', port=80)
Now this sure makes it easy to start hiding some stuff in there. To get it up and running just do: sudo python filename.py
I’d guess it depends on the location from which the javascript is obtained. Using a proxy like burp or maybe using wireshark you should be able to debug where it goes wrong.
thats real cool thank you.
Only it doesnt seems to deliver Javascript etc.
How can we implement that?
Amazing idea.