Giter VIP home page Giter VIP logo

co892_2019_assessment2's Introduction

Assessment #2

An Homemade packet sniffer

GitHub issues https://hub.docker.com/r/arthurknoep/sniffer

This project was carried out as part of the CO892 Advanced Network Security module at the University of Kent.

Project information

  • Student ID: 19909342
  • Student login: adbk2
  • Filter used for out.pcap: tcp port 443
  • Originally compiled with gcc 9.2.1 on Ubuntu 19.10

Build instruction

With cmake

This project require the lib_pcap in order to compile and run. Install it before continuing.

## For Debian/Ubuntu
apt install libpcap-dev cmake build-essential

## For Fedora 
dnf install libpcap-devel cmake make automake gcc gcc-c++ kernel-devel

Building:

mkdir build
cd build/
cmake ..
make
With docker
Building from source
docker build -t sniffer .
Pulling pre-built image

Alternatively, a pre-built image is available on docker hub

docker pull arthurknoep/sniffer

Usage

docker run --net host --rm sniffer
# Alternatively, if you use my pre-built image
docker run --net host --rm arthurknoep/sniffer

# Example usage
docker run --net host --rm sniffer -l
docker run --net host --rm -v `pwd`/out:/out sniffer -s wlp2s0 -o /out/cap.pcap

Usage

Usage: ./sniffer (-l|-s) [OPTION]
Sniff 10 packets from the device specified in option and store them in a pcap file

 -l, --list-devices		list network interfaces
 -s, --sniff=DEVICE		sniff 10 packets from DEVICE

 -f, --filter=FILTER		apply specific filter
 -o, --out=OUTPUT		write captured packet to OUTPUT, default to out.pcap

co892_2019_assessment2's People

Contributors

arthurknoep avatar

Watchers

James Cloos 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.