Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export_site-tree_URLs.js #450

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

export_site-tree_URLs.js #450

wants to merge 1 commit into from

Conversation

a6k8s4
Copy link

@a6k8s4 a6k8s4 commented Jun 7, 2024

This script can export all the Spidered/Scanned URLs from the site tree for a web-application/site while automation job is on the go. The script can work on both GUI & CLI with integration with ZAP automation framework addon.

This script can export all the Spidered/Scanned URLs from the site tree for a web-application/site while automation job is on the go. The script can work on both GUI & CLI with integration with ZAP automation framework addon.

Signed-off-by: Ankush <[email protected]>
@psiinon
Copy link
Member

psiinon commented Jun 7, 2024

I'm confused - why use the API when you can access everything directly?
See https://github.com/zaproxy/community-scripts/blob/main/standalone/Traverse%20sites%20tree.js

@a6k8s4
Copy link
Author

a6k8s4 commented Jun 7, 2024

I'm confused - why use the API when you can access everything directly? See https://github.com/zaproxy/community-scripts/blob/main/standalone/Traverse%20sites%20tree.js

Hi Simon, the purpose of using ZAP API is , the format of output data are the better than the traverse sites tree script. The format is better one for logging as per the necessity. This is pretty helpful while the automation job is running from CLI.
For example.
image

@thc202
Copy link
Member

thc202 commented Jun 7, 2024

You can output any way you want while traversing the tree directly.

@thc202
Copy link
Member

thc202 commented Jun 13, 2024

Could you update the script to use the tree directly?

@a6k8s4
Copy link
Author

a6k8s4 commented Jun 14, 2024

Could you update the script to use the tree directly?

Sure.. I will update. Right now I am using the API for getting the desired result..

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

Successfully merging this pull request may close these issues.

3 participants