[Python] How can I convert a pcap into CSV using python

Discussão em 'Python' iniciado por Stack, Outubro 6, 2024.

  1. Stack

    Stack Membro Participativo

    I need to convert a pcap file that I have on my drive into a csv file using python code ( I know how to do it using wireshark UI ) but I need to do it throught a python code,

    I already tried this code:

    import os
    os.system("tshark -r mirai.pcap -T fields -e ip.src -e frame.len -e ip.proto -E separatorr=, -E occurrence=f > traffic.csv")


    I get a result file but it's empty one.

    Can anyone help me please.

    Continue reading...

Compartilhe esta Página