Fixing TCP max packet size 65535

Fixing TCP max packet size 65535
This commit is contained in:
Omar Santos 2020-10-09 14:20:59 -04:00 committed by GitHub
parent de81f349c0
commit 94aac3bb33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ import socket
s=socket.socket(socket.PF_PACKET, socket.SOCK_RAW, socket.ntohs(0x0800)) s=socket.socket(socket.PF_PACKET, socket.SOCK_RAW, socket.ntohs(0x0800))
while True: while True:
data=s.recvfrom(65565) data=s.recvfrom(65535)
try: try:
if "HTTP" in data[0][54:]: if "HTTP" in data[0][54:]:
print("[","="*30,']') print("[","="*30,']')