GithubHelp home page GithubHelp logo

literallyethical / network-hound Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 101 KB

Network Hound is a network packet sniffer that captures and analyzes network packets on a given interface.

License: MIT License

Python 100.00%
monitoring network-analysis networking packet-analysis packet-capture packet-sniffer python ethical-hacking tcp traffic-analysis

network-hound's Introduction

Network Hound

title image

This is a network packet sniffer that captures and analyzes network packets on a given interface. The tool is implemented using Scapy and Pandas. The packets can be saved to a csv file for later analysis. The tool can filter the packets based on TCP and/or UDP protocols and source and destination IP adresses.

Features

  • Sniff packets on a given interface
  • Filter packets based on TCP and/or UDP protocols and source and destination IP addresses
  • Display captured packets on the console (in a readable table format)
  • Save captured packets to a csv file for later analysis

Usage

python network_hound.py [-h] [-i INTERFACE] [-t] [-u] [-s SOURCE] [-d DESTINATION] [-o OUTPUT]

optional arguments:
-h, --help show this help message and exit
-i INTERFACE, --interface INTERFACE
The interface name (default: wlo1)
-t, --tcp Sniff TCP packets
-u, --udp Sniff UDP packets
-s SOURCE, --source SOURCE
Source IP address to filter by
-d DESTINATION, --destination DESTINATION
Destination IP address to filter by
-o OUTPUT, --output OUTPUT
Save packets to a file

Requirements

  • Scapy
  • PrettyTable
  • Pandas
  • argparse
  • socket
  • time

Installation

Recommended Way of using pip

python -m pip install scapy pandas argparse socket time prettytable

OR

python -m pip install -r requirements.txt

Examples

To sniff TCP packets on the default interface(wlo1):

python network_hound.py

To sniff both TCP and UDP packets on the default interface:

python network_hound.py -t -u

To filter packets based on source and destination IP addresses:

python network_hound.py -t -u -s <source_ip> -d <destination_ip>

To save captured packets to a file:

python network_hound.py -t -o <file_name>
Warning!

CSV files will be write-protected, don't try to rewrite them again.

Support

If you have any issues or questions, please feel free to contact me at [email protected]

Disclaimer

This tool is intended for legitimate and legal use only. Any unauthorized use of this tool is strictly prohibited.

network-hound's People

Contributors

literallyethical avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

davidthinh

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.