Skip to content

Commit c3f2e2b

Browse files
authored
Merge pull request #467 from thc202/updates
Update scripts/READMEs
2 parents 859f8e9 + 6e26ec1 commit c3f2e2b

File tree

5 files changed

+11
-31
lines changed

5 files changed

+11
-31
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1010
- Extender script 'ScanMonitor.js'
1111
### Changed
1212
- Add cautionary note to help and readme.
13+
- Maintenance and documentation changes.
14+
1315
### Fixed
1416
- Bug in 'Mutliple Security Header Check.js'.
1517

authentication/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ function authenticate(helper, paramsValues, credentials) {
3939
// Set the number of maximum redirects followed to 5 (default is 100). Main purpose is to prevent infinite loops.
4040
// helper.getHttpSender().setMaxRedirects(5)
4141

42-
// Allow circular redirects (default is not allow). Circular redirects happen when a request
43-
// redirects to itself, or when a same request was already accessed in a chain of redirects.
44-
// helper.getHttpSender().setAllowCircularRedirects(true)
45-
4642
helper.sendAndReceive(msg);
4743

4844
return msg;

httpsender/LogMessages.js

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,9 @@
99
// To use this script in the Docker packaged scans use the scan-hook LogRequestsHook.py
1010
// This script can be used outside of docker but if so change the /zap/wrk/ directory to be a valid local directory.
1111

12-
// 'initiator' is the component the initiated the request:
13-
// 1 PROXY_INITIATOR
14-
// 2 ACTIVE_SCANNER_INITIATOR
15-
// 3 SPIDER_INITIATOR
16-
// 4 FUZZER_INITIATOR
17-
// 5 AUTHENTICATION_INITIATOR
18-
// 6 MANUAL_REQUEST_INITIATOR
19-
// 8 BEAN_SHELL_INITIATOR
20-
// 9 ACCESS_CONTROL_SCANNER_INITIATOR
21-
// 10 AJAX_SPIDER_INITIATOR
22-
// For the latest list of values see the HttpSender class:
23-
// https://github.com/zaproxy/zaproxy/blob/main/zap/src/main/java/org/parosproxy/paros/network/HttpSender.java
12+
// 'initiator' is the component the initiated the request.
13+
// For the latest list of values see the "Request Initiator" entries in the constants documentation:
14+
// https://www.zaproxy.org/docs/constants/
2415
// 'helper' just has one method at the moment: helper.getHttpSender() which returns the HttpSender
2516
// instance used to send the request.
2617

httpsender/add-more-headers.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This HttpSender script adds headers to all messages transmitted by zaproxy,
2-
// including automated tools. Refer to the HttpSender class definition:
3-
// https://github.com/zaproxy/zaproxy/blob/main/zap/src/main/java/org/parosproxy/paros/network/HttpSender.java
4-
// for a list of 'initiator' values (although we don't use them).
2+
// including automated tools. Refer to the constants documentation:
3+
// https://www.zaproxy.org/docs/constants/
4+
// for a list of 'initiator' (Request Initiator) values (although we don't use them).
55

66
var ScriptVars = Java.type("org.zaproxy.zap.extension.script.ScriptVars");
77

selenium/README.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,9 @@ They have access to the launched browser and can interact with it, for example,
99
The util parameter has the following methods:
1010
getWebDriver() Returns the WebDriver:
1111
https://www.javadoc.io/doc/org.seleniumhq.selenium/selenium-api/3.141.0/org/openqa/selenium/WebDriver.html
12-
getRequester() Returns the identifier of the requester:
13-
1 PROXY_INITIATOR
14-
2 ACTIVE_SCANNER_INITIATOR
15-
3 SPIDER_INITIATOR
16-
4 FUZZER_INITIATOR
17-
5 AUTHENTICATION_INITIATOR
18-
6 MANUAL_REQUEST_INITIATOR
19-
8 BEAN_SHELL_INITIATOR
20-
9 ACCESS_CONTROL_SCANNER_INITIATOR
21-
10 AJAX_SPIDER_INITIATOR
22-
For the latest list of values see the HttpSender class:
23-
https://github.com/zaproxy/zaproxy/blob/main/zap/src/main/java/org/parosproxy/paros/network/HttpSender.java
12+
getRequester() Returns the identifier of the requester.
13+
For the latest list of values see the "Request Initiator" entries in the constants documentation:
14+
https://www.zaproxy.org/docs/constants/
2415
getBrowserId() Returns the browser Id, eg "firefox" or "chrome"
2516
getProxyAddress() Returns the address of the proxy
2617
getProxyPort() Returns the port of the proxy

0 commit comments

Comments
 (0)