-
Notifications
You must be signed in to change notification settings - Fork 385
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
[Bug] Abuse_Finder analyzer fails #914
Comments
Hello, |
It happens on any IP in my case, with the traceback error mentioned above. |
Ok, I've tried the analyzer locally and it fails. Probably because cortex uses python 3.7 while the analyzer in docker version requires python 3.6. https://github.com/certsocietegenerale/abuse_finder >> Installation |
Thanks ! Not sure if its related, but upon futher testing the Censys_1_0 analyzer failed to work as well :
|
I think in that case the lib has been updated and some syntax must be changed. I'll open a new issue for that, and I'll close this one. If you have any other input on this topic let us know 👍 |
Describe the bug
Abuse_Finder analyzer fails
To Reproduce
Steps to reproduce the behavior:
Simply attempt to run Abuse_Finder from Cortex against any IP
Complementary information
Here is the returned error message :
Traceback (most recent call last): File \"/usr/lib/python3.8/sre_parse.py\", line 1039, in parse_template this = chr(ESCAPES[this][1])KeyError: '\\\\s'During handling of the above exception, another exception occurred:Traceback (most recent call last): File \"/opt/Cortex-Analyzers/analyzers/Abuse_Finder/abusefinder.py\", line 9, in <module> from abuse_finder import domain_abuse, ip_abuse, \\ File \"/usr/local/lib/python3.8/dist-packages/abuse_finder/__init__.py\", line 2, in <module> from .domain import domain_abuse File \"/usr/local/lib/python3.8/dist-packages/abuse_finder/domain.py\", line 3, in <module> from pythonwhois.net import get_whois_raw File \"/usr/local/lib/python3.8/dist-packages/pythonwhois/__init__.py\", line 1, in <module> from . import net, parse File \"/usr/local/lib/python3.8/dist-packages/pythonwhois/parse.py\", line 363, in <module> registrant_regexes = [preprocess_regex(regex) for regex in registrant_regexes] File \"/usr/local/lib/python3.8/dist-packages/pythonwhois/parse.py\", line 363, in <listcomp> registrant_regexes = [preprocess_regex(regex) for regex in registrant_regexes] File \"/usr/local/lib/python3.8/dist-packages/pythonwhois/parse.py\", line 205, in preprocess_regex regex = re.sub(r\"\\\\s\\*\\(\\?P<([^>]+)>\\.\\+\\)\", r\"\\s*(?P<\\1>\\S.*)\", regex) File \"/usr/lib/python3.8/re.py\", line 210, in sub return _compile(pattern, flags).sub(repl, string, count) File \"/usr/lib/python3.8/re.py\", line 327, in _subx template = _compile_repl(template, pattern) File \"/usr/lib/python3.8/re.py\", line 318, in _compile_repl return sre_parse.parse_template(repl, pattern) File \"/usr/lib/python3.8/sre_parse.py\", line 1042, in parse_template raise s.error('bad escape %s' % this, len(this))re.error: bad escape \\s at position 0
Work environment
The text was updated successfully, but these errors were encountered: