Created
May 25, 2024 21:22
-
-
Save pk5ls20/a2ded67daf09b38458d7d56e4c30b53f to your computer and use it in GitHub Desktop.
Normally access files under `https://multimedia.nt.qq.com.cn` using aiohttp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tested On Python3.11.9 + OpenSSL 3.1.4 Oct 2023 | |
import ssl | |
SSL_CONTEXT = ssl.create_default_context() | |
SSL_CONTEXT.set_ciphers('DEFAULT') | |
SSL_CONTEXT.options |= ssl.OP_NO_SSLv2 | |
SSL_CONTEXT.options |= ssl.OP_NO_SSLv3 | |
SSL_CONTEXT.options |= ssl.OP_NO_TLSv1 | |
SSL_CONTEXT.options |= ssl.OP_NO_TLSv1_1 | |
SSL_CONTEXT.options |= ssl.OP_NO_COMPRESSION |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
感谢感谢