-
-
Save karnauskas/cf54b22e0f32ad3e92ef42914673fb27 to your computer and use it in GitHub Desktop.
DHCP Server with Python Scapy
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
from scapy.all import DHCP_am | |
from scapy.base_classes import Net | |
dhcp_server = DHCP_am(iface='eth1', domain='example.com', | |
pool=Net('192.168.10.0/24'), | |
network='192.168.10.0/24', | |
gw='192.168.10.254', | |
renewal_time=600, lease_time=3600) | |
dhcp_server() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment