buffer size update

This commit is contained in:
Aryan Singh committed 2026-09-09 00:57:59 -05:00
1 parent 7c63617d85
commit 4c19b6b053
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ def grep_all_ips(ips):
print(f"Connected to server at {ip}:{PORT}") print(f"Connected to server at {ip}:{PORT}")
client_socket.sendall("ls -la".encode()) client_socket.sendall("ls -la".encode())
data = client_socket.recv(1024) data = client_socket.recv(65536)
print("Received:", data.decode()) print("Received:", data.decode())
except Exception as e: except Exception as e:
print(f"Failed to connect to {ip}:{PORT} - {e}") print(f"Failed to connect to {ip}:{PORT} - {e}")
+1 -1
View File
@@ -16,7 +16,7 @@ while True:
conn, addr = server_socket.accept() conn, addr = server_socket.accept()
# print(f"Connected by {addr}") # print(f"Connected by {addr}")
command = conn.recv(1024) command = conn.recv(65536)
# print("Received Grep Command:", command.decode()) # print("Received Grep Command:", command.decode())
result = subprocess.run(command.decode(), capture_output=True, text=True) result = subprocess.run(command.decode(), capture_output=True, text=True)