The python script creates a raw socket and sniffs the incoming packets. The Ethernet, IP, ICMP, TCP and UDP headers are displayed in the terminal plus the payload packet.
KDE Neon
Install Python3.6. Checkout this tutorial: https://docs.python-guide.org/starting/install3/linux/#install3-linux
Execute the script with super-user permissions. The script makes use of 'socket' library which needs administration level to create a raw socket.
Usage: sudo ./sniffer.py
By am0nt031r0