You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The HTTP layer detection doesn't seems to work properly. I have a sample pcap file with a single packet that is correctly parsed by Wireshark but not by this script:
from scapy.all import *
from scapy_http.http import HTTPRequest
packets = rdpcap('scapy_repro.pcap')
for packet in packets:
print
print packet.show()
print
print "HTTP" if packet.haslayer(HTTPRequest) else "NOT HTTP"
it is not from port 80
only 80 will have layer http and be judged
codes in scapy-http/scapy_http/http.py 260-265
bind_layers(TCP, HTTP, dport=80)
bind_layers(TCP, HTTP, sport=80)
The HTTP layer detection doesn't seems to work properly. I have a sample
pcap
file with a single packet that is correctly parsed by Wireshark but not by this script:Probably linked with #31?
I might be wrong but I think this evaluation is not correct as the type is not a string?
The text was updated successfully, but these errors were encountered: