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)

 > 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.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

pycanpcap-0.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycanpcap-0.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for pycanpcap-0.2.tar.gz
Algorithm Hash digest
SHA256 9311ed7236574fc4ef02d3c8bff1666d3f0f319419b1b788b80d45d30b5ee99b
MD5 5b0269b8a71fda404d35a56fb6fb9277
BLAKE2b-256 83907470051526251cbb271a6d37811bf2625105ae71bcc78de6750483b8f15d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycanpcap-0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for pycanpcap-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 34713d2fd09cec507cadc107cacf3c8dd58efb400f6a03e16361fe9ab3c0aaf9
MD5 6c84ce23034484ad9580650ee2a3989d
BLAKE2b-256 0d754e3e394ee15186370e22ff96dfc033d68a36ada3d114782d8b3c8582804c

See more details on using hashes here.

Supported by

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