andrewbonney / mdns-debugger Goto Github PK
View Code? Open in Web Editor NEWA utility to analyse network traffic for malformed mDNS packets, and unusually high packet rates
License: Apache License 2.0
A utility to analyse network traffic for malformed mDNS packets, and unusually high packet rates
License: Apache License 2.0
Just played with your package a bit and noticed that most of my traffic doesn't show up in the printed summary (and it displays way more received packets than actually displayed).
Problem lies in the dpkt
package which doesn't support parsing the ResourceRecord NSEC (47). NSEC is heavily used in mdns and is defined to be a negative response. AFAIK mDNSResponder includes a NSEC record in every response it sends, or at least pretty much all of my Apple Bonjour certified accessories.
The problem is that dpkt
doesn't just ignore that one record it can't parse, but completely refuses to continue to parse the packet and throws a UnpackError
: RR type 47 is not supported
.
The error bubbles up into parse_packet
where it is silently ignored
mdns-debugger/mdns-debugger.py
Lines 319 to 322 in 1a5a12d
A new python3 has been released and it caused a breaking change in 3.10
Traceback (most recent call last):
File "/mnt/disk0/Users/user/Nextcloud/PC-SYNC/Projects/_source_codes/github/mdns-debugger/mdns-debugger.py", line 464, in <module>
(header, packet) = cap.next()
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.