Skip to content

Commit 854894c

Browse files
committed
Update for ZAP 2.16.0
1 parent 21d9ba3 commit 854894c

37 files changed

+293
-35
lines changed

src/zapv2/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,11 @@
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
52+
from .postman import postman
5153
from .pscan import pscan
5254
from .replacer import replacer
5355
from .reports import reports
@@ -111,9 +113,11 @@ def __init__(self, proxies=None, apikey=None, validate_status_code=False):
111113
self.httpsessions = httpSessions(self)
112114
self.localProxies = localProxies(self)
113115
self.network = network(self)
116+
self.oast = oast(self)
114117
self.openapi = openapi(self)
115118
self.params = params(self)
116119
self.pnh = pnh(self)
120+
self.postman = postman(self)
117121
self.pscan = pscan(self)
118122
self.replacer = replacer(self)
119123
self.reports = reports(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.

src/zapv2/authentication.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/authorization.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/automation.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)