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

Allow setting fail_if_body_matches_regexp dynamically #1213

Open
robasp opened this issue Mar 21, 2024 · 2 comments
Open

Allow setting fail_if_body_matches_regexp dynamically #1213

robasp opened this issue Mar 21, 2024 · 2 comments

Comments

@robasp
Copy link

robasp commented Mar 21, 2024

Hi all

I know dynamic probes is a feature that has been requested multiple times in the past.
I also understand that there are security concerns about this feature.

Nevertheless, would it be possible for the parameters fail_if_body_matches_regexp & fail_if_body_not_matches_regexp to be set dynamically per target?
At the moment, if i want to probe 100 targets with different HTML body, i would need 100 modules that only differ in the fail_if_body_matches_regexp & fail_if_body_not_matches_regexp fields.

Would that be possible or are there security concerns as well?

Thanks and best regards
Robin

@alpadotsh
Copy link

Hi there, I need the same thing and thinking about implementing it. I've briefly checked the code and it shouldn't take much time. Before I commit thought, anyone can point out stuff I may not know about?

@alpadotsh
Copy link

I've created a quick implementation of it, looking forward for comments: #1247

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

No branches or pull requests

2 participants