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 100 guests and 1 member online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Network Pen Testingarrow hydra help
EH-Net
May 23, 2013, 10:40:49 AM *
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 [2] 3   Go Down
  Print  
Author Topic: hydra help  (Read 16958 times)
0 Members and 1 Guest are viewing this topic.
hayabusa
Hero Member
*****
Offline Offline

Posts: 1633



View Profile
« Reply #15 on: March 10, 2010, 11:08:26 AM »

you can also try adding another computer to the router through the broadcast port and sniff all packages with wireshark. actually the same option as hayabusa offered, but then you sniff the complete network to check for abnormality.

Or if you WANT to see what other machines / devices are doing, you can use ettercap to sniff the switched network ports...  many an option to be had.  Again, though my reason was simply to determine, for certain, which end is failing in your testing - the application, or the remote device / service.  I'm doubtful it has anything to do with anything on the other ports, but that's only based on my knowledge of hydra, and the unreachable errors you were getting...

Cheers!
Logged

~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCE, OSCP , GPEN, C|EH
LT72884
Jr. Member
**
Offline Offline

Posts: 95


View Profile
« Reply #16 on: March 10, 2010, 02:51:08 PM »

you can also try adding another computer to the router through the broadcast port and sniff all packages with wireshark. actually the same option as hayabusa offered, but then you sniff the complete network to check for abnormality.

yup, i have 2 PC's on the network. My parents and mine, oh and the dang printer to.. Gonna try this tonight and see what i find.

thanx for the input.

Logged
LT72884
Jr. Member
**
Offline Offline

Posts: 95


View Profile
« Reply #17 on: March 10, 2010, 10:26:46 PM »

i ran wireshark and pinged my router. Traffic seems normal. Did an nmap scan and that worked. But as soon as i tried hydra, same issue. Wiresharks out put says TCP GET HTTP 404 NOT FOUND src80 dst4392. that was the reply from the router. Also noticed a GET HTTP foo/bar/protected.html from BT4 to router..Other than that, the packets seem to be normal.. My network set up is host only and NAT for outside communication.. Shouldnt matter though..

hydra is set up for 8 tasks with a timeout of 30. using http-get as protocol with the password list of darkcode.lst and no proxy set up. however i just realized i have K9 installed on my machine...

thanx
Logged
hayabusa
Hero Member
*****
Offline Offline

Posts: 1633



View Profile
« Reply #18 on: March 11, 2010, 07:22:44 AM »

So, if the router is giving you the 404, then you're not even reaching whatever HTTP page hydra is going to.  So either it's passing a bad URL, or something's still not configured right.  Thus your failure to connect.
Logged

~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCE, OSCP , GPEN, C|EH
j0rDy
Hero Member
*****
Offline Offline

Posts: 590


View Profile
« Reply #19 on: March 11, 2010, 08:25:16 AM »

you can also try adding another computer to the router through the broadcast port and sniff all packages with wireshark. actually the same option as hayabusa offered, but then you sniff the complete network to check for abnormality.

yup, i have 2 PC's on the network. My parents and mine, oh and the dang printer to.. Gonna try this tonight and see what i find.

thanx for the input.



disconnect the printer, you know, just to be sure  Wink Cheesy
Logged

ISC2 Associate, CEH, ECSA, OSCP, OSWP

earning my stripes appears to be a road i must travel alone...with a little help of EH.net
KamiCrazy
Jr. Member
**
Offline Offline

Posts: 78


View Profile
« Reply #20 on: March 11, 2010, 02:50:07 PM »

Also noticed a GET HTTP foo/bar/protected.html from BT4 to router..

I believe this is your problem. foo/bar/protected?
Logged
hayabusa
Hero Member
*****
Offline Offline

Posts: 1633



View Profile
« Reply #21 on: March 11, 2010, 03:32:19 PM »

Doh!!!  Sssshhhhhhh... I was going to see if he was going to check that for himself.  I was 'trying' to point him in the proper direction, without totally pointing to it.   Tongue
Logged

~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCE, OSCP , GPEN, C|EH
LT72884
Jr. Member
**
Offline Offline

Posts: 95


View Profile
« Reply #22 on: March 11, 2010, 03:44:54 PM »

Doh!!!  Sssshhhhhhh... I was going to see if he was going to check that for himself.  I was 'trying' to point him in the proper direction, without totally pointing to it.   Tongue

LOLOL. my  next question was going to be this"what the heck is this fo/bar stuff all about?" but i didnt have time to add that to my post last night.. hahaha. I have no idea what that is at all. All i know is that its from BT and for some reason hydra is using that .html file for something. maybe... what that something is. I have no idea yet. So if my thinking is correct, hydra is using the foo/bar html page rather than actually trying to get to http://192.168.2.1 on port 80?

