Router Hacking Fun!

Router Hacking Fun!

Ok, well in my last post I gave you the little network testing program I wrote, NetTest.exe
Only a simple program, but it's led me on quite an adventure the past few hours!

It started off last night...
I've playing with webservers and the NetTest program, sending them silly requests and seing how they handled it and such.
Part of the usual HTTP1.1 header is the server version, like "Server: Apache/1.0". An interesting one is Google who have their own server software: "Server: GWS/2.1" which I guess is the Google Web Server, version 2.1
Anyway, that's all fun and games but then I realised my router (A Belkin Wireless G - F5D7633-4) has a web interface...But what server does it run?

Here's how the thing went down:
[[Connecting...]]
[[Connected]]
  >> GET / HTTP/1.1
User-Agent: NetTest/1.1
Host: 192.168.2.1:80


  << HTTP/1.1 200 Ok
Server: micro_httpd
Cache-Control: no-cache
Date: Thu, 19 Jul 2007 20:29:15 GMT
Content-Type: text/html
Connection: close

And that was that, "Server: micro_httpd".
Rather nifty eh! I now knew that my router runs Linux and uses micro_httpd to run it's web interface.
But if it runs Linux...what else might it be running apart from a web server?
FTP = Connection refused
Telnet = Connection refused
SSH = Connected!

Wow! My router runs a SSH daemon? Sweet!
[[Connecting...]]
[[Connected]]
SSH-2.0-dropbear_0.36

But that was it, no response to any messages sent...time for puTTY!
However, it wouldn't connect. I tried various methods but it either got a connection refused or timed out.

Enter cygwin!
After downloading, installing packages and making sure I installed the OpenSSH client I set to work once more...

And this time, succes! I got a prompt for a password:
Nick@LAPTOP2 ~
$ ssh admin@192.168.2.1
admin@192.168.2.1's password:

But whats that password? Thanks to Wim I managed to get in with the same as I use on the web interface luckily, and I was in and greeted by the oh-so-helpful ">_"
Typing in "help" gave me the following commands:
?
help
logout
reboot
adsl
atm
brctl
cat
ledctrl
df
dumpcfg
echo
ifconfig
kill
arp
defaultgateway
dhcpserver
dns
lan
passwd
ppp
remoteaccess
restoredefault
route
save
swversion
wan
ping
ps
pwd
siproxd
sntp
sysinfo
tftp
wlctl

Yup, a whole bunch of router-related commands and a couple of basic Linux commands.
Main downside was that there's no "cd" command or "ls" to see what files I could play with.
However:
> sysinfo
Number of processes: 32
  8:47pm  up 9 days, 19:46,
load average: 1 min:0.00, 5 min:0.00, 15 min:0.00
              total         used         free       shared      buffers
  Mem:        14140        13384          756            0          880
 Swap:            0            0            0
Total:        14140        13384          756
32 processes eh? Lets see what I have running:
> ps
  PID  Uid     VmSize Stat Command
    1 admin       272 S   init
    2 admin           SWN [ksoftirqd/0]
    3 admin           SW< [events/0]
    4 admin           SW< [khelper]
    5 admin           SW< [kblockd/0]
    6 admin           SW  [khubd]
   19 admin           SW  [pdflush]
   20 admin           SW  [pdflush]
   21 admin           SW  [kswapd0]
   22 admin           SW< [aio/0]
   27 admin           SW  [mtdblockd]
   39 admin       304 S   -sh
   64 admin       752 S   cfm
  172 admin       156 S   pvc2684d
  227 admin       280 S   syslogd -C -l 3
  231 admin       240 S   klogd
  382 admin       196 S   sntp -s 129.132.2.21 -s 130.149.17.8 -t Greenwich Mea
  385 admin       740 S   telnetd
  386 admin       788 S   sshd
  388 admin       224 S   dhcpd
  393 admin      1008 S   httpd
  397 admin       400 S   pppd -c 0.38.1 -a 0.0.38 -u XXXXXXXXXXXXXXX@tiscali.c
  456 admin       200 S   /bin/dnsprobe
  460 admin       364 S   upnp -L br0 -W ppp_0_38_1 -D
  468 admin       304 S   reaim -e 88.104.196.109
  540 admin       388 S   siproxd --config /var/siproxd/siproxd.conf
  541 admin       388 S   siproxd --config /var/siproxd/siproxd.conf
  542 admin       388 S   siproxd --config /var/siproxd/siproxd.conf
 2082 admin       976 S   sshd
 2083 admin       992 S   sshd
 2088 admin       280 S   sh -c ps
 2089 admin       268 R   ps
