isginf / pcap-diff Goto Github PK
View Code? Open in Web Editor NEWDiff two or more PCAP files
License: Other
Diff two or more PCAP files
License: Other
The original field is compared even if fields of the lower layer to be ignored.
I have fix available.
since Radiotap headers have time stamps and other dynamic information in them (channel freq., etc), it would be nice to be able to ignore them with ignore all layer below (i.e. the rest of the packet)
If it didn't find any different packets and the -o switch is used, then on line 361 it sends an empty array to wrpcap causing an error.
Currently getting the below errors when trying to use the program:
WARNING: No IPv4 address found on en5 !
WARNING: No IPv4 address found on ap1 !
WARNING: more No IPv4 address found on awdl0 !
ERROR: Loading module scapy.layers.bluetooth
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/main.py", line 163, in _load
mod = importlib.import_module(module)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 855, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/layers/bluetooth.py", line 1366, in <module>
class LowEnergyBeaconHelper:
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/layers/bluetooth.py", line 1377, in LowEnergyBeaconHelper
base_eir = [EIR_Hdr() / EIR_Flags(flags=[
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/base_classes.py", line 389, in __call__
i.__init__(*args, **kargs)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/packet.py", line 171, in __init__
self.fields[fname] = self.get_field(fname).any2i(self, value)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/packet.py", line 336, in get_field
print(fieldtype);
NameError: name 'fieldtype' is not defined
ERROR: Loading module scapy.layers.bluetooth4LE
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/main.py", line 163, in _load
mod = importlib.import_module(module)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 855, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/layers/bluetooth4LE.py", line 23, in <module>
from scapy.layers.bluetooth import EIR_Hdr, L2CAP_Hdr
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/layers/bluetooth.py", line 1366, in <module>
class LowEnergyBeaconHelper:
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/layers/bluetooth.py", line 1377, in LowEnergyBeaconHelper
base_eir = [EIR_Hdr() / EIR_Flags(flags=[
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/base_classes.py", line 389, in __call__
i.__init__(*args, **kargs)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/packet.py", line 171, in __init__
self.fields[fname] = self.get_field(fname).any2i(self, value)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/packet.py", line 336, in get_field
print(fieldtype);
NameError: name 'fieldtype' is not defined
ERROR: Loading module scapy.layers.dot11
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/main.py", line 163, in _load
mod = importlib.import_module(module)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 855, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/layers/dot11.py", line 1158, in <module>
class Dot11EltRSN(Dot11Elt):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/layers/dot11.py", line 1211, in Dot11EltRSN
RSNCipherSuite(cipher=0x6), RSNCipherSuite),
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/base_classes.py", line 389, in __call__
i.__init__(*args, **kargs)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/packet.py", line 171, in __init__
self.fields[fname] = self.get_field(fname).any2i(self, value)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/packet.py", line 336, in get_field
print(fieldtype);
NameError: name 'fieldtype' is not defined
ERROR: Loading module scapy.layers.x509
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/main.py", line 163, in _load
mod = importlib.import_module(module)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 855, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/layers/x509.py", line 238, in <module>
X509_RDN(),
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/base_classes.py", line 389, in __call__
i.__init__(*args, **kargs)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/packet.py", line 149, in __init__
self.init_fields()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/packet.py", line 233, in init_fields
self.do_init_cached_fields()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/packet.py", line 262, in do_init_cached_fields
self.prepare_cached_fields(self.fields_desc)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/packet.py", line 305, in prepare_cached_fields
tmp_copy = copy.deepcopy(f.default)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/copy.py", line 146, in deepcopy
y = copier(x, memo)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/copy.py", line 205, in _deepcopy_list
append(deepcopy(a, memo))
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/copy.py", line 153, in deepcopy
y = copier(memo)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/packet.py", line 222, in __deepcopy__
return self.copy()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/packet.py", line 377, in copy
clone.default_fields = self.copy_fields_dict(self.default_fields)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/packet.py", line 616, in copy_fields_dict
return {fname: self.copy_field_value(fname, fval)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/packet.py", line 616, in <dictcomp>
return {fname: self.copy_field_value(fname, fval)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/packet.py", line 610, in copy_field_value
return self.get_field(fieldname).do_copy(value)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy/packet.py", line 336, in get_field
print(fieldtype);
NameError: name 'fieldtype' is not defined
Reading file singleinput.pcap:
Found 1 packets
Reading file singleoutput.pcap:
Found 1 packets
Diffing packets:
Found 0 different packets
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.