Have you tried to simply send packets and see if it works for a start? Is it working? Even with iface="Local Area Connection 3"
?
Anyway, to do what you want, you should use an AnsweringMachine
. Scapy already comes with an implementation, BOOTP_am
, you might want to look at the code; you can use it directly with the Scapy function bootpd()
.
For a start you can just use the bootpd()
with no parameter; the options you can use after (when/if it works) are (with their default values, taken from https://bitbucket.org/secdev/scapy/src/1d36e8fd9df8dfddbb5e9b3819910ace5e21e233/scapy/layers/dhcp.py?at=default#cl-300):
pool=Net("192.168.1.128/25")
network="192.168.1.0/24",gw="192.168.1.1"
domain="localnet"