Skip to content

Instantly share code, notes, and snippets.

View SteveBarnes-BH's full-sized avatar
🏠
Working from home

Steve Barnes SteveBarnes-BH

🏠
Working from home
View GitHub Profile
@SteveBarnes-BH
SteveBarnes-BH / dhcp_server.py
Created August 21, 2022 09:08 — forked from yosshy/dhcp_server.py
DHCP Server with Python Scapy
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()