sshmitm.plugins.tunnel.socks4 module
- class sshmitm.plugins.tunnel.socks4.Socks4Command(value)
Bases:
Socks4Types
Kommandos für den Socks Proxy
- BIND = b'\x02'
- CONNECT = b'\x01'
- class sshmitm.plugins.tunnel.socks4.Socks4CommandReply(value)
Bases:
Socks4Types
Bestä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:
object
Socks4 kompatibler Forwarder
- Parameters:
listenaddress (
Tuple
[str
,int
])
- SOCKSVERSION = b'\x04'
- get_address(clientsock, ignore_version=False)
- Parameters:
clientsock (
Union
[socket
,Channel
])ignore_version (
bool
, default:False
)
- Return type:
Optional
[Tuple
[str
,int
]]
- 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:
Enum
Basisklasse für Socks4 Daten