Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
import fcntl
import os
import struct
import subprocess
import time
from array import array
@shawnlower
shawnlower / tun-ping-linux.py
Created July 4, 2016 09:06 — forked from glacjay/tun-ping-linux.py
Reading/writing Linux's TUN/TAP device using Python.
#!/usr/bin/python3
import fcntl
import os
import struct
import subprocess
import time
from array import array