Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 756 Bytes

README.md

File metadata and controls

47 lines (35 loc) · 756 Bytes

Trafficker

Python 3.6

A tool used to send arbitrary packet or parse pcap packet.

Installation

only support Linux momentarily

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

from Trafficker.packets.pcap import Pcap
p = Pcap("./pcaps/test.pcap")
for packetNumber, p in p.parse():
    print(packetNumber, p, p.json())

or

from Trafficker.packets.pcap import Pcap
from Trafficker.handlers.tcp import tcpHandler
p = Pcap("./pcaps/test.pcap")
pcap.parseWithCallback([tcpHandler])