Code Monkey home page Code Monkey logo

python-packet-sniffer's Introduction

To Do

  • Interpret HTTP data (tcp.dest_port will be 80)

python-packet-sniffer's People

Contributors

buckyroberts avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-packet-sniffer's Issues

Plot a graph for sniffed packet

I am trying to plot a graph of sniffed packets.
My idea is to plot a graph for number of different protocol used every minute.
A graph which show in every minute number of UDP, TCP, ICMP, IPV4 protocol is used.
can you help me with importing this outputs and plot a graph.

ValueError: Unknown format code 'x' for object of type 'str'

# Returns MAC as string from bytes (ie AA:BB:CC:DD:EE:FF) def get_mac_addr(mac_raw): byte_str = map('{:02x}'.format, mac_raw) mac_addr = ':'.join(byte_str).upper() return mac_addr
After running the above function the sniffer program is throwing below error;
ValueError: Unknown format code 'x' for object of type 'str'
I am running with sudo command on my Ubuntu machine.

AF_PACKET

hi bro
is there a way to run this packet sniffer in windows
AF_PACKET doesn't work on windows
so what would be an alternative method of using this sniffer on windows

Thank you

Packet sniffing in Django

Hi, I am trying to same functionality for pcap file in Django, but while importing package and function getting error. while I already installed all required package mentioned in code.

please suggest me something,

Thanking you in advance

Hello bro

i excecuted the script, but in python 2 i got this error
Traceback (most recent call last):
File "sniffer.py", line 3, in
from networking.ethernet import Ethernet
ImportError: No module named networking.ethernet

and in python 3 i got this error
Traceback (most recent call last):
File "sniffer.py", line 93, in
main()
File "sniffer.py", line 24, in main
conn = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, s
AttributeError: module 'socket' has no attribute 'AF_PACKET'

could you give me a hand

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.