Skip to content

pedrumj2/Pcap_Extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

PCAP Feature Extractor

This program takes as input a PCAP file and extracts the different network layer headers and prints them out in a csv format. The output is printed in the terminal.

Usage 1, feat_extract.c

Compile the program:

$ gcc feature_extract.c

run the program. The program requires as argument the path to the pcap file:

$ ./a.out ../Input.csv

The output will be printed on the terminal which can be redirected to an output file:

$ ./a.out ../Input.csv >> output.csv

Usage 2, tshark_script.sh

call the script as follows:

tshark_script.sh file.pcap >  output.csv

where file.pcap is the input .pcap file.

About

Extract headers from pcap files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •