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

python3 st.py is not running ERROR(101) #298

Open
maggijasjuz opened this issue Oct 26, 2023 · 6 comments
Open

python3 st.py is not running ERROR(101) #298

maggijasjuz opened this issue Oct 26, 2023 · 6 comments

Comments

@maggijasjuz
Copy link

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 96, in create_connection
raise err
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 86, 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 "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 704, in urlopen
httplib_response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 387, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 1045, in _validate_conn
conn.connect()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 358, in connect
self.sock = conn = self._new_conn()
^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3249e00cd0>: 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 "/usr/lib/python3/dist-packages/requests/adapters.py", line 486, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 788, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /ultrasecurity/Storm-Breaker/main/Settings.json (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3249e00cd0>: 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/maira28/Storm-Breaker/st.py", line 6, in
check.check_update()
File "/home/maira28/Storm-Breaker/modules/check.py", line 36, in check_update
http = requests.get("https://raw.githubusercontent.com/ultrasecurity/Storm-Breaker/main/Settings.json").text
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/requests/api.py", line 73, in get
return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 519, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /ultrasecurity/Storm-Breaker/main/Settings.json (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3249e00cd0>: Failed to establish a new connection: [Errno 101] Network is unreachable'))

@aslanbekmahmud
Copy link

İ have the same issue

@shashankfzb
Copy link

I also have the same issue

@Ismaililu
Copy link

i also have the same issues

@Ismaililu
Copy link

t=2023-12-12T20:07:45-0500 lvl=warn msg="invalid tunnel configuration" pg=/api/tunnels id=da672b2f69c39fb0 err="yaml: unmarshal errors:\n line 1: field auth_token not found in type config.HTTPv2Tunnel"
Traceback (most recent call last):
File "/usr/local/lib/python3.11/dist-packages/pyngrok/ngrok.py", line 507, in api_request
response = urlopen(request, encoded_data, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 216, in urlopen
return opener.open(url, data, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 525, in open
response = meth(req, response)
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 634, in http_response
response = self.parent.error(
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 563, in error
return self._call_chain(*args)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 496, in _call_chain
result = func(*args)
^^^^^^^^^^^
File "/usr/lib/python3.11/urllib/request.py", line 643, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/kali/stormbreaker/Storm-Breaker.py", line 24, in
localhost.webcham()
File "/home/kali/stormbreaker/modules/localhost.py", line 73, in webcham
a = ngrok.connect(4545,"http",auth_token=token)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/pyngrok/ngrok.py", line 313, in connect
tunnel = NgrokTunnel(api_request("{}/api/tunnels".format(api_url), method="POST", data=options,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/pyngrok/ngrok.py", line 528, in api_request
raise PyngrokNgrokHTTPError("ngrok client exception, API returned {}: {}".format(status_code, response_data),
pyngrok.exception.PyngrokNgrokHTTPError: ngrok client exception, API returned 400: {"error_code":102,"status_code":400,"msg":"invalid tunnel configuration","details":{"err":"yaml: unmarshal errors:\n line 1: field auth_token not found in type config.HTTPv2Tunnel"}}

@allset56-dev
Copy link

It looks like you are encountering an error related to ngrok and Python in your Kali Linux environment. The specific error message indicates an issue with the ngrok tunnel configuration.

Here are a few steps you can take to troubleshoot this issue:

  1. Check ngrok Configuration: Ensure that you have the correct configuration for ngrok. Verify the presence of the "auth_token" field in the ngrok configuration, as it seems to be missing based on the error message.

  2. Python Library: If you are using a Python library to interface with ngrok, make sure that the library is correctly configured and that you are passing the necessary parameters, such as the authentication token, when creating the ngrok tunnel.

  3. API Request: The error message also mentions an API request, indicating that there might be an issue with the API request being made to ngrok. Check the API request code in your Python script to ensure that it is properly formatted and includes all required parameters.

  4. Debugging: You can add print statements or logging to your Python script to output the configuration and parameters being used for the ngrok tunnel creation. This can help you identify any discrepancies or missing values.

  5. ngrok Documentation: Refer to the ngrok documentation and examples to ensure that you are using the correct syntax and parameters when creating a tunnel via the ngrok API.

By carefully reviewing your ngrok configuration, Python code, and API request, you should be able to pinpoint the issue causing the "invalid tunnel configuration" error. If you need further assistance, feel free to provide more details about your specific ngrok setup and Python code.

@iamajirobamusty
Copy link

i also got the same error and what i did was to open the st.py file and comment check.check_update()
article 4

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

6 participants