A Python library for generating random SSL.
Project description
randssl - 随机ssl
A Python library for generating random SSL. Used to bypass TLS fingerprint checking rules generated by algorithms such as JA3.
一个可以生成随机SSL的Python库,可以被用来绕过JA3等算法生成的TLS指纹检查规则。
Quick start - 快速开始
Install - 安装
pip install randssl
Usage - 使用
requests
import requests
from randssl import randssl
from requests.adapters import HTTPAdapter
class RandsslAdapter(HTTPAdapter):
def init_poolmanager(self, *args, **kwargs):
context = randssl()
kwargs["ssl_context"] = context
return super(RandsslAdapter, self).init_poolmanager(*args, **kwargs)
with requests.Session() as sess:
sess.mount(prefix="https://www.baidu.com", adapter=RandsslAdapter())
resp = sess.get(url="https://www.baidu.com")
print(resp.content)
aiohttp
import aiohttp
import asyncio
from randssl import randssl
async def main():
async with aiohttp.ClientSession() as sess:
async with sess.get(url="https://www.baidu.com", ssl=randssl()) as resp:
print(await resp.content.read())
asyncio.run(main())
Todo 未来
- Collect the TLS blacklist of WAF - 收集WAF的TLS黑名单
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file randssl-0.0.3-py3-none-any.whl.
File metadata
- Download URL: randssl-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
150d127af394eaf1b4781532b640e61fb28cffa63946bd0b8ca4ec448b5bbda3
|
|
| MD5 |
9295b3c107dad27815f76b85167d3c47
|
|
| BLAKE2b-256 |
028e007e3107b5d55ce98e30aa2818e31de6d5e838b34216eca4f327fbd852c3
|