Skip to main content

Driver PCAP parser

https://img.shields.io/pypi/v/driver_pcap_parser.svg https://img.shields.io/travis/andrke/driver_pcap_parser.svg Documentation Status

Python PCAP file parser for Teltonika drivers

Features

  • Parses PCAP file and detects TELTONIKA serial number

  • Add Ruptela serial number parser

  • Add VT10 serial number parser

Usage

$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip install driver_pcap_parser
$ sudo timeout 60s tcpdump -i eth0 -G 60 'dst port 123 and dst host 1.2.3.4' -w '/tmp/log.pcap'
$ driver_pcap_parser -f /tmp/log.pcap

{'serial': '123', 'src_ip': '1.1.1.1', 'dst_ip': '1.1.1.2', 'tcp_sport': 37767, 'tcp_dport': 21300, 'src_mac': 'a1:b2:c3:d4:e5:f6', 'dst_mac': 'a1:b2:c3:d4:e5:f7', 'time': Decimal('1616154926.586344')}
{'serial': '112', 'src_ip': '1.1.1.1', 'dst_ip': '1.1.1.2', 'tcp_sport': 32287, 'tcp_dport': 21300, 'src_mac': 'a1:b2:c3:d4:e5:f6', 'dst_mac': 'a1:b2:c3:d4:e5:f7', 'time': Decimal('1616154926.612047')}
{'serial': '111', 'src_ip': '1.1.1.1', 'dst_ip': '1.1.1.2', 'tcp_sport': 18308, 'tcp_dport': 21300, 'src_mac': 'a1:b2:c3:d4:e5:f6', 'dst_mac': 'a1:b2:c3:d4:e5:f7', 'time': Decimal('1616154926.660903')}

Credits

This packge was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2021-03-18)

  • First release on PyPI.

Metadata

Release files for driver-pcap-parser 0.1.24

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

Source distribution (sdist)

Source distribution for driver-pcap-parser 0.1.24
File Size Uploaded Provenance Actions
driver_pcap_parser-0.1.24.tar.gz 17.7 kB Without provenance Details for driver_pcap_parser-0.1.24.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for driver-pcap-parser 0.1.24
File Interpreter ABI Platform Actions
driver_pcap_parser-0.1.24-py2.py3-none-any.whl Python 3, Python 2 none any Details for driver_pcap_parser-0.1.24-py2.py3-none-any.whl

Total release size: 24.4 kB

Release files / driver_pcap_parser-0.1.24.tar.gz

Download URL driver_pcap_parser-0.1.24.tar.gz
Size 17.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2f6fad3233646ec227a674ce267ef41540443ce33562c2981bfd46b4de195b95
BLAKE2b-256 checksum
How to use checksums
6f1c03b5b2c8548cf9e26c7c55ce741eb4c4db6fc49f832bf0d50d97e4eb2373
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1

Release files / driver_pcap_parser-0.1.24-py2.py3-none-any.whl

Download URL driver_pcap_parser-0.1.24-py2.py3-none-any.whl
Size 6.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
be66811d40355544ffef3103a56d2fa7fb09a57797892d2a8efb99bdf6218c70
BLAKE2b-256 checksum
How to use checksums
da9ada0e3f32314e91b5ae19a07e333faf5c2fc8d9bde3bf01bec852e0eef8e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1

Security for driver-pcap-parser 0.1.24

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