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

CERTatPassiveDNS_2_0 Invalid File for WHOIS.sh #349

Closed
scrublullz opened this issue Oct 1, 2018 · 3 comments
Closed

CERTatPassiveDNS_2_0 Invalid File for WHOIS.sh #349

scrublullz opened this issue Oct 1, 2018 · 3 comments

Comments

@scrublullz
Copy link

Request Type

Bug

Description

When executing a query using CERTatPassiveDNS, the response comes back with an error:
FileNotFoundError: [Errno 2] No such file or directory: './whois.sh': './whois.sh'

Possible Solutions

Submitted the following commit to pull the current file path of whois_wrapper.py in order to define the full path of whois.sh

1f6f1dd

@3c7
Copy link
Contributor

3c7 commented Nov 19, 2018

Should be fixed by now (fa86584). Forgot to close the issue. Thanks for reporting!

@3c7 3c7 closed this as completed Nov 19, 2018
@geekscrapy
Copy link

Just updated this analyzer from within the cortex docker container and it now has the following error:

Failure, Invalid output
/opt/Cortex-Analyzers/analyzers/CERTatPassiveDNS/whois.sh: line 2: whois: command not found
Traceback (most recent call last):
  File "CERTatPassiveDNS/certat_passivedns.py", line 38, in <module>
    CERTatPassiveDNSAnalyzer().run()
  File "CERTatPassiveDNS/certat_passivedns.py", line 18, in run
    self.report({'results': query(self.get_data(), int(self.limit))})
  File "/opt/Cortex-Analyzers/analyzers/CERTatPassiveDNS/whois_wrapper.py", line 58, in query
    return __process_results(__query(domain, limit))
  File "/opt/Cortex-Analyzers/analyzers/CERTatPassiveDNS/whois_wrapper.py", line 17, in __query
    s = check_output(['{}'.format(os.path.join(os.path.dirname(__file__), 'whois.sh')), '--limit {} {}'.format(limit, domain)], universal_newlines=True)
  File "/usr/lib/python3.6/subprocess.py", line 336, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.6/subprocess.py", line 418, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/opt/Cortex-Analyzers/analyzers/CERTatPassiveDNS/whois.sh', '--limit 100 example.com']' returned non-zero exit status 127.

@3c7
Copy link
Contributor

3c7 commented Dec 6, 2018

Please install whois. By the way, are you whitelisted for using the service?

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

3 participants