fast, simple packet creation / parsing, with definitions for the basic TCP/IP protocols
Project description
Installation
pip install dpkt
Documentation
Recent Stuff
[2021-02-07] Released 1.9.5, thanks a bunch to all contributors but mostly to @crocogorical for doing most of the work :)
- 1.9.5 Changelog:
New example showing how to process truncated DNS packets (examples/print_dns_truncated.py).
Corrected typo in BGP.notification attribute.
BGP.Update.Attribute.MPReachNLRI.SNPA now inherits from dpkt.Packet.
Byteorder is now specified when packing GRE optional fields.
#517: Improvement to Radiotap class, supporting multi-byte and misaligned flags fields. Endianness is now enforced.
Github issue template added for bug reporting.
Compliance with flake8 formatting.
asn1.py::utctime method now returns time in UTC, instead of local.
Allow multiple InterfaceDescriptionBlocks with pcapng.Writer.
SCTP decoder DATA chunk padding aligned to 4-bytes, and improved handling of .data field.
IEEE80211 DELBA frame now works on big and little-endian architectures.
Introduce compat.ntole which converts from network byte order to little-endian byte order, regardless of host endianness.
Ethernet class now attempts to unpack the padding and trailer if present.
Added anonymous property to cipher suites, which returns True if the cipher suite starts with ‘anon’.
Added pfs (Perfect Forward Secrecy) and aead (Authenticated Encryption with Additional Data) properties to cipher suites.
Added old CHACHA20-POLY1305 related cipher suites to TLS CipherSuite list.
Remove redundant num_compression_methods from TLSClientHello
Testing improved from 90% coverage to over 99%.
About
This code is based on dpkt code lead by Dug Song and is now being maintained and improved by an extended set of contributors and developers.
LICENSE
BSD 3-Clause
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
File details
Details for the file dpkt-1.9.6.tar.gz
.
File metadata
- Download URL: dpkt-1.9.6.tar.gz
- Upload date:
- Size: 160.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5737010fd420d142e02ed04fa616edd1fc05e414980baef594f72287c875eef |
|
MD5 | d51fc97a11912a6cbd93764a52a9bcc8 |
|
BLAKE2b-256 | 9aeed66a3ab4a229008d45a10b384813ea1fb5fc585650c97a9d982b992f1cc3 |
File details
Details for the file dpkt-1.9.6-py3-none-any.whl
.
File metadata
- Download URL: dpkt-1.9.6-py3-none-any.whl
- Upload date:
- Size: 178.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1739c594297b2b6321dfbf133e3f8dcf54c0ef54cb5739d204331d34a0d8fe4 |
|
MD5 | fb5bbeee088b7b82dcbb943b92643617 |
|
BLAKE2b-256 | 976b24d11bc33fc729d770fa1f564d3835b3a183bc3939cde1749d46b39f628f |