Use local dhcpd.leases file instead of the global one
https://github.com/deltaxflux/flux/issues/5 Use a local copy of the dhcpd.leases file in order to prevent dhcpd not starting up due to a missing leases file.
This commit is contained in:
parent
2f03be3705
commit
2228a33874
|
@ -1362,6 +1362,9 @@ range $RANG_IP.100 $RANG_IP.250;
|
|||
}
|
||||
" >$DUMP_PATH/dhcpd.conf
|
||||
|
||||
#create an empty leases file
|
||||
touch $DUMP_PATH/dhcpd.leases
|
||||
|
||||
# creates Lighttpd web-server
|
||||
echo "server.document-root = \"$DUMP_PATH/data/\"
|
||||
|
||||
|
@ -1511,7 +1514,7 @@ function attack {
|
|||
|
||||
|
||||
killall dhcpd &> $flux_output_device
|
||||
xterm -bg black -fg green $TOPLEFT -T DHCP -e "dhcpd -d -f -cf "$DUMP_PATH/dhcpd.conf" $interfaceroutear 2>&1 | tee -a $DUMP_PATH/clientes.txt" &
|
||||
xterm -bg black -fg green $TOPLEFT -T DHCP -e "dhcpd -d -f -lf "$DUMP_PATH/dhcpd.leases" -cf "$DUMP_PATH/dhcpd.conf" $interfaceroutear 2>&1 | tee -a $DUMP_PATH/clientes.txt" &
|
||||
killall $(netstat -lnptu | grep ":53" | grep "LISTEN" | awk '{print $7}' | cut -d "/" -f 2) &> $flux_output_device
|
||||
xterm $BOTTOMLEFT -bg "#000000" -fg "#99CCFF" -title "FAKEDNS" -e python $DUMP_PATH/fakedns &
|
||||
|
||||
|
|
Loading…
Reference in New Issue