From 17a53d332a081a1f32ddfaa353dd3505ad267b80 Mon Sep 17 00:00:00 2001 From: arielkru <63583491+arielkru@users.noreply.github.com> Date: Mon, 22 Jan 2024 10:06:36 +0200 Subject: [PATCH 1/3] Update main.py --- python/main.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/python/main.py b/python/main.py index 2e7b1c0..af99620 100644 --- a/python/main.py +++ b/python/main.py @@ -4,7 +4,7 @@ from socket import socket, AF_INET, SOCK_STREAM, SOCK_NONBLOCK # Set a file write by others. -temp_file = "/tmp/foo.txt" +temp_file = "/tmp/foo.txt" # comment os.chmod(temp_file, stat.S_IWOTH) with open(temp_file, 'r') as f: @@ -24,19 +24,19 @@ key_size=KEY_SIZE, ) - +# comment private_dsa_key_2 = DSA.generate(bits=KEY_SIZE) assert(private_dsa_key_2 == private_dsa_key) - +# comment program = 'a = 5\nb=10\nprint("Sum =", a+b)' exec(program) - +# comment def is_real_user(user="user123", password="Password1"): return True - +# comment sock = socket( AF_INET, SOCK_STREAM | SOCK_NONBLOCK) @@ -44,7 +44,7 @@ def is_real_user(user="user123", password="Password1"): # Bind the socket to the internet with a port number sock.bind(("::", 32007)) - +# comment def add_server_port(sg, server_name, port): server = _get_server(sg, server_name, port) if server is not None: From 4da4d84f386168046fc2b2b3d813b46ee46d4cad Mon Sep 17 00:00:00 2001 From: arielkru <63583491+arielkru@users.noreply.github.com> Date: Mon, 22 Jan 2024 11:25:08 +0200 Subject: [PATCH 2/3] Update main.py --- python/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/main.py b/python/main.py index af99620..fde44d2 100644 --- a/python/main.py +++ b/python/main.py @@ -3,7 +3,7 @@ from Crypto.PublicKey import DSA from socket import socket, AF_INET, SOCK_STREAM, SOCK_NONBLOCK -# Set a file write by others. +# Set a file write by others. another comment temp_file = "/tmp/foo.txt" # comment os.chmod(temp_file, stat.S_IWOTH) From 4026d5ff75cb5d40bf63e5b485e3bc90f8a75932 Mon Sep 17 00:00:00 2001 From: arielkru <63583491+arielkru@users.noreply.github.com> Date: Mon, 22 Jan 2024 11:28:28 +0200 Subject: [PATCH 3/3] Update main.py --- python/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/main.py b/python/main.py index fde44d2..4cd9f84 100644 --- a/python/main.py +++ b/python/main.py @@ -4,7 +4,7 @@ from socket import socket, AF_INET, SOCK_STREAM, SOCK_NONBLOCK # Set a file write by others. another comment -temp_file = "/tmp/foo.txt" # comment +temp_file = "/tmp/foo.txt" # comment another comment os.chmod(temp_file, stat.S_IWOTH) with open(temp_file, 'r') as f: