Password Guessing with THC-Hydra

    Date 09 Jan 2012
    Posted By Anthony Pell
    LS Hmepg 337x500 29

    Hydra is available for Windows and Linux. I've used both, however if you have the need for speed, Linux is the way to go. I'm sure you're itching to get started so I'll stop yapping.

    Hydra in its most basic form requires 4 items;

    1. target IP address
    2. user name (to be used during login process)
    3. password (to be used with above username)
    4. service (to be brute forced)

    hydra -l administrator -p password ftp

    However this isn't much fun, not to mention time consuming. Who wants to re-issue the following command over and over again manually.

    Instead you can utilize a text file and store passwords you want to try. Hydra can pump through a large text file in minutes.

    The easiest switches to remember are -l / -L and -p / -P

    Small case switches 'l/p' specify a single set of login credentials at the command line and upper case switches 'L/P' inform Hydra to look in a text file for both the user name and password. Let's say we had a text file with 100,000 words, and we wanted to brute force the Administrator account. We would issue the following command.

    hydra -l administrator -P /path/to/file/passwords.txt ftp

    What if you want to try different user names, how would that look like?

    hydra -L /path/to/file/usernames.txt -P /path/to/file/passwords.txt ftp

    If you're brute forcing a remote host on the Internet you could specify a wait period with '-w' switch. On the flip side if you want to see each try on screen, ask Hydra to be verbose with '-v'.

    Above example is brute forcing an FTP server. How about a Windows target? Windows authentication is handled by the SMB service. Our new command line would look like this;

    hydra -l administrator -P /path/to/file/passwords.txt smb

    Before you go crazy, a word of warning and some items to remember: 1. Accounts other than Administrator can be locked out. However Administrator can be locked out in special circumstances. Be careful! 2. If you don't specify a domain you're brute forcing the local administrator account. 3. Hydra by default attempts 16 parallel connections. This may be too much for some hosts. Adjust this setting with '-t'. For example limiting Hydra to a single connection like this;.

    hydra -l administrator -P /path/to/file/passwords.txt -t 1 smb

    Hydra is easy to use. Above examples should get you started. Next week I'll show you Medusa. Cheers


    For more information - please visit our blog at: www.digitalboundary.net/wp

    LinuxSecurity Poll

    What do you think of the articles on LinuxSecurity?

    No answer selected. Please try again.
    Please select either existing option or enter your own, however not both.
    Please select minimum 0 answer(s) and maximum 3 answer(s).
    [{"id":"87","title":"Excellent, don't change a thing!","votes":"78","type":"x","order":"1","pct":57.78,"resources":[]},{"id":"88","title":"Should be more technical","votes":"18","type":"x","order":"2","pct":13.33,"resources":[]},{"id":"89","title":"Should include more HOWTOs","votes":"39","type":"x","order":"3","pct":28.89,"resources":[]}] ["#ff5b00","#4ac0f2","#b80028","#eef66c","#60bb22","#b96a9a","#62c2cc"] ["rgba(255,91,0,0.7)","rgba(74,192,242,0.7)","rgba(184,0,40,0.7)","rgba(238,246,108,0.7)","rgba(96,187,34,0.7)","rgba(185,106,154,0.7)","rgba(98,194,204,0.7)"] 350


    bottom 200

    We use cookies to provide and improve our services. By using our site, you consent to our Cookie Policy.