Skip to content

Latest commit

 

History

History
35 lines (20 loc) · 900 Bytes

README.md

File metadata and controls

35 lines (20 loc) · 900 Bytes

PicaPlay

My attempt to play with PCAPs and underlying network layers in Rust

Background

Previously I worked with pcap parsing and pcap rewriting in python3 using scapy library. (Which is a beast in itself)

Now I am trying to build same things and gain more understanding in Rust.

Library being used

  • pnet: I am using this library to learn the packet crafting from first principle point of view
  • pcap : Reading the pcap and pcapng file format file

Side notes

To work with these crates, make sure you have installed libpcap on the vm. On ubuntu VM, this can be done using

sudo apt install libpcap-dev

Focus will be on following tasks

  • Read packets from pcap/pcapng file
  • Decode tcp packet out of it
  • Mutate Some of field of tcp packet
  • Rewrite the modified packet back to pcap
  • Send this packet to some Tcp process on remote host