sshmitm.plugins.tunnel.socks4 module
- class sshmitm.plugins.tunnel.socks4.Socks4Command(value)
Bases:
Socks4TypesKommandos für den Socks Proxy
- BIND = b'\x02'
- CONNECT = b'\x01'
- class sshmitm.plugins.tunnel.socks4.Socks4CommandReply(value)
Bases:
Socks4TypesBestättigungen für den Socks Proxy
- FAILED = b'['
- SUCCESS = b'Z'
- exception sshmitm.plugins.tunnel.socks4.Socks4Error
Bases:
Exception
- class sshmitm.plugins.tunnel.socks4.Socks4Server(listenaddress)
Bases:
objectSocks4 kompatibler Forwarder
- Parameters:
listenaddress (
tuple[str,int])
- SOCKSVERSION = b'\x04'
- __init__(listenaddress)
- Parameters:
listenaddress (
tuple[str,int])
- get_address(clientsock, ignore_version=False)
- Parameters:
clientsock (
socket|Channel)ignore_version (
bool, default:False)
- Return type:
tuple[str,int] |None
- property server_ip: bytes
Liefert die IP Adresse des Socks Proxy zurück
- property server_port: bytes
Liefert den Port den Socks Proxy zurück
- class sshmitm.plugins.tunnel.socks4.Socks4Types(value)
Bases:
EnumBasisklasse für Socks4 Daten