buffer size update
This commit is contained in:
1 parent
7c63617d85
commit
4c19b6b053
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -23,7 +23,7 @@ def grep_all_ips(ips):
|
||||
print(f"Connected to server at {ip}:{PORT}")
|
||||
|
||||
client_socket.sendall("ls -la".encode())
|
||||
data = client_socket.recv(1024)
|
||||
data = client_socket.recv(65536)
|
||||
print("Received:", data.decode())
|
||||
except Exception as e:
|
||||
print(f"Failed to connect to {ip}:{PORT} - {e}")
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ while True:
|
||||
conn, addr = server_socket.accept()
|
||||
# print(f"Connected by {addr}")
|
||||
|
||||
command = conn.recv(1024)
|
||||
command = conn.recv(65536)
|
||||
# print("Received Grep Command:", command.decode())
|
||||
|
||||
result = subprocess.run(command.decode(), capture_output=True, text=True)
|
||||
|
||||
Reference in new issue
Block a user