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

Nov 14, 2015 11:31 PM
Dec 3, 2015 12:33 AM

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.

635831076227598123.jpg

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 dhcpd.conf.org
635831057118066629.jpg

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
635831057387754441.jpg
  • 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 "example.org";

#option domain-name-servers ns1.example.org, ns2.example.org;

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 10.0.0.0 netmask 255.255.255.0 {

#these two options should be obvious on how to set

option subnet-mask 255.255.255.0;

option broadcast-address 10.0.0.255;

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

# obvious like 10.0.0.1

option routers 10.0.0.254;

#you will want to use a public dns server such as google's

option domain-name-servers 8.8.8.8;

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

range 10.0.0.1 10.0.0.140;

}

  • 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!

-P4nT4N30

Comments

No Comments Exist

Be the first, drop a comment!