Skip to content

Error when i run docker command Β #85

@RedaBenh

Description

@RedaBenh

When i run the docker command on a website under cloudflare, i get this error:
Command:
$ docker run --rm -e CENSYS_API_ID=your-id -e CENSYS_API_SECRET=your-secret christophetd/cloudflair myvulnerable.site

Result:

Traceback (most recent call last):
  File "/data/cloudflair.py", line 184, in <module>
    main(args.domain, args.output_file, censys_api_id, censys_api_secret)
  File "/data/cloudflair.py", line 153, in main
    hosts = find_hosts(domain, censys_api_id, censys_api_secret)
  File "/data/cloudflair.py", line 43, in find_hosts
    cert_fingerprints = censys_search.get_certificates(domain, censys_api_id, censys_api_secret)
  File "/data/censys_search.py", line 30, in get_certificates
    [cert["parsed.fingerprint_sha256"] for cert in certificates_search_results]
  File "/data/censys_search.py", line 30, in <listcomp>
    [cert["parsed.fingerprint_sha256"] for cert in certificates_search_results]
  File "/usr/lib/python3.6/site-packages/censys/search/v1/api.py", line 141, in search
    payload = self._post(self.search_path, data=data)
  File "/usr/lib/python3.6/site-packages/censys/common/base.py", line 213, in _post
    return self._make_call(self._session.post, endpoint, args, data)
  File "/usr/lib/python3.6/site-packages/censys/common/base.py", line 41, in _wrapper
    return _impl()
  File "/usr/lib/python3.6/site-packages/backoff/_sync.py", line 94, in retry
    ret = target(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/censys/common/base.py", line 39, in _impl
    return method(self, *args, *kwargs)
  File "/usr/lib/python3.6/site-packages/censys/common/base.py", line 204, in _make_call
    details=details,
censys.common.exceptions.CensysNotFoundException: 404 (not_found): The requested URL was not found.

I think it's a bug, Can you help please, i did find any other options to fix it .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions