mirror of
https://github.com/The-Art-of-Hacking/h4cker.git
synced 2025-02-02 17:34:42 -05:00
Merge pull request #40 from The-Art-of-Hacking/http_sniffer_patch1.1
Fixing TCP max packet size 65535
This commit is contained in:
commit
d60813cec1
@ -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,']')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user