December 2017
Intermediate to advanced
364 pages
7h 30m
English
This code is also available on GitHub (https://github.com/appsecco/ansible-module-owasp-zap). All comments, metadata, and documentation doctstrings have been removed from this listing:
try: from zapv2 import ZAPv2 HAS_ZAPv2 = Trueexcept ImportError: HAS_ZAPv2 = False from ansible.module_utils.basic import AnsibleModuleimport timedef run_module(): module_args = dict( host=dict(type='str', required=True), target=dict(type='str', required=True) ) result = dict( changed=False, original_message='', message='' ) module = AnsibleModule( argument_spec=module_args, supports_check_mode=True ) if not HAS_ZAPv2: module.fail_json(msg = 'OWASP python-owasp-zap-v2.4 required. pip install python-owasp-zap-v2.4')if module.check_mode: ...
Read now
Unlock full access