vnetman / pcap2csv

Use PyShark and scapy to read fields from a pcap file and populate a CSV
MIT License
53 stars 23 forks source link

input .pcap file in the program #2

Open ihamieh opened 5 years ago

ihamieh commented 5 years ago

I'm not sure how to run the program. i tried to run it using the terminal python3 pcap2csv --pcap filename.pcap --csv filename.csv and it didnt work. Also, i tried to modify the code to run my files and it didnt work, as follows:

def command_line_args(): """Helper called from main() to parse the command line arguments"""

parser = argparse.ArgumentParser()
parser.add_argument('--pcap', metavar="/home/PycharmProjects/pcap2csv/filename.pcap",
                    help='pcap file to parse', required=True)
parser.add_argument('--csv', metavar="/home/PycharmProjects/pcap2csv/filename.csv",
                    help='csv file to create', required=True)
args = parser.parse_args()
return args

and it wont run!

can you please help

daluu commented 1 year ago

what errors did you get?

southwestflavorz commented 1 year ago

I get no errors, it just hangs.

baxincs commented 1 year ago

Same here, it has been hanging for 5 hours. Can you please help?