/profinet-sniffer

Python scripts to sniff and decode profinet messages

Primary LanguagePythonGNU General Public License v2.0GPL-2.0

Profinet sniffer/decoder

Python script to sniffs and decodes profinet messages. The mail goal of this project was to get familar with the profinet protocoll.

useful links:

scapy, network capturing

https://github.com/secdev/scapy (GPL2)

scapy profinet capturing secdev/scapy#1491

from scapy.all import *
from scapy.contrib.pnio import *

f = "udp and port 8892"
f = "ether proto 0x8892"
a = sniff(count=1,filter=f,iface="eth0")

mqtt

paho-mqtt https://github.com/eclipse/paho.mqtt.python