How Do I Use Raw Socket in Python?

You do it like this: First you disable your network card’s automatic checksumming: sudo ethtool -K eth1 tx off And then send your dodgy frame from python 2 (You’ll have to convert to Python 3 yourself): #!/usr/bin/env python from socket import socket, AF_PACKET, SOCK_RAW s = socket(AF_PACKET, SOCK_RAW) s.bind((“eth1”, 0)) # We’re putting together an … Read more