Creation of an Intercepting Proxy Script in Python 3 with an interpreter with basic command.
Install the python module needed
pip -r install requirements.txt
Install the local certificate:
This script will create the necessary certificate but you need to install the certificate on the browser for launch purp.
Activate the proxy on the browser configuration on the port 8080 using browser add-on (for example use foxyproxy with firefox browser)
Now we need to add the certificate on the browser. Launch purp
Then visit the site
Allow the installation of the cerficate on the browser, it must be http and not https otherwise it will not intall the certificate on the browser.
There are two different mode:
it will start the proxy in sniffing mode so you can see all the request and response. Use the command help for the list of command availaible in the interpreter.
If you want to launch purp in intercepting mode add the i flag.
python purp.py -i
The proxy will catch the request and you can decide to go on or modify the request and see the response in the console and on the browser.