yassineaboukir / sublert

Sublert is a security and reconnaissance tool which leverages certificate transparency to automatically monitor new subdomains deployed by specific organizations and issued TLS/SSL certificate.
MIT License
981 stars 172 forks source link

getting errors follow your medium for setting up tool #38

Open hunter0x8 opened 3 years ago

hunter0x8 commented 3 years ago

`Traceback (most recent call last): File "sublert.py", line 165, in lookup conn = psycopg2.connect("dbname={0} user={1} host={2}".format(DB_NAME, DB_USER, DB_HOST)) File "/home/Th3Hunt3r/tools/sublert/sublert/lib/python3.6/site-packages/psycopg2/init.py", line 127, in connect conn = _connect(dsn, connection_factory=connection_factory, **kwasync) psycopg2.OperationalError: could not connect to server: Connection timed out Is the server running on host "crt.sh" (91.199.212.73) and accepting TCP/IP connections on port 5432? could not connect to server: Network is unreachable Is the server running on host "crt.sh" (2a0e:ac00:c7:d449::5bc7:d449) and accepting TCP/IP connections on port 5432?

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/Th3Hunt3r/tools/sublert/sublert/lib/python3.6/site-packages/urllib3/connection.py", line 160, in _new_conn (self._dns_host, self.port), self.timeout, **extra_kw File "/home/Th3Hunt3r/tools/sublert/sublert/lib/python3.6/site-packages/urllib3/util/connection.py", line 84, in create_connection raise err File "/home/Th3Hunt3r/tools/sublert/sublert/lib/python3.6/site-packages/urllib3/util/connection.py", line 74, in create_connection sock.connect(sa) OSError: [Errno 101] Network is unreachable

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/Th3Hunt3r/tools/sublert/sublert/lib/python3.6/site-packages/urllib3/connectionpool.py", line 677, in urlopen chunked=chunked, File "/home/Th3Hunt3r/tools/sublert/sublert/lib/python3.6/site-packages/urllib3/connectionpool.py", line 381, in _make_request self._validate_conn(conn) File "/home/Th3Hunt3r/tools/sublert/sublert/lib/python3.6/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn conn.connect() File "/home/Th3Hunt3r/tools/sublert/sublert/lib/python3.6/site-packages/urllib3/connection.py", line 309, in connect conn = self._new_conn() File "/home/Th3Hunt3r/tools/sublert/sublert/lib/python3.6/site-packages/urllib3/connection.py", line 172, in _new_conn self, "Failed to establish a new connection: %s" % e urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f368fd2d940>: Failed to establish a new connection: [Errno 101] Network is unreachable

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/Th3Hunt3r/tools/sublert/sublert/lib/python3.6/site-packages/requests/adapters.py", line 449, in send timeout=timeout File "/home/Th3Hunt3r/tools/sublert/sublert/lib/python3.6/site-packages/urllib3/connectionpool.py", line 727, in urlopen method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] File "/home/Th3Hunt3r/tools/sublert/sublert/lib/python3.6/site-packages/urllib3/util/retry.py", line 439, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='crt.sh', port=443): Max retries exceeded with url: /?q=%25.paypal.com&output=json (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f368fd2d940>: Failed to establish a new connection: [Errno 101] Network is unreachable',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "sublert.py", line 451, in multithreading(parse_args().threads) File "sublert.py", line 419, in multithreading adding_new_domain(domain_to_monitor) File "sublert.py", line 224, in adding_new_domain response = cert_database().lookup(domain_to_monitor) File "sublert.py", line 184, in lookup req = requests.get(url, headers={'User-Agent': user_agent}, timeout=30, verify=False) #times out after 30 seconds waiting (Mainly for large datasets) File "/home/Th3Hunt3r/tools/sublert/sublert/lib/python3.6/site-packages/requests/api.py", line 76, in get return request('get', url, params=params, kwargs) File "/home/Th3Hunt3r/tools/sublert/sublert/lib/python3.6/site-packages/requests/api.py", line 61, in request return session.request(method=method, url=url, kwargs) File "/home/Th3Hunt3r/tools/sublert/sublert/lib/python3.6/site-packages/requests/sessions.py", line 530, in request resp = self.send(prep, send_kwargs) File "/home/Th3Hunt3r/tools/sublert/sublert/lib/python3.6/site-packages/requests/sessions.py", line 643, in send r = adapter.send(request, kwargs) File "/home/Th3Hunt3r/tools/sublert/sublert/lib/python3.6/site-packages/requests/adapters.py", line 516, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='crt.sh', port=443): Max retries exceeded with url: /?q=%25.paypal.com&output=json (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f368fd2d940>: Failed to establish a new connection: [Errno 101] Network is unreachable',)) `