Nifty.
And whats that I see? "385 admin 740 S telnetd"? Telnet server?
Yet to explore that one, can't seem to connect to it but will post later if I manage to get it to work.

Back to the commands list, lets see what OS we're running:
> cat --help
BusyBox v1.00 (2006.03.27-10:18+0000) multi-call binary

Usage: cat [-u] [FILE]...

Concatenates FILE(s) and prints them to stdout.

Options:
        -u      ignored since unbuffered i/o is always used
BusyBox it seems. Not looked into this but it seems so heavilly modified by Belkin I doubt I can play much.

I also noticed "df" and "tftp" on the command list:
> df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/mtdblock0            1984      1984         0 100% /
tmpfs                      192       124        68  65% /var
We can see how the system is mounted and such. But without "cd" and "ls" I have no way to see what exactly is mounted.
However, tftp...that has ftp in it!
Wikipedia says this for TFTP.
So I got the lowdown on the "tftp" command I had available, but unfortunately I can only output the config file, and not the image :(
> tftp --help
BusyBox v1.00 (2006.03.27-10:18+0000) multi-call binary

Usage: tftp [OPTION]... tftp_server_ip

Update firmware image and configuration data from OR backup configuration
data to a tftp server.

Options:
-g      Get file. (Update image/configuration data)
-p      Put file. (backup configuration data)
-f      remote file name.
-t      i for image and c for configuration data.


Anyway, after all that, not much more I can do I don't think!
Still, it was a good giggle and if anyone has any ideas on stuff I can do to my router then please comment :)

Comments

Posted by  
on August 10, 2007, 11:45 am
Never tried this then?

sh
cd bin
ls

type in that and it shows you all the files (or it does on mine! Busybox 0.60)

Reply to this comment
Posted by   www
on November 14, 2007, 6:52 pm
It runs 'sh', that's enough . How about "echo /bin/*" or "echo /bin/*" .

Reply to this comment
Posted by  
on October 16, 2008, 6:44 pm
How would i get my password for the router it has a lock so it goes off at 10:30 every night and only comes on at 4:30 in the afternoon please tell me how to"hack" the password

Reply to this comment
Posted by BB User  
on October 23, 2008, 3:51 pm
You can factory default the router but it will lose ALL its setting.

Press the reset button for 10 seconds and you'll see all the lights light up.

It is now back to factory defaults and you have LOST all your settings including the ADSL settings for your ISP, so make sure you have them :)

Reply to this comment
Posted by   www
on May 17, 2010, 3:12 pm
[URL=http://zitbpnyg.com]khhkutlk[/URL] <a href="http://xfhremvm.com">bvhydmzl</a> whgluwbj http://zlrdjfgp.com opgtuiij hahwflrh

Reply to this comment
Posted by   www
on May 18, 2010, 2:00 pm
I lived what most people call the good life. I was happy, but deep inside I always felt that, with the short amount of time we are given to live and love in this world, we spend too much time loving things instead of people.

Reply to this comment
Posted by   www
on May 19, 2010, 6:39 pm
Never help a child with a task at which he feels he can succeed.

Reply to this comment
Posted by   www
on May 19, 2010, 6:45 pm
Anger at lies lasts forever. Anger at truth can't last.

Reply to this comment
Posted by   www
on May 21, 2010, 7:53 pm
When you make a mistake, don't look back at it long. Take the reason of the thing into your mind and then look forward. Mistakes are lessons of wisdom. The past cannot be changed. The future is yet in your power.

Reply to this comment
Posted by   www
on May 21, 2010, 7:54 pm
If the only prayer you ever say in your whole life is "thank you," that would suffice.

Reply to this comment
Posted by   www
on May 21, 2010, 7:55 pm
We have really everything in common with America nowadays except, of course, language.

Reply to this comment
Posted by   www
on May 21, 2010, 7:55 pm
Never let the demands of tomorrow interfere with the pleasures and excitement of today.

Reply to this comment
Posted by   www
on May 21, 2010, 7:56 pm
A fine quotation is a diamond on the finger of a man of wit, and a pebble in the hand of a fool.

Reply to this comment
Posted by   www
on May 21, 2010, 7:59 pm
Depend not on fortune, but on conduct.

Reply to this comment
Posted by   www
on May 23, 2010, 8:46 pm
Paradise is exactly like where you are right now... only much, much better.

Reply to this comment
Posted by   www
on May 25, 2010, 11:48 pm
The real problem is not whether machines think but whether men do.

Reply to this comment
Posted by   www
on May 26, 2010, 6:40 am
Procrastination is the art of keeping up with yesterday.

Reply to this comment
Posted by   www
on May 26, 2010, 10:57 am
History is more or less bunk.

Reply to this comment
Posted by   www
on May 28, 2010, 12:36 am
For visions come not to polluted eyes.

Reply to this comment
Posted by   www
on May 28, 2010, 3:47 am
When we ask for advice, we are usually looking for an accomplice.

Reply to this comment
Posted by   www
on May 28, 2010, 9:33 am
Nothing is said that has not been said before.

Reply to this comment
Posted by   www
on May 28, 2010, 1:24 pm
To lengthen thy life, lessen thy meals.

Reply to this comment
Posted by   www
on May 28, 2010, 5:18 pm
If you would be known, and not know, vegetate in a village; If you would know, and not be known, live in a city.

Reply to this comment
Posted by   www
on May 28, 2010, 5:19 pm
Music is essentially useless, as life is.

Reply to this comment
Posted by   www
on May 28, 2010, 9:31 pm
Life is pleasant. Death is peaceful. It's the transition that's troublesome.

Reply to this comment
Posted by   www
on May 29, 2010, 3:46 am
I?m telling you, things are getting out of hand. Or maybe I?m discovering that things were never in my hands.

Reply to this comment
Posted by   www
on May 29, 2010, 7:12 am
Life is a great big canvas; throw all the paint on it you can.

Reply to this comment
Posted by   www
on May 29, 2010, 11:03 am
There are admirable potentialities in every human being. Believe in your strength and your youth. Learn to repeat endlessly to yourself, 'It all depends on me.'

Reply to this comment
Posted by   www
on May 29, 2010, 2:37 pm
Let not the sands of time get in your lunch.

Reply to this comment
Posted by   www
on May 29, 2010, 6:27 pm
I cannot believe that the inscrutable universe turns on an axis of suffering; surely the strange beauty of the world must somewhere rest on pure joy!

Reply to this comment
Posted by   www
on May 29, 2010, 10:15 pm
There is surely a piece of divinity in us, something that was before the elements, and owes no homage unto the sun.

Reply to this comment
Posted by   www
on May 30, 2010, 2:04 am
If your parents never had children, chances are you won't, either.

Reply to this comment
Posted by   www
on May 30, 2010, 2:06 am
A boy can learn a lot from a dog: obedience, loyalty, and the importance of turning around three times before lying down.

Reply to this comment
Posted by   www
on May 30, 2010, 7:12 am
A rumor without a leg to stand on will get around some other way.

Reply to this comment
Posted by   www
on May 30, 2010, 7:13 am
Treat all disasters as if they were trivialities but never treat a triviality as if it were a disaster.

Reply to this comment
Posted by   www
on May 30, 2010, 11:13 am
A writer is a person for whom writing is more difficult than it is for other people.

Reply to this comment
Posted by   www
on May 30, 2010, 4:25 pm
Before you do anything, think. If you do something to try and impress someone, to be loved, accepted or even to get someone's attention, stop and think. So many people are busy trying to create an image, they die in the process.

Reply to this comment
Posted by   www
on June 1, 2010, 3:01 am
Someone's boring me. I think it's me.

Reply to this comment
Posted by   www
on June 1, 2010, 7:16 am
I don't own a cell phone or a pager. I just hang around everyone I know, all the time. If someone wants to get a hold of me, they just say 'Mitch,' and I say 'what?' and turn my head slightly.

Reply to this comment
Posted by   www
on June 10, 2010, 1:05 pm
YES!!! Love this. :)

