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 psychologytoday.com

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

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 "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

Just updated your iPhone? You'll find new features for Podcasts, News, Books, and TV, as well as important security improvements and fresh wallpapers. Find out what's new and changed on your iPhone with the iOS 17.5 update.

2 Comments

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

hello
Its is necessary that, I make Bash script

Share Your Thoughts

  • Hot
  • Latest