proxy.socks.packet module#

proxy.py#

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

copyright
  1. 2013-present by Abhinav Singh and contributors.

license

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]#