Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

解析一个pcap文件时报错 #5

Open
XueYanYu opened this issue Apr 19, 2022 · 1 comment
Open

解析一个pcap文件时报错 #5

XueYanYu opened this issue Apr 19, 2022 · 1 comment

Comments

@XueYanYu
Copy link

文件链接:https://mcfp.felk.cvut.cz/publicDatasets/IoT-23-Dataset/IndividualScenarios/CTU-IoT-Malware-Capture-1-1/
报错信息:
C:\Users\username\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\numpy\core_asarray.py:102: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
return array(a, dtype, copy=False, order=order)
Traceback (most recent call last):
File "C:\Users\username\Desktop\P2\tshark.py", line 12, in
GetSignalSample()
File "C:\Users\username\Desktop\P2\tshark.py", line 4, in GetSignalSample
result = extract(
File "C:\Users\username\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\flowcontainer\extractor.py", line 36, in extract
result = flow_generator.combine(result,extension)
File "C:\Users\username\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\flowcontainer\flow_generator.py", line 32, in combine
result[key] = result.get(key, Flow()).add(packet,extention)
File "C:\Users\username\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\flowcontainer\flows.py", line 113, in add
raise ValueError("Packet {} incompatible with flow {}" .format(packet, self))
ValueError: Packet ['2018-05-09-192.168.100.103.pcap' 'udp' '11757' '1525891666.012055000'
'40' '192.168.100.103' '22.224.141.116' '43763' '26597' '20' list([])] incompatible with flow [Time 02:47:45.011902 to 02:47:45.011902] 192.168.100.103:43763 <-> 100.118.73.85:23129 [Payload Packet Size Length 1] [extension: {}]

@jmhIcoding
Copy link
Owner

这个网络流是长流,导致五元组信息错乱了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants