1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env python """Perform a dhcp discover on a configure NIC""" from scapy.layers.dhcp import dhcp_request from scapy.all import conf .checkIPaddr = False resp = dhcp_request(iface='enp0s25') print resp.summary()