To reproduce, stage a valid session in a virtual machine. Interact with the session, such as by doing shell whoami
. Pause the VM and try to type "exit" to end interacting with the session. This will crash the server and give the following stacktrace:
Traceback (most recent call last):
File "swiftshell-server.py", line 741, in <module>
(connection, (ip,port)) = ssock.accept()
File "/usr/lib/python3.6/ssl.py", line 1125, in accept
server_side=True)
File "/usr/lib/python3.6/ssl.py", line 407, in wrap_socket
_context=self, _session=session)
File "/usr/lib/python3.6/ssl.py", line 817, in __init__