Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

pcapToDITG

Generates [DITG’s] (http://traffic.comics.unina.it/software/ITG/) flow definition Files for each IP using a Packet Capture (.pcap) file as input

Installation

Usage

  • The help section of the program describes the usage details

    usage: pcap_to_ditg.py [-h] [-t START_TIME] [-e END_TIME] [-r] [-s] [-p] [-c]
                       pcap_file mapper_file list_file
    
    Generate DITG script files from a pcap file
    
    positional arguments:
      pcap_file             .pcap file to be used in generation
      mapper_file           Mapper file to be used in generation
      list_file             File containing all distinct IPs to be used in
                            generation
    
    optional arguments:
      -h, --help            show this help message and exit
      -t START_TIME, --start-time START_TIME
                            Timestamp (in sec) from which the file should be read
      -e END_TIME, --end-time END_TIME
                            Timestamp (in sec) until which the file should be read
      -r, --remove-old      Remove any older generated files if present before
                            generating new files
      -s, --same-dir        File containing all distinct IPs to be used in
                            generation
      -p, --print-all-ips   Print all distinct IPs appearing in the pcap file and
                            exit
      -c, --clean           Remove any older generated files and exit the program
  • The format of list_file is as follows:

    10.0.1.10,
    10.0.2.10,
    .
    .
    .
    • These are the IPs that are appearing in the PCAP file (as specified by pcap_file argument)

    • You can generate this list automatically by running the program with -p option

      $ touch list_file
      $ python pcap_to_ditg.py -p pcap_file mapper_file list_file > list_file
    • Note: While running the program with -p option, the files mapper_file and list_file are not actually used but still have to be provided as argument and should exist.

  • The format of mapper_file is as follows:

    Host,Start_row,End_row,Number
    h1,1734,1902,169
    h2,1528,1733,206
    .
    .
    .

Metadata

Release files for pcap_to_ditg 0.1.1-alpha

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pcap_to_ditg 0.1.1-alpha
File Size Uploaded Provenance Actions
pcap_to_ditg-0.1.1-alpha.tar.gz 4.4 kB Without provenance Details for pcap_to_ditg-0.1.1-alpha.tar.gz

Release files / pcap_to_ditg-0.1.1-alpha.tar.gz

Download URL pcap_to_ditg-0.1.1-alpha.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f55922beeaa334d9446dd30f90156d6b4480ac765bbfe9dfbdbdf92b10988eef
BLAKE2b-256 checksum
How to use checksums
158edcf66ceb194ad06c8b3c32195844dd5a2f4da7b0b5e52f5491f69ab8a629
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pcap_to_ditg 0.1.1-alpha

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page