You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 6, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 6, 2023. It is now read-only.
Make it easier to add coverage to old rulesets #1069
Right now the process of updating old rulesets to ensure they have sufficient test coverage is very tedious. Typically one has to pull out a list of hostnames from deeply nested regexes like this one:
Instead, it would be nice to automatically extract hostnames from regexes when possible. The Python exrex module claims to do this. We could write a script that would do use that module to extract hostnames where possible and add them to <target host=...> tags.
Of course, we can't extract hostnames from wildcard matches like \w+, but that's fine. We'll have to manually add test cases for those.
Activity
zoracon commentedon Feb 13, 2019
Closing due to new changes seems to have resolved some of this over the years and regex heavy rules are being shied away from. Can reopen if necessary