Skip to content

Commit fcd2782

Browse files
committed
Update for ZAP 2.16.0
1 parent 352e6cc commit fcd2782

39 files changed

+373
-219
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ on:
55
branches:
66
- main
77
pull_request:
8-
workflow_dispatch:
98

109
jobs:
1110
build:
1211
runs-on: ubuntu-latest
1312
strategy:
1413
fail-fast: false
1514
matrix:
16-
python-version: [3.9, "3.10", "3.11", "3.12"]
15+
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
1716

1817
steps:
1918
- uses: actions/checkout@v4
@@ -22,7 +21,7 @@ jobs:
2221
python-version: ${{ matrix.python-version }}
2322
- run: |
2423
python -m pip install --upgrade pip
25-
pipx install poetry==1.8.0
24+
pipx install poetry==1.7.0
2625
- run: poetry install
2726
- run: poetry run pylama
2827
- run: poetry run py.test

poetry.lock

Lines changed: 124 additions & 179 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ classifiers = [
2323
"Intended Audience :: Developers",
2424
"Intended Audience :: Information Technology",
2525
"Programming Language :: Python :: 3",
26+
"Programming Language :: Python :: 3.8",
2627
"Programming Language :: Python :: 3.9",
2728
"Programming Language :: Python :: 3.10",
2829
"Programming Language :: Python :: 3.11",
@@ -34,7 +35,7 @@ packages = [
3435
]
3536

3637
[tool.poetry.dependencies]
37-
python = "^3.9"
38+
python = "^3.8"
3839
requests = "^2.31.0"
3940
six = "^1.16.0"
4041

@@ -44,7 +45,6 @@ pytest = "^8.2.0"
4445
mock = "^5.1.0"
4546
PyHamcrest = "^2.1.0"
4647
requests-mock = "^1.12.1"
47-
setuptools = "^75.3.0"
4848

4949
[tool.pylama]
5050
linters = "pyflakes"

src/zapv2/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
from .httpSessions import httpSessions
4646
from .localProxies import localProxies
4747
from .network import network
48+
from .oast import oast
4849
from .openapi import openapi
4950
from .params import params
5051
from .pnh import pnh
@@ -111,6 +112,7 @@ def __init__(self, proxies=None, apikey=None, validate_status_code=False):
111112
self.httpsessions = httpSessions(self)
112113
self.localProxies = localProxies(self)
113114
self.network = network(self)
115+
self.oast = oast(self)
114116
self.openapi = openapi(self)
115117
self.params = params(self)
116118
self.pnh = pnh(self)

src/zapv2/accessControl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# ZAP is an HTTP/HTTPS proxy for assessing web application security.
44
#
5-
# Copyright 2022 the ZAP development team
5+
# Copyright 2025 the ZAP development team
66
#
77
# Licensed under the Apache License, Version 2.0 (the "License");
88
# you may not use this file except in compliance with the License.

src/zapv2/acsrf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# ZAP is an HTTP/HTTPS proxy for assessing web application security.
44
#
5-
# Copyright 2022 the ZAP development team
5+
# Copyright 2025 the ZAP development team
66
#
77
# Licensed under the Apache License, Version 2.0 (the "License");
88
# you may not use this file except in compliance with the License.

src/zapv2/ajaxSpider.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# ZAP is an HTTP/HTTPS proxy for assessing web application security.
44
#
5-
# Copyright 2022 the ZAP development team
5+
# Copyright 2025 the ZAP development team
66
#
77
# Licensed under the Apache License, Version 2.0 (the "License");
88
# you may not use this file except in compliance with the License.
@@ -150,6 +150,13 @@ def option_click_elems_once(self):
150150
"""
151151
return six.next(six.itervalues(self.zap._request(self.zap.base + 'ajaxSpider/view/optionClickElemsOnce/')))
152152

153+
@property
154+
def option_enable_extensions(self):
155+
"""
156+
This component is optional and therefore the API will only work if it is installed
157+
"""
158+
return six.next(six.itervalues(self.zap._request(self.zap.base + 'ajaxSpider/view/optionEnableExtensions/')))
159+
153160
@property
154161
def option_random_inputs(self):
155162
"""
@@ -283,6 +290,12 @@ def set_option_click_elems_once(self, boolean, apikey=''):
283290
"""
284291
return six.next(six.itervalues(self.zap._request(self.zap.base + 'ajaxSpider/action/setOptionClickElemsOnce/', {'Boolean': boolean})))
285292

293+
def set_option_enable_extensions(self, boolean, apikey=''):
294+
"""
295+
This component is optional and therefore the API will only work if it is installed
296+
"""
297+
return six.next(six.itervalues(self.zap._request(self.zap.base + 'ajaxSpider/action/setOptionEnableExtensions/', {'Boolean': boolean})))
298+
286299
def set_option_event_wait(self, integer, apikey=''):
287300
"""
288301
Sets the time to wait after an event (in milliseconds). For example: the wait delay after the cursor hovers over an element, in order for a menu to display, etc.

src/zapv2/alert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# ZAP is an HTTP/HTTPS proxy for assessing web application security.
44
#
5-
# Copyright 2022 the ZAP development team
5+
# Copyright 2025 the ZAP development team
66
#
77
# Licensed under the Apache License, Version 2.0 (the "License");
88
# you may not use this file except in compliance with the License.

src/zapv2/alertFilter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# ZAP is an HTTP/HTTPS proxy for assessing web application security.
44
#
5-
# Copyright 2022 the ZAP development team
5+
# Copyright 2025 the ZAP development team
66
#
77
# Licensed under the Apache License, Version 2.0 (the "License");
88
# you may not use this file except in compliance with the License.

src/zapv2/ascan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# ZAP is an HTTP/HTTPS proxy for assessing web application security.
44
#
5-
# Copyright 2022 the ZAP development team
5+
# Copyright 2025 the ZAP development team
66
#
77
# Licensed under the Apache License, Version 2.0 (the "License");
88
# you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)