Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 31 guests and 1 member online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Wirelessarrow hack D-Link router admin pwd
EH-Net
May 24, 2013, 11:36:32 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: hack D-Link router admin pwd  (Read 45418 times)
0 Members and 1 Guest are viewing this topic.
mark77
Newbie
*
Offline Offline

Posts: 11


View Profile
« on: June 14, 2009, 12:34:04 AM »

hi,
i'm quite a newbie...so sorry if i should make idiot questions  Wink

i'm dealing with a D-Link DI-524 (Firmware version V2.04)
The router itself has wireless set on OFF (i access it thru on AccessPoint of the same Lan i'm autheticated on)
i can access the router Administration web page (http://router-ip Login) as "user" and
i could download the settings backup file (which is called "config.bin")
i'm guessing, not sure btw, this file contains also the admin password to the router....by i can't read it, maybe encrypted?

so, i thought there could be another way to "retrieve" the admin pwd.
I've been reading about tools like Hydra or Medusa...
but i don't have a clue about how to use them, even where to download the suitable version (i'm using WindowsXp)

I thank you very much for any help/suggestion.  Smiley
« Last Edit: June 14, 2009, 12:45:17 AM by mark77 » Logged
Vedder
Newbie
*
Offline Offline

Posts: 26


View Profile WWW
« Reply #1 on: June 14, 2009, 03:50:26 AM »

Who has turned turned off the wireless?

If an admin has turned it off then I am sure that they don't want it turned back on.

Is this you router?
Logged

C|EH, MCSE, MCSA: Security, Security+, Network+, A+
mark77
Newbie
*
Offline Offline

Posts: 11


View Profile
« Reply #2 on: June 14, 2009, 01:53:48 PM »

i' trying to do this security test on the wireless lan of my brother (with his permission, or better he himself has asked me to do that)

can somebody please help me about either reading the "config.bin"
or using Medusa/Hydra on Windows (as i said the router has http web login)?
thanks
« Last Edit: June 14, 2009, 04:44:22 PM by mark77 » Logged
Ketchup
Hero Member
*****
Offline Offline

Posts: 1021



View Profile
« Reply #3 on: June 14, 2009, 08:45:40 PM »

Hydra and Brutus will attack the password on the web site used to manage the router.   Both tools are incredibly easy to use.  You simply point them at the website url that requires logon, and specify a type of attack.   You can use a dictionary word list, or you can simply brute force the password.   Both tools are pretty slow.     Just search google for "brutus download" or "hydra download." 

As far as reading the config.bin, the password there is most likely encrypted.   You would have to first find the password in the file and then determine the hash algorithm.   I am not sure if this is a realistic attack vector.   I could be wrong though.
Logged

~~~~~~~~~~~~~~
Ketchup
jimbob
Guest
« Reply #4 on: June 15, 2009, 03:02:46 AM »

These passwords are often poorly encoded and fairly easy to bypass if you have some time to spare. I wrote up a couple of examples from a few years back where I cracked simple password encoding schemes. If you can change the user password and look at the password hash you can used this as leverage; this in knows as a known plaintext attack.

http://www.watersheep.org/~jim/codecracking/

Silly question, but have you tried the default passwords for this device? admin:password for the win!

Jimbob
Logged
UNIX
Hero Member
*****
Offline Offline

Posts: 1235


View Profile
« Reply #5 on: June 15, 2009, 04:04:47 AM »

can somebody please help me [...] using Medusa/Hydra on Windows (as i said the router has http web login)?
thanks

Don't want to be rude but when you can't read manuals and documentations on those tools such a test may be something which is currently above your head as they tools are really easy to handle.

Logged
unsupported
Sr. Member
****
Offline Offline

Posts: 318


Unofficial Newbie Moderator


View Profile
« Reply #6 on: June 15, 2009, 07:23:49 AM »

If you are unable to use the tools you are asking about, try the simple approach.  Search for the default router password.  There are plenty of sites which will show them.  If the default password does not work and you have physical access to the device just try resetting it and then use the default password.
Logged

-Un
CISSP, GCIH, GCIA, C|EH, Sec+, Net+, MCP
jimbob
Guest
« Reply #7 on: June 15, 2009, 10:30:20 AM »

If the default password does not work and you have physical access to the device just try resetting it and then use the default password.

Just remember to check you bro has the settings for his broadband provider if this thing is linked to an ADSL line. Otherwise this move might cause upset family harmony.

Jimbob
Logged
mark77
Newbie
*
Offline Offline

Posts: 11


View Profile
« Reply #8 on: June 16, 2009, 01:29:39 AM »

i used Bruter
but after a few attempts (some minutes) it stopped...and the Router went offline the Lan !!???

why?
Logged
UNIX
Hero Member
*****
Offline Offline

Posts: 1235


View Profile
« Reply #9 on: June 16, 2009, 01:45:34 AM »

As I don't know your router model in detail maybe you just DoS'ed it? Meaning that you sent so much requests to it that it denied its further service and temporary shut down.
Some routers will also behave like this when you entered a certain number of wrong credentials which is of course a security feature.

Don't you have physical access as stated by unsupported?
Logged
jimbob
Guest
« Reply #10 on: June 16, 2009, 02:33:31 AM »

It could be a defense mechanism in case of brute force attack but like awesec says it's as likely to be an accidental DoS. Embedded router web servers are often very flaky under load; I've seen them fail following an nmap scan so the notion that a brute force attack would disable it is plausible.

If you have the config file dumped perhaps you should reset the router to the factory default and reload the file? I think your current approach demonstrates the sledgehammer/walnut interface scenario.

Jimbob
Logged
mark77
Newbie
*
Offline Offline

Posts: 11


View Profile
« Reply #11 on: June 16, 2009, 03:24:36 AM »

as i said the router is a D-Link DI-524 (Firmware version V2.04)

the test i'm doing is meant without physical access to it

so, i should decrease the number of simoultaneous "connections" with Bruter ? (i set to 5)
or the brute force will cause router's breakdown all the same ?
(after shutting down, should it reload by itself or not ?)

other ways to retrieve the admin passowrd ?
Logged
UNIX
Hero Member
*****
Offline Offline

Posts: 1235


View Profile
« Reply #12 on: June 16, 2009, 03:32:38 AM »

I read that but I haven't any experience with this particular router myself, that was what I meant.

It sounds logical to remove the number of attempts but then it will depending on the password take you quite a long time to successfully brute the password if at all. Therefore I would say it will be hard to succeed by going this way.

Other attack possibilities my be on exploits available for this router or its firmware (haven't checked this) if its using an old one.

As physical access is no possibility (..) you may try something like phisihing, social engineering etc. Also a keylogger or similar on your brothers pc may help.
But all this are attack possibilites which have not really anything to do with the router itself and may then again not be what you are looking for.

Another way may be to reverse engineer the file format of the config file when you assume that the credentials are stored there.
« Last Edit: June 16, 2009, 03:35:40 AM by awesec » Logged
former33t
Full Member
***
Offline Offline

Posts: 226


View Profile
« Reply #13 on: June 16, 2009, 08:04:42 PM »

I'll throw in my two cents.  I've DOS'd more than a fair share of SoHo routers doing "testing" (of the ethical type of course).  FWIW, the quickest way to DoS the average SoHo router is to hit the DHCP server a LOT.  Most SoHo routers can't really handle more than one or two DHCP requests at a time.  They'll fail spectacularly (stop switching, routing to Internet, etc) long before they exhaust their IP range.

Logged

Certifications: CREA, MCSE: Security, CCNA, Security+, other junk
m.febres
Newbie
*
Offline Offline

Posts: 6


View Profile WWW
« Reply #14 on: June 20, 2009, 07:08:26 PM »

May you share your config.bin? I would like to take a look on it :-)
Logged

SCJA - CRCEP - CREA - CEH
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.088 seconds with 23 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Free Business and Tech Magazines and eBooks

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.