Header Banner
Null Byte Logo
Null Byte
wonderhowto.mark.png
Cyber Weapons Lab Forum Metasploit Basics Facebook Hacks Password Cracking Top Wi-Fi Adapters Wi-Fi Hacking Linux Basics Mr. Robot Hacks Hack Like a Pro Forensics Recon Social Engineering Networking Basics Antivirus Evasion Spy Tactics MitM Advice from a Hacker

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

Nov 14, 2015 11:31 PM
Dec 3, 2015 12:33 AM
Cartoon stork flying with two babies in bundles against a blue sky with clouds and a sun.

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

The next big software update for iPhone is coming sometime in April and will include a Food section in Apple News+, an easy-to-miss new Ambient Music app, Priority Notifications thanks to Apple Intelligence, and updates to apps like Mail, Photos, Podcasts, and Safari. See what else is coming to your iPhone with the iOS 18.4 update.

Related Articles

Comments

No Comments Exist

Be the first, drop a comment!