Creating the “Ultimate Trollbox”/”Poor mans Wifi Pinapple” for fun (and profit?)
So as you may or may not know, I nearly always open articles with “So you may or may not know”..
Back on topic, I’m going by train to school a lot, and I always wanted a Wifi Pineapple.
But because it’s expensive as heck, I couldn’t wait and I had a raspberry Pi laying around, I decided that I wanted to turn my raspberry into a “poor-mans” wifi pineapple!
So I recently came across this suite called “FruityWifi” and when I tested it on my Laptop (which I will showcase soon by the way!) it worked during my test run, and so I decided to use this suite for my PineapplePi.
This post is intended for educational use only.
I am in no way or shape responsible for any damages done!
Please make sure you made adequate preperations before proceeding.
Now we got that out of the way, we can start the project!
Gathering the components
Before I startted the project, I gathered everything I needed from all over the room (yes, everything is scattered around the room)
- 1x Raspberry Pi 2 model B (a Pi 3 will work just fine)
- 1x TP-Link TL-WN722N Wireless NIC (any hostapd compatible NIC will do)
- 1x PNY 7800mAh powerbank (any powerbank that can deliver 2A+ will do. mo mAh, mo betta!)
- The other stuff needed for the Pi (8GB+ SD card, cables etc.)
- A PC to flash Raspbian with
- Basic Linux knowledge
After you’ve gathered all the needed components, let’s dive straight into it!
Preparing the Pi & Installing FruityWifi
I flashed Raspbian-Jessie-Lite (the non-GUI version) to a 16GiB SD card. (google it if you don’t know how)
After doing that, I hooked everything up (Wifi adapter, ethernet, power etc.) and booted up the pi.
After I let it boot, I SSHed into my Pi, and did the usual stuff (like expanding the filesystem and changing my password)
After this, I downloaded and installed FruityWifi with these commands: (I stripped off the outputs to keep it clean)
sudo apt update wget https://github.com/xtr4nge/FruityWifi/archive/master.zip unzip master.zip cd FruityWifi-master sudo ./install-FruityWiFi.sh
I entered my information where needed (like password for sudo and information for the self-signed SSL sertificate)
After this, I reboot my pi (not neccesary, but I generally do this just for the sake of)
Configuring FruityWifi & Installing the Modules
head over to my webbrowser and opened this page:
10.0.0.138 should be replaced with the IP of your raspberry pi.
After this I logged in with the FruityWifi default credentials:
You will now be presented with a nice dashboard.
Don’t worry if your module list is empty.
I will show you how to get the needed modules for this project! (Yes, I didn’t realize I still had 3 modules running lol)
Then, I headed over to the modules page. and clicked on “list available modules [tar.gz]” (image unavailable)
then, install these modules: (just hit the goddamn install link lol)
- api (This one is important as heck… I have no clue why this is not a default, as FruityWifi kinda relies on it)
After you’ve done that, head over to the
view next to Karma.
On the page that appears, if you don’t see karma installed like the screenshot below, then click on the red
install, else, continue on.
Now go to the
Config page of FruityWifi.
And make the
IN | OUT section look like this: (be sure to enter your wlan card in the
After you’ve done this, go to the
Status page again, and this time, click
Config and replace the config with this code:
[SETUP] port = 20000 dnsspoof = on [A] * = 192.168.148.1
Be sure to replace
192.168.148.1 with the IP of your incoming nic (so your wireless).
And we’re done for this part!
we can now go to the next step:
Making a basic website!
If you want to test the functionality (or just be a dick like me and troll people), you will need to make a basic website.
To do this, we need to install a basic webserver on the pi.
open up the SSH again and type this command:
sudo apt install apache2
This will install the apache2 webserver.
Now, once that is done, enter the following command:
sudo nano /var/www/html/index.html
Replace all the code with this code:
CRTL and hit
X to save and exit.
You can put your own code there, but that’s for you to figure out 🙂
Now go to the website in your browser.
In my case, it was
http://10.0.0.138/. but your IP might be different. (again, use the IP of your Pi, not mine)
If that shows a big black text saying
Then we can continue, else, try to figure out whats wrong.
We can now go on, and see the result of our labour!
Starting the whole thing!
Go to the
Statuspage yet again.
Start the following Modules: (In Order, but I don’t know if that’s really necessary)
When that is done, go visit the MacDonalds or something and watch people connect. (you will see them pop-up on the
I had gone to the Dentist, and I already rickrolled like 6 or 7 people lol.
But depending on your luck (and the stupidity of other people), this may be WAY more or less for you.
Well, I guess that’s about it!
The fun part about it is, everybody that is connected will visit your webserver.
This is because the DNS tells that every domain, subdomain or hostname is the IP you specified in FruityDNS (in my case
This makes it even easier to troll people.
FruityWifi still has a lot of other features, so be sure to check them out!
If you made something nice or so using this guide that you want to show, feel free to leave a comment!
Also, if you would like to, please send me a donation to my Bitcoin address (17f77AYHsQbdsB1Q6BbqPahJ8ZrjFLYH2j).
I put a lot of time, effort and even money in making this guide, so any support would surely be appreciated!
Anyways, thanks for checking out this guide, stay safe, don’t go blackhat, and be creative!