Closed 4Kp3n closed 6 years ago
Hi @skllrn,
Not intended, I'm not sure why it's happening (something to do with socket.socket()
not liking to be used as a default arg I think?).
Can you replace the beginning of the constructor for TLSSocket
in scapy_ssl_tls\ssl_tls.py
by the following:
class TLSSocket(object):
def __init__(self, sock=None, client=None, tls_ctx=None):
self._s = sock or socket.socket()
if client is None:
self.client = self._is_listening()
Let us know if that fixes it.
Hi @alexmgr,
Declaring the socket inside the __init__
function as you stated did the trick.
Thanks a lot!
Hi, I'm not able to use multiple TLSSockets on one machine. Binding one Socket to my local ip and port 5555 and one to same ip and port 6666 results in following error:
Using normal python sockets doesn't result in this error. Is this behaviour intended?