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

Issues with cortex Analyzers #352

Open
hermanmaleiane opened this issue Mar 18, 2021 · 0 comments · Fixed by TheHive-Project/Cortex-Analyzers#1135
Open

Issues with cortex Analyzers #352

hermanmaleiane opened this issue Mar 18, 2021 · 0 comments · Fixed by TheHive-Project/Cortex-Analyzers#1135

Comments

@hermanmaleiane
Copy link

hermanmaleiane commented Mar 18, 2021

Request Type
Issue

Work Environment

Question Answer
OS version (server) CentOS
Cortex version 3.1.1-1
Package Type Docker

Problem Description

I have installed cortex analyzers using this link combined with , but some analyzers doesn't work.

I have pyhon 2.7 and 3.7 installed.

Steps to Reproduce

  1. Open Cortex Web
  2. launch Abuse_Finder_3_0
  3. Run analyzers
  4. Go to Job report

Traceback (most recent call last): File "/usr/lib/python3.7/sre_parse.py", line 1021, 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 from abuse_finder import domain_abuse, ip_abuse, \ File "/usr/local/lib/python3.7/dist-packages/abuse_finder/init.py", line 2, in from .domain import domain_abuse File "/usr/local/lib/python3.7/dist-packages/abuse_finder/domain.py", line 3, in from pythonwhois.net import get_whois_raw File "/usr/local/lib/python3.7/dist-packages/pythonwhois/init.py", line 1, in from . import net, parse File "/usr/local/lib/python3.7/dist-packages/pythonwhois/parse.py", line 363, in registrant_regexes = [preprocess_regex(regex) for regex in registrant_regexes] File "/usr/local/lib/python3.7/dist-packages/pythonwhois/parse.py", line 363, in registrant_regexes = [preprocess_regex(regex) for regex in registrant_regexes] File "/usr/local/lib/python3.7/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.7/re.py", line 192, in sub return _compile(pattern, flags).sub(repl, string, count) File "/usr/lib/python3.7/re.py", line 309, in _subx template = _compile_repl(template, pattern) File "/usr/lib/python3.7/re.py", line 300, in _compile_repl return sre_parse.parse_template(repl, pattern) File "/usr/lib/python3.7/sre_parse.py", line 1024, in parse_template raise s.error('bad escape %s' % this, len(this))re.error: bad escape \s at position 0

Possible Solutions

I'm not sure if it's related to python environment because i tried to change from 2 to python3.

Complementary information

image

Augustin-FL added a commit to Augustin-FL/Cortex-Analyzers that referenced this issue Nov 10, 2022
nusantara-self pushed a commit to nusantara-self/Cortex-Analyzers that referenced this issue Oct 24, 2024
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

Successfully merging a pull request may close this issue.

1 participant