Siyuanw / kinesis

Location Spoofing for iOS 17
GNU General Public License v3.0
255 stars 52 forks source link

AttributeError: module 'ssl' has no attribute 'wrap_socket' #18

Closed kneeroo closed 1 year ago

kneeroo commented 1 year ago

Main import.py has the code import eventlet

It seems like Eventlet fails with AttributeError: module 'ssl' has no attribute 'wrap_socket'. This happens because of a change in Python.

From What's new: Remove the ssl.wrap_socket() function, deprecated in Python 3.7: instead, create a ssl.SSLContext object and call its ssl.SSLContext.wrap_socket method. Any package that still uses ssl.wrap_socket() is broken and insecure. The function neither sends a SNI TLS extension nor validates server hostname. Code is subject to CWE-295: Improper Certificate Validation. (Contributed by Victor Stinner in https://github.com/python/cpython/issues/94199.) https://github.com/eventlet/eventlet/issues/795

kneeroo commented 1 year ago

Resolved this by downgrading my python version from 3.12 to 3.11.6