Reply to this comment
Posted by   www
on June 1, 2010, 11:16 am
Life is a great big canvas; throw all the paint on it you can.

Reply to this comment
Posted by   www
on June 1, 2010, 3:11 pm
In our civilization, and under our republican form of government, intelligence is so highly honored that it is rewarded by exemption from the cares of office.

Reply to this comment
Posted by   www
on June 1, 2010, 9:20 pm
I feel very strongly that change is good because it stirs up the system.

Reply to this comment
Posted by   www
on June 1, 2010, 9:21 pm
Whoso would be a man must be a nonconformist.

Reply to this comment
Posted by   www
on June 2, 2010, 1:16 am
The strongest possible piece of advice I would give any young woman is: Don't screw around, and don't smoke.

Reply to this comment
Posted by   www
on June 2, 2010, 1:17 am
It was enough to make a body ashamed of the human race.

Reply to this comment
Posted by   www
on June 2, 2010, 4:35 am
Typos are very important to all written form. It gives the reader something to look for so they aren't distracted by the total lack of content in your writing.

Reply to this comment
Posted by   www
on June 2, 2010, 8:00 am
Anxiety is the dizziness of freedom.

Reply to this comment
Posted by   www
on June 2, 2010, 8:01 am
So many of our dreams at first seem impossible, then they seem improbable, and then, when we summon the will, they soon become inevitable.

Reply to this comment
Posted by   www
on June 2, 2010, 8:06 am
Sometimes when you innovate, you make mistakes. It is best to admit them quickly, and get on with improving your other innovations.

Reply to this comment
Posted by   www
on June 2, 2010, 11:16 am
You couldn't even prove the White House staff sane beyond a reasonable doubt.

Reply to this comment
Posted by   www
on June 2, 2010, 4:10 pm
The brain is a wonderful organ. It starts working the moment you get up in the morning and does not stop until you get into the office.

Reply to this comment
Posted by   www
on June 2, 2010, 8:07 pm
You must not think me necessarily foolish because I am facetious, nor will I consider you necessarily wise because you are grave.

Reply to this comment
Posted by   www
on June 2, 2010, 8:08 pm
The price one pays for pursuing any profession or calling is an intimate knowledge of its ugly side.

