WiFi Pineapple Basics
Last updated
Last updated
The WiFi Pineapple from Hak5 is a wireless auditing platform that allows network security administrators to conduct wireless penetration tests. It has multiple features including the ability to create rogue access points, man-in-the-middle attacks, perform passive surveillance, WPA and WPA Enterprise attacks, and more. More info can be found on their docs page.
By default it uses 2.4GHz frequency but you can get their MK7AC WiFi Adapter
that will add 2.5GHz and 5GHz frequencies. You are able to use your own adapters but they not work well with the pineapple, so your milage may vary depending on device.
Now if we want to share our internet connection from our PC to the Pineapple, we need to also select the interface that our internet comes in on(Wi-Fi in my case) and share it to the Pineapple.
Now we need to set the IP for it:
To share our internet from our host machine to the Pineapple, we can run a python script I made. The github page can found here.
The script is
This will ask for your internet-facing device, then ask for the Pineapples interface. We can find both of those with
then run the script
Now we can go to the Web Interface in our browser by going to http://172.16.42.1:1471/
This option is up to you on which you prefer - I went with Radios disabled
After a few more prompts we will be asked for put our root password and timezone.
Now we set our AP's. The Management AP we will connect to to access the dashboard and tools and etc. The Open AP is the one your target(s) will be connecting to. I usually hide the management AP but it's up to you on what you would like to do.
Now we get to an important step, the Client FIlter and SSID Filter. by default I put mine to allow that way not just anyone can connect and use it, we want our specified target(s) to connect. If we have their MAC address or SSID, we can add them now, or move onto the next step.
Now choose your theme and accept their EULA. After a min or so we are redirected to the login page and after we login, we have the dashboard!
If we have the MK7AC Adapter plugged in, we get a prompt for it, but we can close that for now.
So we have some options for setting up the internet to the Pineapple. This step is important because it's what will keep traffic flowing throw the target(s) to the internet for them to stay connected to us.
Wireless Client Mode - This will require us to have an SSID and Password for the Pineapple to connect to.
ICS(Internet Connection Sharing) - This will allow us to share the internet connection from our machine the Pineapple is plugged into.
USB Ethernet Adapter - If we have a USB to Ethernet dongle plugged into the Pineapple we can use this method for a hardwired connection.
When you know which one you want, select the Network Setting
button. I typically prefer to go with ICS as we set that up before this.
While here, if we have the MK7AC module plugged in, we can change our Recon Wireless Interface
to that and select save.
Whichever option you choose, you can verify internet connection by clicking the terminal icon in the top right and ping something to test.