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
- ignore the warnings on windows
- Ctrl-C when ready
- open can.pcap in wireshark
- grep the output as usual
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2d8045513df80b1e39a4158cba94d3c21f6e1012b023fcfbe750bbc21603705
|
|
| MD5 |
317337dca095f196247b7cb156269db3
|
|
| BLAKE2b-256 |
180ebbafe095fb70c760f60b0aee6998fa7174eae0ab27f8fd43f73a6dfc7dd4
|
Provenance
The following attestation bundles were made for pycanpcap-0.3.tar.gz:
Publisher:
python-publish.yml on BenGardiner/pycanpcap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pycanpcap-0.3.tar.gz -
Subject digest:
a2d8045513df80b1e39a4158cba94d3c21f6e1012b023fcfbe750bbc21603705 - Sigstore transparency entry: 728435665
- Sigstore integration time:
-
Permalink:
BenGardiner/pycanpcap@a214d2b1262905ef70ab5f9d23a50252cd33f04d -
Branch / Tag:
refs/tags/v0.3 - Owner: https://github.com/BenGardiner
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@a214d2b1262905ef70ab5f9d23a50252cd33f04d -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0e17ee28b9ed897571627f56a9615fe18c76bf6c8f361d18eaeb44ca9cc9de2
|
|
| MD5 |
e48c092a2fe6d0aaec46819d5d544cca
|
|
| BLAKE2b-256 |
ded8684d5cd0db00f902cf9e9bb2473d23296b2e9edd7fb258ef858e45ec90e6
|
Provenance
The following attestation bundles were made for pycanpcap-0.3-py3-none-any.whl:
Publisher:
python-publish.yml on BenGardiner/pycanpcap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pycanpcap-0.3-py3-none-any.whl -
Subject digest:
d0e17ee28b9ed897571627f56a9615fe18c76bf6c8f361d18eaeb44ca9cc9de2 - Sigstore transparency entry: 728435666
- Sigstore integration time:
-
Permalink:
BenGardiner/pycanpcap@a214d2b1262905ef70ab5f9d23a50252cd33f04d -
Branch / Tag:
refs/tags/v0.3 - Owner: https://github.com/BenGardiner
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@a214d2b1262905ef70ab5f9d23a50252cd33f04d -
Trigger Event:
release
-
Statement type: