adnan2002 / ITCS411-Project

0 stars 1 forks source link

Error when using Client or Attacker py files #1

Open 0xcyb3rw0lf opened 4 months ago

0xcyb3rw0lf commented 4 months ago

I get this error when I try to run client.py or attacker.py. It is related to the SSL file.

line 28, in <module>
    client_socket.connect(('127.0.0.1', 12345))
  File "C:\Python312\Lib\ssl.py", line 1350, in connect
    self._real_connect(addr, False)
  File "C:\Python312\Lib\ssl.py", line 1328, in _real_connect
    self._sslobj = self.context._wrap_socket(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^
ssl.SSLError: Cannot create a client socket with a PROTOCOL_TLS_SERVER context (_ssl.c:806)
0xcyb3rw0lf commented 4 months ago

@adnan2002

0xcyb3rw0lf commented 4 months ago

Fix by Ahmed Yusuf eeddef51-98f5-4442-b1ad-b1a7ebc86349

0xcyb3rw0lf commented 4 months ago

updated code to fix and opened a pull request #2 that need to be accepted @adnan2002