How To: Evil-Twin (Part 1) - Setting Up the Dhcp Server.

Evil-Twin (Part 1) - Setting Up the Dhcp Server.

Hello again,

***UPDATE: Adding links to the other Two articles****

I recently started working on creating evil twin ap's, after reading OTW's article. I wanted to find a way to automate this process as much as I could, so I started looking for sample bash scripts and found this . Both of these together gave me the info I needed to write my MY VERY FIRST BASH SCRIPT.

This will be a three part post as there is some set up then the bash script. This is the first part on getting your system set up to run a evil twin ap, Setting up the dhcp server.

Image via

Step 1: Step 1: Getting Your System Ready!

  • Install isc-dhcp-server: apt-get install isc-dhcp-server
  • cd into the dhcp directory: cd /etc/dhcp
  • make a master copy of the dhcpd.conf file: mv dhcpd.conf

Step 2: Step 2: Time to Create a New dhcp.conf File

  • while still in the /etc/dhcp directory run your favorite text editor. I like nano: nano
  • enter in this text:

ddns-update-style none;

# option definitions common to all supported networks...
#enable if you know your target has these set.
#option domain-name "";
#option domain-name-servers,;

default-lease-time 600;
max-lease-time 7200;

#this section you can customize to fit your needs. Make sure you are
#using a private network settings

subnet netmask {
#these two options should be obvious on how to set
option subnet-mask;
option broadcast-address;

#this option below will be your fake ap's ip, do not make it
# obvious like
option routers;

#you will want to use a public dns server such as google's
option domain-name-servers;

#this is the range of ip's that will be assigned to your clients

  • save the file as dhcpd.conf

I will continue the next part of this on another post. The following post will include the bash script and an explanation of what it is. Tune in.

As always I hope this helps someone and if you see something that could be done better please point out.

Thank you for reading!


1 Comment

hi thanks guys for your tutorial but i found it quite confusing and i have to spent hole day to overcome from the issue so that i thought to make a video how you and others will find it helpful

Share Your Thoughts

  • Hot
  • Latest