karma9874 / AndroRAT

A Simple android remote administration tool using sockets. It uses java on the client side and python on the server side
MIT License
2.88k stars 949 forks source link

Cannot download ngrok #337

Closed BOplaid closed 2 months ago

BOplaid commented 4 months ago

When I type "androrat.py --build --ngrok" and press enter, it gives me this:

Traceback (most recent call last): File "C:\Users\amirjavad\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 1344, in do_open h.request(req.get_method(), req.selector, req.data, headers, File "C:\Users\amirjavad\AppData\Local\Programs\Python\Python312\Lib\http\client.py", line 1319, in request self._send_request(method, url, body, headers, encode_chunked) File "C:\Users\amirjavad\AppData\Local\Programs\Python\Python312\Lib\http\client.py", line 1365, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "C:\Users\amirjavad\AppData\Local\Programs\Python\Python312\Lib\http\client.py", line 1314, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "C:\Users\amirjavad\AppData\Local\Programs\Python\Python312\Lib\http\client.py", line 1074, in _send_output self.send(msg) File "C:\Users\amirjavad\AppData\Local\Programs\Python\Python312\Lib\http\client.py", line 1018, in send self.connect() File "C:\Users\amirjavad\AppData\Local\Programs\Python\Python312\Lib\http\client.py", line 1460, in connect self.sock = self._context.wrap_socket(self.sock, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\amirjavad\AppData\Local\Programs\Python\Python312\Lib\ssl.py", line 455, in wrap_socket return self.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\amirjavad\AppData\Local\Programs\Python\Python312\Lib\ssl.py", line 1046, in _create self.do_handshake() File "C:\Users\amirjavad\AppData\Local\Programs\Python\Python312\Lib\ssl.py", line 1317, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\amirjavad\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyngrok\installer.py", line 119, in install_ngrok download_path = _download_file(url, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\amirjavad\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyngrok\installer.py", line 254, in _download_file response = urlopen(url, kwargs) ^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\amirjavad\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 215, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\amirjavad\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 515, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\amirjavad\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 532, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\amirjavad\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 492, in _call_chain result = func(*args) ^^^^^^^^^^^ File "C:\Users\amirjavad\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 1392, in https_open return self.do_open(http.client.HTTPSConnection, req, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\amirjavad\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 1347, in do_open raise URLError(err) urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000)>

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "F:\AndroRAT\androRAT.py", line 48, in tcp_tunnel = ngrok.connect(port, "tcp") ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\amirjavad\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyngrok\ngrok.py", line 312, in connect api_url = get_ngrok_process(pyngrok_config).api_url ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\amirjavad\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyngrok\ngrok.py", line 152, in get_ngrok_process install_ngrok(pyngrok_config) File "C:\Users\amirjavad\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyngrok\ngrok.py", line 97, in install_ngrok installer.install_ngrok(pyngrok_config.ngrok_path, ngrok_version=pyngrok_config.ngrok_version) File "C:\Users\amirjavad\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyngrok\installer.py", line 123, in install_ngrok raise PyngrokNgrokInstallError(f"An error occurred while downloading ngrok from {url}: {e}") pyngrok.exception.PyngrokNgrokInstallError: An error occurred while downloading ngrok from https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-windows-amd64.zip: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000)>

github-actions[bot] commented 3 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 2 months ago

This issue was closed because it has been inactive for 7 days since being marked as stale.