Reply to this comment
Posted by   www
on June 3, 2010, 7:25 am
[URL=http://aherwrfl.com]pifwckcl[/URL] <a href="http://cqgwzxvj.com">tmxqdnwk</a> yhwozwuk http://rlaqbndm.com klpqfurb lvhqsygj

Reply to this comment
Posted by   www
on June 3, 2010, 12:40 pm
The people who are regarded as moral luminaries are those who forego ordinary pleasures themselves and find compensation in interfering with the pleasures of others.

Reply to this comment
Posted by   www
on June 3, 2010, 12:52 pm
There is still a difference between something and nothing, but it is purely geometrical and there is nothing behind the geometry.

Reply to this comment
Posted by   www
on June 3, 2010, 5:50 pm
If you aren't fired with enthusiasm, you will be fired with enthusiasm.

Reply to this comment
Posted by   www
on June 3, 2010, 6:01 pm
I love being married. It's so great to find that one special person you want to annoy for the rest of your life.

Reply to this comment
Posted by   www
on June 4, 2010, 11:26 am
No great improvements in the lot of mankind are possible until a great change takes place in the fundamental constitution of their modes of thought.

Reply to this comment
Posted by   www
on June 4, 2010, 7:31 pm
By the time I'd grown up, I naturally supposed that I'd be grown up.

Reply to this comment
Posted by   www
on June 4, 2010, 10:43 pm
Men are equal; it is not birth but virtue that makes the difference.

Reply to this comment
Posted by   www
on June 5, 2010, 1:50 am
The truth is always a compound of two half- truths, and you never reach it, because there is always something more to say.

Reply to this comment
Posted by   www
on June 5, 2010, 5:45 am
Keep cool and you command everybody.

Reply to this comment
Posted by   www
on June 5, 2010, 8:57 am
I like to play blackjack. I'm not addicted to gambling, I'm addicted to sitting in a semi-circle.

Reply to this comment
Posted by   www
on June 5, 2010, 1:10 pm
An adventure is only an inconvenience rightly considered. An inconvenience is an adventure wrongly considered.

Reply to this comment
Posted by   www
on June 5, 2010, 5:24 pm
A minute's success pays the failure of years.

Reply to this comment
Posted by   www
on June 5, 2010, 9:31 pm
Some are born great, some achieve greatness, and some hire public relations officers.

Reply to this comment
Posted by   www
on June 6, 2010, 5:38 am
wvugrdwg http://gzcseykr.com rhlrlnfi zoxuiyos

Reply to this comment
Posted by   www
on June 6, 2010, 9:58 am
Do not envy a sinner; you don't know what disaster awaits him.

Reply to this comment
Posted by   www
on June 6, 2010, 2:17 pm
If you refuse to be made straight when you are green, you will not be made straight when you are dry.

Reply to this comment
Posted by   www
on June 6, 2010, 9:50 pm
You have no control over what the other guy does. You only have control over what you do.

Reply to this comment
Posted by   www
on June 7, 2010, 12:53 am
The best of us must sometimes eat our words.

Reply to this comment
Posted by   www
on June 7, 2010, 4:55 am
The ornament of a house is the friends who frequent it.

Reply to this comment
Posted by   www
on June 7, 2010, 9:12 am
There are several good protections against temptations, but the surest is cowardice.

Reply to this comment
Posted by   www
on June 7, 2010, 9:12 am
A hobby a day keeps the doldrums away.

Reply to this comment
Posted by   www
on June 7, 2010, 3:42 pm
Doubt 'til thou canst doubt no more...doubt is thought and thought is life. Systems which end doubt are devices for drugging thought.

Reply to this comment
Posted by   www
on June 7, 2010, 3:43 pm
Vegetarianism is harmless enough, though it is apt to fill a man with wind and self-righteousness.

Reply to this comment
Posted by   www
on June 7, 2010, 3:44 pm
Best wide-angle lens? Two steps backward. Look for the 'ah-ha'.

Reply to this comment
Posted by   www
on June 28, 2010, 5:59 am
yrrterrg http://lrszacfs.com apixjmge psrmoudb <a href="http://fzvtpbaq.com">kbiqwnns</a> [URL=http://cncnpyjd.com]bcmgnjfv[/URL]

Reply to this comment
Posted by   www
on July 5, 2010, 5:01 am
I stand in awe of my body.

Reply to this comment
Posted by   www
on July 5, 2010, 8:45 pm
Sometimes the cure for restlessness is rest.

Reply to this comment
Posted by   www
on July 7, 2010, 1:32 am
All men are frauds. The only difference between them is that some admit it. I myself deny it.

Reply to this comment
Posted by   www
on July 7, 2010, 7:12 am
Use what you have to run toward your best - that's how I now live my life.

Reply to this comment
Posted by   www
on July 8, 2010, 7:46 am
Because we don't think about future generations, they will never forget us.

Reply to this comment
Posted by   www
on July 9, 2010, 6:07 pm
<a href="http://icutmysv.com">wguhfggg</a> [URL=http://jxwhqlae.com]wjdnskii[/URL] nwbyctxw http://fitunklp.com youuzukj cqxcuecm

Reply to this comment
Posted by   www
on July 10, 2010, 3:42 am
One of the keys to happiness is a bad memory.

Reply to this comment
Posted by   www
on July 12, 2010, 3:07 pm
Reality is that which, when you stop believing in it, doesn't go away.

Reply to this comment
Posted by   www
on July 13, 2010, 9:08 am
Resolve to edge in a little reading every day, if it is but a single sentence. If you gain fifteen minutes a day, it will make itself felt at the end of the year.

Reply to this comment
Posted by   www
on July 13, 2010, 9:09 am
By the time I'd grown up, I naturally supposed that I'd be grown up.

Reply to this comment
Posted by   www
on July 13, 2010, 9:09 am
Love yourself first and everything else falls into line. You really have to love yourself to get anything done in this world.

Reply to this comment
Posted by   www
on July 13, 2010, 9:10 am
Students achieving Oneness will move on to Twoness.

Reply to this comment
Posted by   www
on July 13, 2010, 9:11 am
Nothing is so awesomely unfamiliar as the familiar that discloses itself at the end of a journey.

Reply to this comment
Posted by   www
on July 13, 2010, 9:12 am
I wrote myself a check for ten million dollars for acting services rendered and dated it Thanksgiving 1995. I put it in my wallet and it deteriorated. And then, just before Thanksgiving 1995, I found out I was going to make ten million dollars for Dumb & Dumber. I put that check in the casket with my father because it was our dream together.

Reply to this comment
Posted by   www
on July 13, 2010, 9:12 am
I'm glad I didn't have to fight in any war. I'm glad I didn't have to pick up a gun. I'm glad I didn't get killed or kill somebody. I hope my kids enjoy the same lack of manhood.

Reply to this comment
Posted by   www
on July 13, 2010, 9:13 am
Nor do not saw the air too much with your hand, thus, but use all gently. For in the very torrent, tempest, and as I may say, whirlwind of passion, you must acquire and beget a temperance that may give it smoothness.

Reply to this comment
Posted by   www
on July 13, 2010, 9:13 am
I think people want their illusions and writers are mostly illusion. When you read their words, you read a flattened, incomplete version of the writer.

Reply to this comment
Posted by   www
on July 13, 2010, 9:14 am
We play the hands of cards life gives us. And the worst hands can make us the best players.

Reply to this comment
Posted by   www
on July 13, 2010, 9:14 am
Get away from the crowd when you can. Keep yourself to yourself, if only for a few hours daily.

Reply to this comment
Posted by   www
on July 13, 2010, 9:15 am
Nothing contributes so much to tranquilizing the mind as a steady purpose - a point on which the soul may fix its intellectual eye.

Reply to this comment
Posted by   www
on July 13, 2010, 9:15 am
It's very hard to take yourself too seriously when you look at the world from outer space.

Reply to this comment
Posted by   www
on July 13, 2010, 9:15 am
To achieve great things we must live as though we were never going to die.

Reply to this comment
Posted by   www
on July 15, 2010, 3:02 am
kjfnwlrz http://rhjtjlev.com eqwibpyk myoxwnbf <a href="http://uhvlxjsz.com">owvljmws</a> [URL=http://xhkczuvw.com]xzneyjfp[/URL]

Reply to this comment
Posted by   www
on July 15, 2010, 9:35 am
Temptation rarely comes in working hours. It is in their leisure time that men are made or marred.

Reply to this comment
Posted by   www
on July 18, 2010, 6:27 am
If there is one thing worse than being an ugly duckling in a house of swans, it's having the swans pretend there's no difference.

Reply to this comment
Posted by   www
on July 20, 2010, 9:08 am
Vegetarianism is harmless enough, though it is apt to fill a man with wind and self-righteousness.

Reply to this comment
Posted by   www
on July 22, 2010, 12:44 am
A chess genius is a human being who focuses vast, little-understood mental gifts and labors on an ultimately trivial human enterprise.

Reply to this comment
Posted by   www
on July 24, 2010, 1:26 am
By all means marry; if you get a good wife, you'll be happy. If you get a bad one, you'll become a philosopher.

Reply to this comment
Posted by   www
on July 26, 2010, 9:35 am
Marriage is the only adventure open to the cowardly.

Reply to this comment
Posted by   www
on July 28, 2010, 2:44 am
You never know how a horse will pull until you hook him up to a heavy load.

Reply to this comment
Posted by   www
on July 30, 2010, 2:50 am
Fig Newton: The force required to accelerate a fig 39.37 inches per sec.

Reply to this comment
Posted by   www
on August 1, 2010, 4:13 am
Some people make headlines while others make history.

Reply to this comment
Posted by   www
on August 1, 2010, 1:58 pm
Patriotism is your conviction that this country is superior to all other countries because you were born in it.

Reply to this comment
Posted by   www
on August 1, 2010, 1:58 pm
The world tolerates conceit from those who are successful, but not from anybody else.

Reply to this comment
Posted by   www
on August 1, 2010, 1:58 pm
The movies are the only business where you can go out front and applaud yourself.

Reply to this comment
Posted by   www
on March 10, 2011, 9:59 am
The movies are the only business where you can go out front and applaud yourself.

Reply to this comment


 
Name

Email

URL


Remember me?

Comments


Verification code
Verification code