From 2b850f4c70ed91e5334158c5dcc83dd0ccb9e502 Mon Sep 17 00:00:00 2001 From: Connor Nelson Date: Fri, 21 Feb 2025 17:02:37 -0700 Subject: [PATCH] Fix exception handling in ClientHost to include OSError --- intercepting-communication/level-7/run | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/intercepting-communication/level-7/run b/intercepting-communication/level-7/run index 588d4a9..45526cb 100755 --- a/intercepting-communication/level-7/run +++ b/intercepting-communication/level-7/run @@ -1,8 +1,6 @@ #!/usr/bin/exec-suid --real -- /usr/bin/python -I -import os import socket -import subprocess import time from dojjail import Host, Network @@ -17,7 +15,7 @@ class ClientHost(Host): client_socket.sendall(flag.encode()) client_socket.close() time.sleep(1) - except (ConnectionError, TimeoutError): + except (OSError, ConnectionError, TimeoutError): continue user_host = Host("ip-10-0-0-1")