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
I would expect scapy.all.wrpcap(r"out.pcap", scapy.all.rdpcap(r"in.pcap")) to produce a copy of the input PCAP with packets identical to the packets in the input PCAP. Instead, LDAP packets are rebuilt, app layer data is modified (because of different ASN1_default_long_size) while lower layer data (IP length, checksums, etc.) is not modified accordingly producing invalid packets.
Brief description
I would expect
scapy.all.wrpcap(r"out.pcap", scapy.all.rdpcap(r"in.pcap"))
to produce a copy of the input PCAP with packets identical to the packets in the input PCAP. Instead, LDAP packets are rebuilt, app layer data is modified (because of differentASN1_default_long_size
) while lower layer data (IP length, checksums, etc.) is not modified accordingly producing invalid packets.pcap.zip
scapy.all.Conf.layers.filter([])
fixes this problem.Scapy version
2.6.0
Python version
Python 3.13.0 (tags/v3.13.0:60403a5, Oct 7 2024, 09:38:07) [MSC v.1941 64 bit (AMD64)] on win32
Operating system
Windows 11 Pro 23H2 (10.0.22631.4460)
Additional environment information
No response
How to reproduce
see description
Actual result
No response
Expected result
No response
Related resources
No response
The text was updated successfully, but these errors were encountered: