This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |