Skip to content

Instantly share code, notes, and snippets.

@TyagiAnuj
TyagiAnuj / sendeth.py
Created May 5, 2016 01:47 — forked from cslarsen/sendeth.py
One way of sending raw Ethernet packets in Python
"""Demonstrates how to construct and send raw Ethernet packets on the
network.
You probably need root privs to be able to bind to the network interface,
e.g.:
$ sudo python sendeth.py
"""
from socket import *