Skip to content

Instantly share code, notes, and snippets.

@nullstd
nullstd / server.py
Created September 28, 2024 03:46 — forked from scturtle/server.py
python socks5 proxy server with asyncio (async/await)
#!/usr/bin/env python3.5
import socket
import asyncio
from struct import pack, unpack
class Client(asyncio.Protocol):
def connection_made(self, transport):
self.transport = transport
self.server_transport = None