Code

Void(main) { while(true) { print “Hello World”; } /* Code Monkey was here*/ }

Game

Video Games! Independent, homebrew, hacked or open source. We love offbeat games.

Geek

It takes one to know one, and we huge geeks. If it doesn’t fit in another category look here.

Hack

From man-in-the-middle attacks to GPU accelerated password cracking, and voiding warranties

IT

Information Technology. Network Administrators. Sysadmins. The “Company Computer Guy”

Home » Hack, WiFi Pineapple

WiFi Pineapple: your first connection

Submitted by on May 4, 2011 – 3:48 pm21 Comments

So you’ve built, borrowed or bought a WiFi Pineapple and you’re new to OpenWRT and Jasager. Hopefully this guide will familiarize you with the many aspects of the the WiFi Pineapple. If you have specific questions please leave a comment or email feedback@hak5.org and we’ll try to keep this page updated.

This article will guide you through connecting to the WiFi Pineapple for the first time. For more in-depth how-to’s involving command line control, modules, using the white and black listing functions, sharing Internet access and more please consult the Jasager board on the Hak5 forums and keep an eye on the WiFi Pineapple category of the Hak5.org blog for future articles on these topics.

First and foremost

The WiFi Pineapple is a customized version of OpenWRT running the latest Jasager software by Robin Wood. Since OpenWRT is a Linux based wireless networking operating system you’ll want to be familiar with basic Linux and networking fundamentals.

Tools you’ll find handy

Right out of the box most everything can be configured with just about any web browser, but you’ll likely also want a tool or two to get a shell and transfer files. If you’re using Linux or Mac you already have the ssh and scp commands at your disposal. If you’re on Windows we recommend using the PuTTY and WinSCP GUI tools or the command-line equivelent Plink.

Battery Powering the Pineapple

The WiFi Pineapple requires 5V and 2A of DC power. If you’re looking to go mobile leave the wall-wart at home. Four AA rechargeable batteries work well at powering this puppy. It’s important to get AA batteries with a high mAh rating. We recommend no less than 2400, so pick up a few meant for digital cameras for best results. If your standard alkalines aren’t doing the trick it’s probably due to a low mAh rating. Check the packaging. Of course we recommend rechargeables over the landfill populating variety.

Connecting for the first time

There are many ways to connect to and configure a WiFi Pineapple. Here are a few:

Via Ethernet

Power up and connect an Ethernet cable between your computer and the router’s. In its stock configuration the WiFi Pineapple is configured with the static IPv4 address of 192.168.1.1. It is also setup to hand out IP addresses in the 192.168.1.0/24 range via DHCP. If your machine is configured to obtain an IP address automatically you should get something like 192.168.1.100 from it momentarily.

Configuring your interface to obtain an IP address from the WiFi Pineapple’s DHCP server

In case your computer is not already setup to obtain an IP address on the Ethernet interface from a DHCP server, here are quick instructions for some common operating systems.

Windows XP

Open Network Connections from the Control Panel. Right-click on the Local Area Connection and choose Properties. From the dialog select Internet Protocol TCP/IP and click Properties. From the General tab choose Obtain an IP address automatically and Obtain DNS server address automatically. Click OK twice.

Windows 7

Click Choose Network Status and Tasks from the Control Panel. Click Change adapter settings. Right click the Local Area Connection and choose Properties. Select Internet Protocol Version 4 and click Properties. Select Obtain and IP address automatically and Obtain DNS server address automatically, then click OK twice.

Linux / Mac

Open a terminal and issue ifconfig eth0 where eth0 is the Ethernet interface connected to the WiFi Pineapple. Check the inet addr reported. If it is not a 192.168.1.x address you’ll want to manually ask for an address from the DHCP server on the pineapple. Depending on your distribution the command to do this may be “dhclient eth0″ or “dhcpcd eth0″.

Via Wireless

By default the SSID of the WiFi Pineapple is either “Pineapple” or “OpenWRT” without encryption. Connect to it as you would to any ordinary wireless access point. The pineapple will assign you an IP address via DHCP. If for some reason your Wireless interface has not been configured to obtain an address automatically please consult the above instructions substituting your wireless interface for the Ethernet interface.

Via Serial

WiFi Pineapples bought or built on Fon 2100 or Accton MR3201A hardware sport shell access through a serial interface. For information on this access method please consult these fine documents:

 

Accessing the Jasager Interface

Once connected via Ethernet or wireless you can point your web browser at the Jasager management interface. Here you can configure the interface, karma, mac address filtering, ssid white/black listing and execute commands on connected clients.

By default the Jasager interface can be found at http://192.168.1.1:1471. It’s important to note the :1471 bit as that specifies the non-standard port number of this http interface. Any modern web browser will work, be it Firefox, Chrome, Safari, Opera or Internet Explorer. I’ve even successfully used it with the text-only browser Lynx! You’ll need to login. By default the username is root and password is “pineapplesareyummy” (sans quotes).

Status / Main Controls

The options in this section allow you to control the wireless card and karma features. The SSID list is a list of SSIDs that the interface will either accept (whitelist mode) or ignore (blacklist mode). One thing to watch out for is that changing from blacklist to whitelist mode, and vise-versa does not reset the SSID list.

