I am trying to run the Data_prep.py file on my PC, and I see the following issue:
Start processing normal-1ue data
This could take up to an hour or more
0%| | 0/7 [00:00<?, ?it/s]
Traceback (most recent call last):
File "/Users/adeelnasrullah/Downloads/5GAD-main/Data_prep.py", line 40, in
pcap = sniff(offline=str(file))
File "/Users/adeelnasrullah/opt/anaconda3/lib/python3.9/site-packages/scapy/sendrecv.py", line 1263, in sniff
sniffer._run(*args, **kwargs)
File "/Users/adeelnasrullah/opt/anaconda3/lib/python3.9/site-packages/scapy/sendrecv.py", line 1072, in _run
sniff_sockets.update((PcapReader(
File "/Users/adeelnasrullah/opt/anaconda3/lib/python3.9/site-packages/scapy/sendrecv.py", line 1072, in
sniff_sockets.update((PcapReader(
File "/Users/adeelnasrullah/opt/anaconda3/lib/python3.9/site-packages/scapy/utils.py", line 1172, in call
raise Scapy_Exception("Not a supported capture file")
scapy.error.Scapy_Exception: Not a supported capture file
Looks like there is a format issue with pcapng files. Opening these files with wireshark also fails with wrong file format error.
Any help in this would be really appreciated.