· 6 years ago · Nov 12, 2019, 09:08 PM
11. Make sure python3 and python3-pip are installed (sudo apt install python3 python3-pip)
2
32. Install python dependencies (pip3 install requests python-owasp-zap-v2.4)
4
53. Navigate to folder with zapproxy.py
6
74. Make script executable (sudo chmod +x zapproxy.py)
8
95. You can now run it with ./zapproxy.py
10
11Before you run it, make sure you open the script and set the first three variables.
12Instructions are also in the script.
13
14You need to set the target URL, the ZAP API Key, and the path to the ZAP script.
15
16api_key example: 'r86avp0g88lcjxas2mpbfpcj'
17(Find the API key by first opening the ZAP GUI the normal way, then going to Tools -> Options -> API and copying the API key there. You must now exit out of the ZAP GUI.
18
19target_url example: 'https://padss.oneshield.com/oneshield/index.jsp#gateway'
20
21zap_path example: '/home/user/Downloads/ZAP_2.8.1/zap.sh'