Skip to main content

candump and write a pcap using scapy (and python-can)

Project description

candump and write a pcap using scapy (and python-can)

NOTE: you probably don't need this tool. If you just want to use wireshark to open a candump log file you can do that directly inside wireshark in the newest versions.

 > python -m pip install pycanpcap
 > python -m pycanpcap.log -i cantact -c 0 -w can.pcap
WARNING: No libpcap provider available ! pcap won't be used
WARNING: Wireshark is installed, but cannot read manuf !
(000.008538) PythonCANSocket_cantact_0 007#0000b5f8
(000.008700) PythonCANSocket_cantact_0 01b#0000b5f8
(000.008961) PythonCANSocket_cantact_0 055#01025afc328e5b3e
(000.009318) PythonCANSocket_cantact_0 00f#f80fb5f831
(000.018648) PythonCANSocket_cantact_0 007#0000b6f8
(000.018834) PythonCANSocket_cantact_0 01b#0000b6f8
(000.019378) PythonCANSocket_cantact_0 00f#f90fb6f85a
^C
  1. ignore the warnings on windows
  2. Ctrl-C when ready
  3. open can.pcap in wireshark
  4. grep the output as usual

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pycanpcap-0.3.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pycanpcap-0.3-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file pycanpcap-0.3.tar.gz.

File metadata

  • Download URL: pycanpcap-0.3.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pycanpcap-0.3.tar.gz
Algorithm Hash digest
SHA256 a2d8045513df80b1e39a4158cba94d3c21f6e1012b023fcfbe750bbc21603705
MD5 317337dca095f196247b7cb156269db3
BLAKE2b-256 180ebbafe095fb70c760f60b0aee6998fa7174eae0ab27f8fd43f73a6dfc7dd4

See more details on using hashes here.

Provenance

The following attestation bundles were made for pycanpcap-0.3.tar.gz:

Publisher: python-publish.yml on BenGardiner/pycanpcap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pycanpcap-0.3-py3-none-any.whl.

File metadata

  • Download URL: pycanpcap-0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pycanpcap-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d0e17ee28b9ed897571627f56a9615fe18c76bf6c8f361d18eaeb44ca9cc9de2
MD5 e48c092a2fe6d0aaec46819d5d544cca
BLAKE2b-256 ded8684d5cd0db00f902cf9e9bb2473d23296b2e9edd7fb258ef858e45ec90e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for pycanpcap-0.3-py3-none-any.whl:

Publisher: python-publish.yml on BenGardiner/pycanpcap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page