dhcp

dhcp server including dhcp discover,offer,request,ack problem

dhcp server including dhcp discover,offer,request,ack problem Question: this is my dhcp server: import socket from scapy.all import * from scapy.layers.dhcp import BOOTP, DHCP from scapy.layers.inet import UDP, IP from scapy.layers.l2 import Ether def dhcp_server(): # Server parameters server_ips = [‘127.0.0.1’] server_port = 67 # Create a UDP socket for DHCP communication dhcp_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) …

Total answers: 2

How to add domain name in DHCP offer packet with scapy?

How to add domain name in DHCP offer packet with scapy? Question: I have written a DHCP server code in python using Scapy that can sniff discovery messages and send an appropriate offer message with an IP for a client. I tried to insert another option in the packet regarding the DNS server IP, but …

Total answers: 1