Skip to content

Instantly share code, notes, and snippets.

@chriswoolfe
chriswoolfe / tap_interface.py
Created April 24, 2018 00:35 — forked from cj-dimaggio/tap_interface.py
ARP responder using Scapy
# Import all of Scapy's code so we can use it as a library (rather than the runtime environment it also supports)
# I don't like this "import *" and would much rather import Scapy functionality under a namespace but I'm fairly
# new to the library and my initial efforts seemed to throw some errors so I just copied this from other sources.
# Don't judge me.
from scapy.all import *
import os, sys
import select
# For non python people, this is just python's, somewhat strange, way of saying
# "If this file is being executed and not just imported into another file"