Turn your OpenWrt router into a Pineapple

Triggert by this port http://penturalabs.wordpress.com/2013/04/25/blue-for-the-pineapple/ it should also be possible to turn this device into a Pineapple.

I have my Pineapple port partially working.. Karma is rocking the place ;)
Here we go :

Make sure your root is on external USB or you will run out of space probably...

opkg update
opkg install htop bash nano netcat tar openssh-sftp-client nmap tcpdump aircrack-ng kismet-client kismet-server nbtscan snort karma samba36-client elinks yafc python php5-cgi uhttpd

For Karma to work we need to extract the patched binaries from the real pineapple.
I did this part on a linux-mint-vm ;)

Install unsquashfs

sudo apt-get update
sudo apt-get install unsquahfs

Download the latest official Pineapple imgae from the http://wifipineapple.com/?downloads site
Extraxt the image by running:

cd ~/Downloads
unsquashfs upgrade-2.8.1.bin

You should now see a folder called 'squashfs-root'
I copied (scp) the following files over to my router


Reboot the router...

As of the last month Sebkinne, has made the Pineapples Web Interface available as Opensource, use git to download the repository.(I downloaded the zip file on my windows laptop and used winscp to upload them to the router 
Check permissions on these files after upload or the scripts won't work ;) )

git clone https://github.com/WiFiPineapple/web-interface.git /pineapple


  • Disable all update modules – as this will break the build, the upgrades/updates are all geared for Alfa AccessPoints so you should go through all the code removing the update/upgrade routines to avoid accidentally bricking the TPLink in the future.
  • Secondly the ps command is slightly different in the version on the TPLink search and replace “ps aux| ps auxww” with ps.
  • From simon:
    grep -lr -e ‘ps aux’ * | xargs sed -i ‘s/ps aux/ps/g’
    grep -lr -e ‘ps -all’ * | xargs sed -i ‘s/ps -all/ps/g’
    grep -lr -e ‘ps auxww’ * | xargs sed -i ‘s/ps auxww/ps/g’

Configuration Files

To make this build compatible with the existing Pineapple Scripts (eg. http://wifipineapple.com/wp4.sh). You need to replace the exisitng Openwrt configurations with the ones listed below.


after a reboot It should be listening on :1471

Big Thxx To HAK5 for creating the Pineapple and to Pentura Labs's Blog for porting it to TP-link routers ;)
If you linke this please consider buying a real Pineapple from HakShop
Have Fun :)