Code Monkey home page Code Monkey logo

parcel's Introduction

Parcel

Codacy Badge

Lightweight packet manipulation script built on top of the Linux NFQUEUE. Designed to simulate common forms of network degradation.

Effects

  • Latency
  • Packet loss
  • Restricted bandwidth
  • Packet surges

Extra features

  • Printing packets
  • Display current bandwidth
  • Saving to .pcap files
  • Filter by protocol

Installation

Method 1 - Pre-compiled Binary (Recommended)

Download the pre-compiled binary

64-bit

32-bit

Method 2 - Install and run using Python

Install - Debian or Ubuntu

sudo apt-get install build-essential python-dev libnetfilter-queue-dev
sudo pip install -r requirements.txt

Install - Arch

Install aur/python-netfilterqueue-git https://aur.archlinux.org/packages/python-netfilterqueue-git/

sudo pip install -r requirements.txt

Usage

Run sudo Parcel.py -h for the usage

Packet print

Command will print all packets flowing in and out of the current machine:

sudo python Parcel.py -p

Filter TCP

To filter for certain packets for a certain protocol the -tp is used:

sudo python Parcel.py -p -tp TCP

Usage

EFFECTS
Only one effect can be selected 

-p                      Prints all the packets
-i                      Does nothing to the packets. Used to show how much default overhead there is
-b                      Displays information on the transfer rate
-l    <delay_ms>        Applies latency on the connection   
-pl   <percentage>      Performs packet loss on the connection
-t    <delay_ms>        Creates a packet surge on a connection by the given delay 
-rl   <rate_bytes>      Limits the throughput of the program
    
OPTIONS 
Can be used with any effect

-tp   <packet-type>     Only performs an effect on the specified packet type
 -s   <filename>         Saves all collected packets into a .pcap file

parcel's People

Contributors

aidanfray avatar codacy-badger avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.