在Wireshark GUI中,我们可以将UPD数据包解码为RTP,在tshark中使用d <layer type>==<selector>,<decode-as protocol>也可以做到这一点
我如何在PyShark中做同样的事情?我试着做了以下事情
import pyshark
cap = pyshark.FileCapture("Test.pcap", display filter='udp', decode_as='rtp')
for pkt in cap:
print(pkt)但是它显示了以下错误
AttributeError: 'str' object has no attribute 'items'发布于 2019-02-19 01:07:15
decode_as参数应该是字典,而不是字符串示例:
decode_as={'udp.port==1234':'rtp'}https://stackoverflow.com/questions/54751192
复制相似问题