thanx guys
Logged
hayabusa
Hero Member
*****
Offline Offline

Posts: 1633



View Profile
« Reply #23 on: March 11, 2010, 03:58:43 PM »

Yes... start there...   Wink
Logged

~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCE, OSCP , GPEN, C|EH
LT72884
Jr. Member
**
Offline Offline

Posts: 95


View Profile
« Reply #24 on: March 11, 2010, 05:07:37 PM »

Yes... start there...   Wink

I found the foo/bar/protected.html file under specific settings. changed it to point to my router. However still same output. Wireshark shows 404 bad request. Funny thing is, my router got boched up from the attack. couldnt ping it from any host machine. power cycled it and the modem. and it was still TKO.. After a third powercycle it finally came back up. It was warm to. hahaha

Im getting closer i think. or at least i hope.

thanx for the help guys
Logged
j0rDy
Hero Member
*****
Offline Offline

Posts: 590


View Profile
« Reply #25 on: March 12, 2010, 03:46:03 AM »

good to see you havent given up yet! i think it is key you point your attack directly at the page you want it to start at. lets make it a little more visual. if your directing it at the index.html page, it might not work because of for example iframes and stuff its made from. try to get the actual page that contains the login without extra pages like headers and footers! (this subtle enough?)
Logged

ISC2 Associate, CEH, ECSA, OSCP, OSWP

earning my stripes appears to be a road i must travel alone...with a little help of EH.net
LT72884
Jr. Member
**
Offline Offline

Posts: 95


View Profile
« Reply #26 on: March 12, 2010, 11:07:36 PM »

good to see you havent given up yet! i think it is key you point your attack directly at the page you want it to start at. lets make it a little more visual. if your directing it at the index.html page, it might not work because of for example iframes and stuff its made from. try to get the actual page that contains the login without extra pages like headers and footers! (this subtle enough?)

I have trie3d to view the source code of the actual page but firefox wont allow me to view it nor wil IE. It actually doesnt bring up a separate page for login, rather a dialog box.. Then the actual config page. It seems that the video i watched, that shows them using 192.168.2.1, was have been an older firmware. Its like linksys smartened up a we bit.. haha

thanx
Logged
j0rDy
Hero Member
*****
Offline Offline

Posts: 590


View Profile
« Reply #27 on: March 13, 2010, 04:00:29 AM »

if the site doesnt let you view the source there are a lot of workarounds for it. try saving the page and open it locally, or just perform the complete scan/hack in a controlled environment and mirror/wget the whole site Cheesy good luck and let us know the output!
Logged

ISC2 Associate, CEH, ECSA, OSCP, OSWP

earning my stripes appears to be a road i must travel alone...with a little help of EH.net
LT72884
Jr. Member
**
Offline Offline

Posts: 95


View Profile
« Reply #28 on: March 13, 2010, 12:20:14 PM »

if the site doesnt let you view the source there are a lot of workarounds for it. try saving the page and open it locally, or just perform the complete scan/hack in a controlled environment and mirror/wget the whole site Cheesy good luck and let us know the output!

well, i cant do anything when that dialog box appears. file,edit,veiw, history and all those tabs gray out. they become non clickable. I can view the source code once i have logged in, but that defeats the purpose of the hack. If i were pentesting my companies router, i would have to find the correct page without loging in.. so i have to avoid that step at home.. hahaha

so i will have to try the wget and what not to see if i can get the source code of the login dialog box or at least find out where it is redirecting me to.
Logged
LT72884
Jr. Member
**
Offline Offline

Posts: 95


View Profile
« Reply #29 on: March 13, 2010, 07:53:44 PM »

Ok so i ran wireshark as i did the wget 192.168.2.1 request and checked for any http gets and found this:

WWW-Authenticate: Basic realm="WRT54GL"\r\n

after that line came the following:

SRC=192.168.2.1   DST=10.0.2.15   HTTP   HTTP/1.0 401 Unauthorized  (text/html)

the html output of that is just a red display with black letters.

So my guess is that when i type 192.168.2.1 into a browser, it makes a TCP connection to the router and then the router dishes out a seperate web page with a different address then just 192.168.2.1 for security reasons and my task is to find out what page it really is requesting so that i can point hydra to it. If that notion is correct. then how do i accomplish this with out loggin into the router to see the sorce code. ive gotta make this realistic. haha\
thanx guys
Logged
Pages: 1 [2] 3   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.063 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.