Skip to content

Commit

Permalink
support websocket ja3
Browse files Browse the repository at this point in the history
  • Loading branch information
zero3301 committed Aug 18, 2022
1 parent 1d04d18 commit 5ee3c30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -104,7 +104,7 @@ exts_payload: 需要填充的扩展数据,不包括数据长度
>>>r = ssock.recv(1024)
```

# websocket
# websocket,支持修改ja3
参考文档tests/test_websockt.py

# 版本支持
Expand Down
2 changes: 1 addition & 1 deletion tests/test_websocket.py
Expand Up @@ -14,7 +14,7 @@ def __init__(self,url=None, headers=None, loop=None):
self.loop = loop
self.ja3 = '771,49195-49199-52393-52392-49196-49200-49162-49161-49171-49172-156-157-47-53-55,0-23-65281-10-11-35-16-5-13-28-222,29-23-24-25,0-1-2'
self.exts_payload = {222: '\x00'}

async def connect(self):
self.sock = await WebSocketClient(url=self.url, headers=self.headers, loop=self.loop,
ja3=self.ja3,exts_payload=self.exts_payload
Expand Down

0 comments on commit 5ee3c30

Please sign in to comment.