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

Feature request: timeout #3

Open
Korving-F opened this issue Mar 22, 2021 · 2 comments
Open

Feature request: timeout #3

Korving-F opened this issue Mar 22, 2021 · 2 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@Korving-F
Copy link

While scanning a large set of regular expressions I found some particularly nasty lines which hung my scripted scan. Perhaps a timeout flag could be added?

@b-c-ds
Copy link
Contributor

b-c-ds commented Mar 22, 2021

Yeah DoS in a DoS-finding tool isn't ideal. A timeout might help.

Do you know if it was a particularly weird regex (or string which was misidentified a regex) or parsing a giant file (and which language file)?

@b-c-ds b-c-ds added bug Something isn't working enhancement New feature or request labels Mar 22, 2021
@Korving-F
Copy link
Author

It was a file of collected regexes, so no extractions from language files.

See below for one of the patterns in question. In case you want to use it to debug. ^_^

(\d{10})\.\d{6}\t([^\t]+)\t(?:-|(((\d{1,3}\.){3}\d{1,3}|([A-Fa-f0-9%.]*:[A-Fa-f0-9%.:]+(th0)?))|[^\t]+))\t(?:-|(((\d{1,3}\.){3}\d{1,3}|([A-Fa-f0-9%.]*:[A-Fa-f0-9%.:]+(th0)?))|[^\t]+))\t(?:-|([^\t]+))\t(?:-|([^\t]+))\t(?:-|([^\t]+))\t(?:-|([^\t]+))\t(?:-|([^\t]+))\t(?:-|([^\t]+))\t(?:-|([^\t]+))\t(?:-|([^\t]+))\t(?:-|([^\t]+))\t(?:-|([^\t]+))\t(?:-|([^\t]+))\t(?:-|([^\t]+))\t(?:-|([^\t]+))\t(?:-|([^\t]+))\t(?:-|([^\t]+))\t(?:-|([^\t]+))\t(?:-|([^\t]+))\t(?:-|([^\t]+))\t(?:-|([^\t]+?))\s*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants