cap 0.1.4
pip install cap
Latest version
Released:
Cap: lightweight package for use network captures
Navigation
Unverified details
These details have not been verified by PyPIMeta
- License: MIT License (MIT)
- Author: Netanel Revah
- Requires: Python >=3.10, <4.0
Classifiers
- License
- Programming Language
Project description
Cap: lightweight package for use network captures
The idea is to read and write capture files like it is really a serialized data. The API is ment to be close as possible to json and pickle APIs.
Installation:
install the package by:
pip install cap
or from the source:
python setup.py install
Usage:
read cap:
import cap
captured_packets = cap.load(open("C:\\test.cap", "rb"))
filter about somthing
ip_v4_captured_packet = []
for captured_packet in captured_packets:
if captured_packet.data[12:14] == '\x08\x00':
ip_v4_captured_packet.append(p)
dump filtered packets
cap.dump(ip_v4_captured_packet, open('C:\\new_test.cap', "wb"))
Have a nice use and please report about problems and issues. Thank you.
Project details
Unverified details
These details have not been verified by PyPIMeta
- License: MIT License (MIT)
- Author: Netanel Revah
- Requires: Python >=3.10, <4.0
Classifiers
- License
- Programming Language
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 cap-0.1.4.tar.gz
.
File metadata
- Download URL: cap-0.1.4.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.0 CPython/3.11.1 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 954996897435857e6e41dbae7b265fcd2155d63ec99a5aa3d3f6c54bf8562976 |
|
MD5 | 8a2c2e63421ae75e296cabbf017dc008 |
|
BLAKE2b-256 | a11134a9765dd73592ce76e7dbf010e934e04bf28b326dd1bbc755d435b8936e |
File details
Details for the file cap-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: cap-0.1.4-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.0 CPython/3.11.1 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f181f387706b135fd35b0d5b61de43ca65303e1b7f68288aab1552c1158b623 |
|
MD5 | 54f74d33733a032211faca45189d776d |
|
BLAKE2b-256 | fc08c2470d396d07ffd2d0e6d49e42e4207452eeb48e099a64a7a84cc9ec75d4 |