Hak5
Save 10% at GoDaddy.com with coupon code HAK

Fon Jasager Install

From Hak5 Wiki

Jump to: navigation, search


Warning: Applying these changes to your Fonera will void it of its warranty. FON does not support these modifications and will not be held responsible for their consequences. This should only be done by advanced users.

To save you all the trouble of having to copy files around and install packages I've created a firmware with it all installed for you. In step 11 use the firmware from the Jasager Download Page instead and you'll get a working pineapple without all the messing around.

This will give you Jasager listening on port 1471 rather than port 80 so to access it you will need to browse to http://192.168.1.1:1471.

Another tip, if you are going to follow these instructions to do it the long way and to learn the process, since OpenWrt 8.09 was released they moved from ipkg to opkg as a package manager, this is why you will get a "command not found" error when you try to run ipkg, just use okpg instead.

EN0ozS <a href="http://cupswpeepfsf.com/">cupswpeepfsf</a>, [url=http://rpeigxvvzqyx.com/]rpeigxvvzqyx[/url], [link=http://hhmvslrptunb.com/]hhmvslrptunb[/link], http://oygjdimqiamn.com/

[edit] Step 1:

Give FON some power but not Ethernet yet. Open your wireless connection manager and connect to the MyPlace access point. The WPA key is the serial number on the bottom of FON.

http://www.hak5.org/images/jasager/1.png

[edit] Step 2:

Browse to http://192.168.10.1/ and make sure FON is wearing firmware version 0.7.1 r1 or below. If not consult this thread http://hak5.org/forums/index.php?showtopic=9844 on downgrading it.

http://www.hak5.org/images/jasager/2.png

[edit] Step 3:

Click the Advanced link and login with username admin and password admin.

http://www.hak5.org/images/jasager/3.png

[edit] Step 4:

Open sshenable.html (provided in download at the bottom of this post) and click Submit

http://www.hak5.org/images/jasager/4.png


[edit] Step 5:

SSH on over to 192.168.10.1

http://www.hak5.org/images/jasager/5.png

[edit] Step 6:

Login as root with password admin

http://www.hak5.org/images/jasager/6.png

[edit] Step 7:

Rename dropbear to S50dropbear so that it comes up on boot

mv /etc/init.d/dropbear /etc/init.d/S50dropbear

http://www.hak5.org/images/jasager/7.png


[edit] Step 8:

Transfer over out.hex and openwrt-ar531x-2.4-vmlinux-CAMICIA.lzma to /tmp/ using SCP (or wget them, or however you want to transfer 'em)

http://www.hak5.org/images/jasager/8.png

[edit] Step 9:

Patch the kernel, reboot, and eat some pineapple while it comes back up.

mtd -e vmlinux.bin.l7 write openwrt-ar531x-2.4-vmlinux-CAMICIA.lzma vmlinux.bin.l7
reboot

http://www.hak5.org/images/jasager/9.png


[edit] Step 10:

Reconnect to MyPlace, SSH back in, patch the redboot config, reboot, eat some more pineapple.

copy over out.hex again
mtd -e "RedBoot config" write out.hex "RedBoot config"
reboot

http://www.hak5.org/images/jasager/10.png

[edit] Step 11:

Flash FON's firmware.

[edit] Windows

   * Fire up the Freifunk Ap51 EasyFlash GUI utility (Download for Windows or Linux. WinPcap is need for this to run correctly on Windows).
   * Connect Ethernet between FON and your PC. (It's easier to have both the PC and the FON connected to a switch so the link in PC's network card stays up, this worked from a Windows Virtual Machine running on a Macbook)
   * Unplug FON's power.
   * In the GUI under Rootfs check Use external file and browse to openwrt-atheros-2.6-root.squashfs. Under Kernel check Use external file and browse to openwrt-atheros-2.6-vmlinux.lzma.
   * Select your Ethernet interface from the Interface drop-down.
   * Plug FON's power back in then immediately click Go! in the GUI.
   * Spend the next 20 minutes enjoying some pineapple.

Ps: dont be scared when computer warns or complains about network issues. Leave the cable on! and wait! http://www.hak5.org/images/jasager/11.png

[edit] Linux

through commandline :

jay@nemain:/home/jay/Desktop# chmod +x ap51-flash-fonera-1.0-42
jay@nemain:/home/jay/Desktop# ./ap51-flash-fonera-1.0-42 eth0 openwrt-atheros-2.6-root.squashfs openwrt-atheros-2.6-vmlinux.lzma 
Reading rootfs file openwrt-atheros-2.6-root.squashfs with 1179648 bytes...
Reading kernel file openwrt-atheros-2.6-vmlinux.lzma with 786432 bytes...
rootfs(0x006e0000) + kernel(0x000c0000) + nvram(0x00000000) sums up to 0x007a0000 bytes
Non arp received. Make sure, the device is connected directly!
Peer MAC: 00:18:84:25:bf:50
Peer IP : 192.168.1.254
Your MAC: 00:ba:be:ca:ff:ee
Your IP : 192.168.1.0
Setting IP address...
Loading rootfs...
Sending rootfs, 2304 blocks...
Initializing partitions...
Rootfs partition size now 0x006f0000
Flashing rootfs...
Loading kernel...
Sending kernel, 1536 blocks...
Flashing kernel...
Setting boot_script_data...
Done. Restarting device...

I used eth0 ... you should change this.

[edit] Step 12:

Time for an easy step. Telnet to 192.168.1.1 Vista/Windows 7 Users: Telnet is not installed by default, so you will need to enable it by going to Control Panel > Programs > Turn Windows Features on or off. Then tick Telnet Client and click OK.

telnet 192.168.1.1

http://www.hak5.org/images/jasager/12.png

[edit] Step 13:

Change the root password then enable wireless.

passwd
pineapplesareyummy
pineapplesareyummy
uci set wireless.wifi0.disabled=0
uci commit wireless && wifi

http://www.hak5.org/images/jasager/13.png


[edit] Step 13.5:

Transfer over the IPK files from the download below to /tmp/. Again SCP, wget, however you wanna move them bits.

[edit] Step 14:

Now in putty Install webif

ipkg install haserl_0.8.0-2_mips.ipk
ipkg install webif_0.3-10_mips.ipk

http://www.hak5.org/images/jasager/14.png

[edit] Step 15:

Browse to http://192.168.1.1/ login as root with password pineapplesareyummy (if you've been following along literally) and enjoy the beautiful new web interface. Take a moment to click through to the Graphs tab and appreciate the beauty that is the dynamically updating CPU meter. Ahhh

http://www.hak5.org/images/jasager/15.png

[edit] Step 16:

Install Ruby

ipkg install libruby_1.8.6-p36-1_mips.ipk
ipkg install ruby_1.8.6-p36-1_mips.ipk

http://www.hak5.org/images/jasager/16.png


[edit] Step 17:

Install Jasager patched madwifi drivers

ipkg install jasager-madwifi_1.ipk

http://www.hak5.org/images/jasager/17.png


[edit] Step 18:

Install Jasager and reboot. I installed from the package which seems to have installed fine but not without warnings. The next step seems to have fixed the issue. Anyway you might want to install Jasager from the tarball, at least until Robin Wood aka Digininja gets another FON for testing and updates the package. (I'll be delivering Robin some FONs at Toorcon)

ipkg install jasager_1.2.ipk
reboot

http://www.hak5.org/images/jasager/18.png


[edit] Step 19:

Copy (or move) the contents of /karma/www/ to /www/ (if you installed from package version 1.2). Also note I renamed the original index.html in /www/ to webif.html for easy access

mv /www/index.html /www/webif.html
cp -R /karma/www/* /www/
reboot

Robin - This step is optional. If you don't do it you need to access Jasager through port 1471, i.e. visit http://jasager.mynet:1471/ . This is the way I do it so that webif says accessible and it is a bit of security through obscurity.

http://www.hak5.org/images/jasager/19.png

[edit] Step 20:

Login to Jasager and turn Karma on. And would you look at that, was someone trying to connect to their NETGEAR router? We might have to nmap 192.168.1.114 and see if we can help them.

http://www.hak5.org/images/jasager/20.png


[edit] Downloads

All of the files used in this guide


[edit] Reference Sites