python radius parser
A note about the library that handles radius packets in python. Will be updated from time to time.
radius addendum. There are actually several dialects, and while using the structure of the radius frame, the definition of constants changes little by little. It will be helpful to see the text file dictionary in the freeradius share. Depending on the library, this dictionary can be used as it is. However, the dictionary format is also being expanded repeatedly, and reading the dictionary may fail, so adjustments may be necessary.
pyrad
- It is good to be able to use the attribute dictionary used in freeradius and support dialects.
- It is a problem that the parsed object cannot be returned to the original packet. Specifically, forget the attribute order. Authenticator verification is a function that I would like to expect from a library dedicated to radius, but I can't help but regret not being able to do this!
- It is convenient to be able to search for fields by dictionary name. However, since it does not become a serialized and stable format, it is very difficult to handle it afterwards.
- Issues are piled up
pypacker
- Not compatible with python2.
- The code says that the area around radius is dead.
- The implementation around 802.11 is too wrong and I'm not sure where to start.
scapy
- python3 not supported. You can use scapy-python3 fork.
- Not compatible with cygwin. The environment such as pcap and command line is required as standard. Over-engineered when not in use.
- Handling of attribute array is different for each class.
- Issues are piled up
- Do not parse radius attribute
dpkt
- python3 not supported.
- Issues are piled up
pyshark
- After all, start tshark as a command instead of libwireshark.