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
Hello, I've run into a problem when analysing a pcap dump:
$ python src/main.py -f BT-20220314.pcap --summary
[INFO]
____ _ __
/ __ \(_)____________ _____/ /_____ _____
/ / / / / ___/ ___/ _ \/ ___/ __/ __ \/ ___/
/ /_/ / (__ |__ ) __/ /__/ /_/ /_/ / /
/_____/_/____/____/\___/\___/\__/\____/_/
[INFO] Loading "BT-20220314.pcap"...
Traceback (most recent call last):
File "/home/user/ddos_dissector/src/main.py", line 38, in <module>
data: pd.DataFrame = pd.concat([read_file(f, filetype) for f in args.files]) # Read the FLOW file(s) into a dataframe
File "/home/user/ddos_dissector/src/main.py", line 38, in <listcomp>
data: pd.DataFrame = pd.concat([read_file(f, filetype) for f in args.files]) # Read the FLOW file(s) into a dataframe
File "/home/user/ddos_dissector/src/reader.py", line 178, in read_file
return read_pcap(filename)
File "/home/user/ddos_dissector/src/reader.py", line 124, in read_pcap
data: pd.DataFrame = pd.read_csv(output_buffer, parse_dates=['frame.time'], low_memory=False)
File "/home/user/ddos_dissector/python-venv/lib/python3.9/site-packages/pandas/util/_decorators.py", line 311, in wrapper
return func(*args, **kwargs)
File "/home/user/ddos_dissector/python-venv/lib/python3.9/site-packages/pandas/io/parsers/readers.py", line 680, in read_csv
return _read(filepath_or_buffer, kwds)
File "/home/user/ddos_dissector/python-venv/lib/python3.9/site-packages/pandas/io/parsers/readers.py", line 581, in _read
return parser.read(nrows)
File "/home/user/ddos_dissector/python-venv/lib/python3.9/site-packages/pandas/io/parsers/readers.py", line 1250, in read
index, columns, col_dict = self._engine.read(nrows)
File "/home/user/ddos_dissector/python-venv/lib/python3.9/site-packages/pandas/io/parsers/c_parser_wrapper.py", line 230, in read
data = self._reader.read(nrows)
File "pandas/_libs/parsers.pyx", line 787, in pandas._libs.parsers.TextReader.read
File "pandas/_libs/parsers.pyx", line 876, in pandas._libs.parsers.TextReader._read_rows
File "pandas/_libs/parsers.pyx", line 1960, in pandas._libs.parsers.raise_parser_error
pandas.errors.ParserError: Error tokenizing data. C error: Expected 24 fields in line 145732, saw 25
I'm not really sure how to analyze this further. The dump loads fine in wireshark.
The text was updated successfully, but these errors were encountered:
Hello, I've run into a problem when analysing a pcap dump:
I'm not really sure how to analyze this further. The dump loads fine in wireshark.
The text was updated successfully, but these errors were encountered: