import sys import getopt import random from scapy.all import Ether, BOOTP, IP, UDP, DHCP, sendp, sniff, get_if_addr dev = "enp3s0f1" gateway = None nameserver