GithubHelp home page GithubHelp logo

5l1v3r1 / rsniffer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vponomarev/rsniffer

0.0 1.0 0.0 66 KB

Remote Sniffer: Tool for sending sniffered PCAP traffic in realtime into Winows/PC box with GUI Wireshark

License: GNU General Public License v2.0

Makefile 1.10% C 98.90%

rsniffer's Introduction

RSniffer
==================================================

RSniffer is a small tool, that allows to send pcap stream to remote host for futher analysis.
Main idea is to analyze traffic of the linux server using GUI Wireshark on desktop PC.
Optionally you can collect the traffic of several servers into dedicated trace server.

Usage scheme:
(Linux server) RSniffer ==[UDP TZSP/ERSPAN stream]==> (Linux/windows desktop) GUI Wireshark


How to run without ROOT privileges
==================================================
Normally rsniffer requires root privilleges to listen interfaces.
So, you can run it from root user or via sudo.

But there is an alternative solution - use setcap to grant rsniffer binary with required privileges.
Just run the following command:
[root@server ~]# setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' ./rsniffer


HELP
==================================================
rsniffer: capture packets via libpcap and transmit captured flow to external box using TZSP or ERSPAN protocol.

Usage: ./rsniffer [-h] [-l] [-E] [-s] [-i INTERFACE] [-p DEST_PORT] DEST_HOST FILTER_RULE
       ./rsniffer -l
	-v		Show version
	-l		List available INTERFACEs
	-h		Display this message
	-i		Capture interface (default: first interface)
	-p		Destination UDP port (default: 37008)
	-E		Use ERSPAN protocol (default: TZSP)
	-s		Silent: do not print counters during processing
	-x		TZSP: Add packet counter tag
	DEST_HOST	Send UDP flow to specified host
	FILTER_RULE	Filter rule for pcap library


How to compile
==================================================
RSniffer requires pcap-devel library to be installed on your server.
Additionally you also need:
gcc
make
libpcap-dev

rsniffer's People

Contributors

allesanddro avatar thefloweringash avatar vponomarev avatar

Watchers

 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.