v62: fetch POST multipart/form-data вместо WebSocket+base64 — обход DPI

This commit is contained in:
“Naeel”
2026-05-22 18:19:19 +04:00
parent 1f3dce39a4
commit b71eb9a45f
7 changed files with 180 additions and 38 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env python3
"""Test: bare minimum — connect and send hello."""
import asyncio, json, websockets
async def test():
uri = "wss://proxy.kube5s.ru/ws"
print(f"Connecting to {uri}...")
try:
async with websockets.connect(uri) as ws:
print("Connected!")
await ws.send(json.dumps({"c": -1}))
print("Sent empty final, waiting...")
try:
resp = await asyncio.wait_for(ws.recv(), timeout=15)
print(f"Response: {resp}")
except asyncio.TimeoutError:
print("TIMEOUT")
except Exception as e:
print(f"ERROR: {e}")
asyncio.run(test())