From 94aac3bb335954b8bf43543e9d28974aca9e3f36 Mon Sep 17 00:00:00 2001 From: Omar Santos Date: Fri, 9 Oct 2020 14:20:59 -0400 Subject: [PATCH] Fixing TCP max packet size 65535 Fixing TCP max packet size 65535 --- python_ruby_and_bash/http_sniffer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_ruby_and_bash/http_sniffer.py b/python_ruby_and_bash/http_sniffer.py index 126c94e..a15cc7e 100644 --- a/python_ruby_and_bash/http_sniffer.py +++ b/python_ruby_and_bash/http_sniffer.py @@ -6,7 +6,7 @@ import socket s=socket.socket(socket.PF_PACKET, socket.SOCK_RAW, socket.ntohs(0x0800)) while True: - data=s.recvfrom(65565) + data=s.recvfrom(65535) try: if "HTTP" in data[0][54:]: print("[","="*30,']')