From 2228a338749d39937d37ea801947a7b5901f97a7 Mon Sep 17 00:00:00 2001 From: strasharo Date: Sun, 6 Mar 2016 11:46:45 +0200 Subject: [PATCH] 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. --- kali/fluxion | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kali/fluxion b/kali/fluxion index 2d2c36e..948b6dc 100644 --- a/kali/fluxion +++ b/kali/fluxion @@ -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 &