Skip to content

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

License

Notifications You must be signed in to change notification settings

saurabh10041998/Picaplay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages