Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/LyleMi/Trafficker
a tool used to raw traffic / http request
https://github.com/LyleMi/Trafficker
packets
Last synced: 2 months ago
JSON representation
a tool used to raw traffic / http request
- Host: GitHub
- URL: https://github.com/LyleMi/Trafficker
- Owner: LyleMi
- License: mit
- Created: 2016-10-28T13:12:47.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-10-17T10:44:04.000Z (over 5 years ago)
- Last Synced: 2024-05-22T19:33:44.679Z (8 months ago)
- Topics: packets
- Language: Python
- Size: 1.57 MB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-scs - 2016 - Trafficker
README
# Trafficker
[![Python 3.6](https://img.shields.io/badge/Python-3.6-blue.svg)](http://www.python.org/download/)
A tool used to send arbitrary packet or parse pcap packet.
## Installation
> only support Linux momentarily
```shell
git clone https://github.com/LyleMi/Trafficker.git
python setup.py install
```## Feature
### Suppoerted Protocol
* arp
* dns
* icmp
* igmp
* ip
* pop
* smtp
* tcp
* udp
* vlan### Usage
```python
from Trafficker.packets.pcap import Pcap
p = Pcap("./pcaps/test.pcap")
for packetNumber, p in p.parse():
print(packetNumber, p, p.json())
```or
```python
from Trafficker.packets.pcap import Pcap
from Trafficker.handlers.tcp import tcpHandler
p = Pcap("./pcaps/test.pcap")
pcap.parseWithCallback([tcpHandler])
```