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

Implement getMetadata for some more Passive scripts #448

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

ricekot
Copy link
Member

@ricekot ricekot commented Jun 4, 2024

Update the following scripts to implement the getMetadata() function:

  • passive/find base64 strings.js
  • passive/Find Credit Cards.js
  • passive/Find Emails.js
  • passive/Find Hashes.js
  • passive/Find HTML Comments.js

Part of #440.

@ricekot
Copy link
Member Author

ricekot commented Jun 5, 2024

Added codeLink and helpLink to all passive scripts, which were also missed in #446.

Copy link
Member

@kingthorin kingthorin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall

Comment on lines 18 to 19
// lets make some regular expressions for well known credit cards
// regex must appear within /( and )/g
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we keep this and just move it down to L27?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tweaked

- Update the following scripts to implement the `getMetadata()` function:
  - passive/find base64 strings.js
  - passive/Find Credit Cards.js
  - passive/Find Emails.js
  - passive/Find Hashes.js
  - passive/Find HTML Comments.js

Also update passive scripts with an existing `getMetadata()` function to
also specify a `codeLink` and a `helpLink`.

Signed-off-by: ricekot <github@ricekot.com>
@thc202 thc202 merged commit 8fbe274 into zaproxy:main Jun 10, 2024
8 checks passed
@thc202
Copy link
Member

thc202 commented Jun 10, 2024

Thank you!

@ricekot ricekot deleted the passive-scripts-metadata branch June 10, 2024 06:59
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