Skip to content

Instantly share code, notes, and snippets.

@g-k
Last active March 7, 2017 21:08
Show Gist options
  • Save g-k/28278a32b3c3b422cb486b2f8537f7b3 to your computer and use it in GitHub Desktop.
Save g-k/28278a32b3c3b422cb486b2f8537f7b3 to your computer and use it in GitHub Desktop.
@@ -372,13 +372,15 @@ def main(argv):
try:
# Wait for ZAP to start
- zap = ZAPv2(proxies={'http': 'http://' + zap_ip + ':' + str(port), 'https': 'http://' + zap_ip + ':' + str(port)})
+ zap = ZAPv2(proxies={'http': 'http://' + 'localhost' + ':' + str(port), 'https': 'http://' + 'localhost' + ':' + str(port)})
for x in range(0, timeout):
try:
logging.debug ('ZAP Version ' + zap.core.version)
logging.debug ('Took ' + str(x) + ' seconds')
break
- except IOError:
+ except IOError as e:
+ logging.debug('IOError waiting for ZAP to start: %s' % e)
time.sleep(1)
@g-k
Copy link
Author

g-k commented Mar 7, 2017

pip install -v -e 'git+https://github.com/zaproxy/zap-api-python.git@master#egg=python-owasp-zap-v2.4'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment