Giter Club home page Giter Club logo

dhcp-sniffer's Introduction

DHCP-Sniffer

This is a python based application to sniffer DHCP datagrams. What is the benefit when you use DHCP-Sniffer:

  • List assinged IPv4 address from any device in local network
  • List DHCP-option 55 of any device in local network for device identification (fingerprint)

Only support IPv4, and IPv6 not support yet...

Requirements

  • Python 3

Usage

Linux

  1. Usage
    • <-i interface> : specify sniffer interface. default is eth0.
    • <-d> : show more detail captured packet information including source/dest IP, source/dest MAC, and DHCP option 12, 50, 53, 54, 55. All DHCP broadcast are captured.
    $ python3 dhcp_sniffer.py -h
    usage: dhcp_sniffer.py [-h] [-i INTERFACE] [-d]
    
    optional arguments:
      -h, --help            show this help message and exit
      -i INTERFACE, --interface INTERFACE
                            sniffer interface to get DHCP packets. default is eth0
      -d, --detail          show more detail packet information. if not set, only
                            DHCPREQUEST show.
  2. Display captured host name, MAC, ip address and DHCP-option 55. Only DHCP Request is shown.
    $ sudo pythone dhcp_sniffer.py [-i interface]
    Local Time                    Message Type        Host Name           MAC                 IPv4                Option 55
    ----------------------------------------------------------------------------------------------------------------------------------
    2017-12-25 16:36:39 +0800     DHCPREQUEST         Benson-MBP        e4:2c:56:xx:xx:xx   10.2.6.21           1,121,3,6,15,119,252,95,44,46
    2017-12-25 16:39:32 +0800     DHCPREQUEST         Benson-iPhone     b8:53:ac:xx:xx:xx   10.2.6.25           1,121,3,6,15,119,252

Windows

The differences with Linux version are below:

  • no MAC is shown
  • no argument <-i interface>
> python3.exe dhcp_sniffer_win.py

dhcp-sniffer's People

Contributors

bensonhsu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.