Connected Clients

The list of connected clients comes from a merger of wlanconfig output, information in the log file and the ARP cache. A blank IP address may mean the client hasn’t got an IP address or hasn’t used it for a while so it has slipped from the ARP table.
The dropdown list of commands allows you to add the clients SSID to the watch list and kick the MAC address. Kicking is not blocking a MAC, just temporarily disconnecting it, most clients will attempt to reconnect within seconds of being kicked. Kicking can be useful if you blacklist a SSID and need to remove any currently associated clients. I have an idea that this list will grow with useful commands such as blocking MAC addresses and initiating things such as nmap scans. Watch out for new features in version 2.

Log

All activity is logged to /karma/log/status.log which gets dumped out to the log window.

 

VN:F [1.9.17_1161]
Rating: 7.9/10 (16 votes cast)
WiFi Pineapple: your first connection, 7.9 out of 10 based on 16 ratings

21 Comments »

  • Jerfguy says:

    I love how basic and easy to follow this season has become. Before I would watch each episode and get excited about the topic but soon become lost and frustrated when I was unable to follow along or learn the topic. I would spend many more hours searching for more information on the topics just to try and understand it. Here we have slower more in depth videos supported by great detailed write ups including links for even MORE information just in case I need further explanation or background. LOVE it. Thanks, Jerf.

    VA:F [1.9.17_1161]
    Rating: +4 (from 4 votes)
  • Victor says:

    Very cool device.

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  • NoSp says:

    Is there a link to building your own? – I’ve searched the site and can’t find one.

    VA:F [1.9.17_1161]
    Rating: +1 (from 1 vote)
  • Todd says:

    Thanks for the info on Serial connectivity.

    Looks like the pins could be connected right to an Arduino or XBee
    without any rs-232 line voltage conversions/max 232 chips in between…hehehe…

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  • John says:

    The jasager issues the IP addresses to my test computer which joins the wireless SSID (Pineapple), however, the test computer is not able to connect to the internet, its routes to the jasager and terminates their.

    I added a staic route to the jasager which basically routes any other traffic (internet bound) via the gateway computer (connected to the jasager via the ethernet)

    0.0.0.0 192.168.1.100 255.255.255.255 1 lan

    Any ideas?

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  • Tom says:

    Great device,

    I’ve just purchased one and I’m waiting on it to arrive. I’m wondering whats the likely-hood of modding this to support USB. This would open up the potential by allowing flash drives or even external harddrives for more storage space.

    Thanks!

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
    • j says:

      Assuming you have this baby connected to your lappy over a network, why not just offer an NFS or SMB mountpoint so it can store there? That’s probably lots of space and very convenient.

      VA:F [1.9.17_1161]
      Rating: 0 (from 0 votes)
  • avogodrohex says:

    I just got my pineapple and I am very excited by the possibilities this compact device presents. I just have one question, can you attach any other external antennas to this device? I have a couple of 9db Alfa antennas and I was wondering if I could use them to extend the “reach” of the Pineapple.

    Thanks for filling the vacuum that “The Screen Savers” left and thanks for the archive of great shows.

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  • pr0n says:

    @avogodrohex : I assume by now you’ve tried your external antenna, but if you have not, and are waiting for an answer, Yes, it should work, As i myself have that exact setup, when i am not worried about being stealthy.

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  • digipengi says:

    And if you really want to have some fun add an SD card to your pineapple. Confirmed this to work.Can anyone say lighttpd with a cron script to pull down cached pages daily… http://www.dd-wrt.com/wiki/index.php/Fonera_SD-Card_hack

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  • BMPH3KX says:

    Their out of stock any new ones WiFi Pineapple are coming up or this is a finish deal?

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  • Paul says:

    great guide :)

    WiFi Pineapple is awesome :D

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  • ankush says:

    How is wifi-Pineapple different from airsnarf?

    airsnarf – a script used to create a fake AP and do all the things that this device does and its FREE!!!

    airsnarf.shmoo.com

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  • TheKing UnderTheHill says:

    Hey, just wondering if Jasager and OpenWRT work on the Fon Simpl?

    Cheers

    VA:F [1.9.17_1161]
    Rating: +2 (from 2 votes)
  • me says:

    Hey Guys, I just received my new Pineapple Mark III but my default IP range is 172.x.x.x.x How do I login to Jasager?

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  • Darkangel007 says:

    Has anybody thought of using a standard jailbroken iphone as the internet (source)??
    It would seem (mywifi is easily downloaded via cydia/sinfuliphone) set on (via cable) would provide the needed internet portal that would free
    up the pineapples lan port.. a set it and forget it pineapple???
    one could place it in a unobtrusive location…hidden from prying eyes
    ??? Any post regarding the pin out info on the iphone data cable
    and the rs232 pin info for the original fonera wifi pineapple
    would be greatly appreciated!!

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  • Malachai says:

    I’m still waiting for the new version to come out. I want ONE!!! not fair all you guys having fun with it.

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  • Max says:

    Very useful for pen testing

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
  • RSHCSH says:

    i did everything that the explication said but when it’s time to log in on the interface saids error:bad username/password

    root
    pineapplesareyummy

    VA:F [1.9.17_1161]
    Rating: +1 (from 1 vote)

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.