proxy.socks.packet module#

⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on Network monitoring, controls & Application development, testing, debugging.

  1. 2013-present by Abhinav Singh and contributors.


BSD, see LICENSE for more details.

class proxy.socks.packet.Socks4Packet[source]#

Bases: object

SOCKS4 and SOCKS4a protocol parser.

FIXME: Currently doesn’t buffer during parsing and expects packet to arrive within a single socket receive event.

pack() bytes[source]#
parse(raw: memoryview) None[source]#