You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pwnlib/tubes/remote.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -23,11 +23,11 @@ class remote(sock):
23
23
fam: The string "any", "ipv4" or "ipv6" or an integer to pass to :func:`socket.getaddrinfo`.
24
24
typ: The string "tcp" or "udp" or an integer to pass to :func:`socket.getaddrinfo`.
25
25
timeout: A positive number, None or the string "default".
26
+
sock(:class:`socket.socket`): Socket to inherit, rather than connecting
26
27
ssl(bool): Wrap the socket with SSL
27
28
ssl_context(ssl.SSLContext): Specify SSLContext used to wrap the socket.
28
-
sni: Set 'server_hostname' in ssl_args based on the host parameter.
29
-
sock(socket.socket): Socket to inherit, rather than connecting
30
-
ssl_args(dict): Pass ssl.wrap_socket named arguments in a dictionary.
29
+
ssl_args(dict): Pass :func:`ssl.wrap_socket` named arguments in a dictionary.
30
+
sni(str,bool): Set 'server_hostname' in ssl_args. Set to True to set it based on the host argument. Set to False to not provide any value. Default is True.
0 commit comments