Hi! Do you have any plans for making the script available for Kali Linux? Just now attempted to use it on the new distribution and came to a few errors. Specifically with the dhcp. When installing dhcp3-server instead it chooses to install isc-dhcp-server, and around line 730 of the script is where it fails now.
Code:
# Gives dhcpd the permissions it needs, avoids PID lock error message
mkdir -p /var/run/dhcpd && chown dhcpd:dhcpd /var/run/dhcpd
The error outputs are something like dhcpd:dhcpd invalid user, and No such file or directory.
To start the ISC Server, I have to issue this command: service isc-dhcp-server start , which puts out this error, "FAIL] Starting ISC DHCP server: dhcpd[....] check syslog for diagnostics. ... failed!"
The contents of the syslog error are as follow:
Code:
Not configured to listen on any interfaces!
Mar 20 23:52:41 kali dhcpd: Internet Systems Consortium DHCP Server 4.2.2
Mar 20 23:52:41 kali dhcpd: Copyright 2004-2011 Internet Systems Consortium.
Mar 20 23:52:41 kali dhcpd: All rights reserved.
Mar 20 23:52:41 kali dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Mar 20 23:52:41 kali dhcpd: Internet Systems Consortium DHCP Server 4.2.2
Mar 20 23:52:41 kali dhcpd: Copyright 2004-2011 Internet Systems Consortium.
Mar 20 23:52:41 kali dhcpd: All rights reserved.
Mar 20 23:52:41 kali dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Mar 20 23:52:41 kali dhcpd: Wrote 0 leases to leases file.
Mar 20 23:52:42 kali dhcpd:
Mar 20 23:52:42 kali dhcpd: No subnet declaration for wlan0 (192.168.1.8).
Mar 20 23:52:42 kali dhcpd: ** Ignoring requests on wlan0. If this is not what
Mar 20 23:52:42 kali dhcpd: you want, please write a subnet declaration
Mar 20 23:52:42 kali dhcpd: in your dhcpd.conf file for the network segment
Mar 20 23:52:42 kali dhcpd: to which interface wlan0 is attached. **
Unfortunately I cannot locate any dhcpd.conf file in anycase so,
I'm not sure exactly how to go about and implement a fix.
Thank you! 
*EDIT
The files is/are located at /etc/dhcp/dhcpd.conf.
and /etc/default/isc-dhcp-server
Added to dhcpd.conf
"subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
range 192.168.1.150 192.168.1.200;
}"
And to isc-dhcp-server " INTERFACES="wlan0""
And now succesfully able to start the dhcp server.. So no just need to figure out how to edit the script to call the right commands.
*EDIT2
Sorry for adding this to the thread. I got it back working. In addition to my first Edit, to the script I had to change the following to make it Kali compliant.
Around line 640, I made it to:
Code:
sleep 20 # for at0 to be started - crucial 10 was default
Because (for me) the default sleep was not long enough.
Around line 704, I did:
Code:
echo > /var/lib/dhcp/dhcpd.leases # Clear any pre-existing dhcp leases, default was /var/lib/dhcp3/dhcpd.leases
And line 732
Code:
dhcpd -cf /tmp/dhcpd.conf -pf /var/run/dhcpd/dhcpd.pid at0 & ### -pf /var/run/dhcp3-server/dhcpd.pid # Default was dhcpd3
I hope it helps someone else