Share your story
The central voice for Linux and Open Source security news
Home News Topics Advisories HOWTOs Features Newsletters About Register

Sign up!
EnGarde Community
What is the most important Linux security technology?
Linux Events
Linux User Groups
Link to Us
Security Center
Book Reviews
Security Dictionary
Security Tips
White Papers
Featured Blogs
All About Linux
DanWalsh LiveJournal
Latest Newsletters
Linux Advisory Watch: March 27th, 2015
Linux Security Week: March 23rd, 2015
LinuxSecurity Newsletters
Choose Lists:
About our Newsletters
RSS Feeds
Get the LinuxSecurity news you want faster with RSS
Powered By

Password Guessing with THC-Hydra Print E-mail
User Rating:      How can I rate this item?
Source: LinuxSecurity Contributors - Posted by Administrator   
Security Tips 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:

Only registered users can write comments.
Please login or register.

Powered by AkoComment!

Next >


Latest Features
Peter Smith Releases Linux Network Security Online
Securing a Linux Web Server
Password guessing with Medusa 2.0
Password guessing as an attack vector
Squid and Digest Authentication
Squid and Basic Authentication
Demystifying the Chinese Hacking Industry: Earning 6 Million a Night
Free Online security course (LearnSIA) - A Call for Help
What You Need to Know About Linux Rootkits
Review: A Practical Guide to Fedora and Red Hat Enterprise Linux - Fifth Edition
Yesterday's Edition
Partner Sponsor

Community | HOWTOs | Blogs | Features | Book Reviews | Networking
 Security Projects |  Latest News |  Newsletters |  SELinux |  Privacy |  Home
 Hardening |   About Us |   Advertise |   Legal Notice |   RSS |   Guardian Digital
(c)Copyright 2015 Guardian Digital, Inc. All rights reserved.