Как установить hydra на windows

Reading Time: 3 minutes

Hydra, or THC-Hydra, is a powerful password-cracking tool widely used by ethical hackers and cybersecurity professionals for penetration testing. Its versatility and ability to work across multiple protocols make it a critical tool in testing the robustness of systems against brute force and dictionary attacks. Although Hydra is natively designed for Linux-based systems, it can be installed and used on Windows through methods like Windows Subsystem for Linux (WSL) or by using compatibility layers such as Cygwin.

In this guide, we’ll cover step-by-step instructions on how to install Hydra on Windows, including setup requirements and troubleshooting tips.


What is Hydra?

Hydra is a network login cracker capable of brute force and dictionary attacks across a wide range of protocols, such as SSH, FTP, HTTP, RDP, and more. It is an open-source tool developed by The Hacker’s Choice (THC) and is widely used for:

  • Password auditing
  • Penetration testing
  • Network security assessments

However, it is essential to use Hydra ethically and only on systems for which you have explicit permission to test.


Methods to Install Hydra on Windows

Installing Hydra on Windows requires a workaround since it does not natively support the Windows operating system. The most common methods are:

  1. Using Windows Subsystem for Linux (WSL)
  2. Using Cygwin
  3. Using a Pre-Compiled Binary with Linux Emulation Tools

Method 1: Installing Hydra Using WSL

Windows Subsystem for Linux (WSL) allows you to run a Linux distribution natively within Windows, making it the most seamless way to install Hydra.

Step 1: Install WSL

  1. Open PowerShell as Administrator and run:
    wsl --install
    This command installs WSL along with the default Ubuntu Linux distribution. If WSL is already installed, ensure it is updated:
    wsl --update
  2. Restart your system if prompted.
  3. Once installed, open the Ubuntu terminal from the Start Menu.

Step 2: Update and Install Dependencies

In the Ubuntu terminal, update the system and install the required dependencies for Hydra:

sudo apt update && sudo apt upgrade y<br>sudo apt install buildessential libssldev libsshdev libidn11dev \<br>libpcre3dev libgpgerrordev libgcrypt20dev git y


Step 3: Clone and Compile Hydra

  1. Clone the Hydra repository from GitHub:
    git clone https://github.com/vanhauser-thc/thc-hydra.git
  2. Navigate to the cloned directory:
    cd thc-hydra
  3. Compile Hydra by running:
    ./configure make
  4. (Optional) Install Hydra system-wide:
    sudo make install

Step 4: Verify the Installation

Run the following command to check if Hydra is installed correctly:

This displays Hydra’s help menu, confirming that the installation was successful. You can now use Hydra directly within the Ubuntu terminal on WSL.


Method 2: Installing Hydra Using Cygwin

Cygwin is a compatibility layer that provides a Linux-like environment on Windows. This method is suitable if you do not want to use WSL.

Step 1: Download and Install Cygwin

  1. Visit the Cygwin website and download the Cygwin setup executable.
  2. Run the installer and select a download mirror.
  3. During installation, add the following development packages:
    • gcc-core (C compiler)
    • make (build automation tool)
    • libssl-dev (SSL library development files)
    • libpcre-devel (PCRE library development files)
    • git (version control system)

Step 2: Clone and Compile Hydra

  1. Open the Cygwin terminal.
  2. Clone the Hydra repository:
    git clone https://github.com/vanhauser-thc/thc-hydra.git
  3. Navigate to the Hydra directory:
    cd thc-hydra
  4. Compile Hydra:
    ./configure make
  5. (Optional) Install Hydra system-wide:
    make install

Step 3: Verify Installation

Run the following command to verify Hydra’s installation:

If the help menu appears, Hydra has been successfully installed.


Method 3: Using a Pre-Compiled Binary

This method involves downloading a pre-compiled Hydra binary and using tools like MinGW or a Linux emulation layer.

Step 1: Download a Pre-Compiled Binary

Look for a trusted source offering pre-compiled Hydra binaries for Windows. Always verify the authenticity of the binary to avoid security risks.

Step 2: Run Hydra Using a Linux Emulator

Use tools like MinGW or Cygwin to run the binary, as it requires a Linux-like environment to execute.


Troubleshooting Common Issues

1. Missing Dependencies

If you encounter errors during the ./configure or make process, ensure all required dependencies are installed. Use:

sudo apt install libssldev libsshdev libidn11dev y

2. Permission Denied

Run commands with administrator privileges or use sudo in WSL and Cygwin to resolve permission issues.

3. Hydra Command Not Found

Ensure Hydra is added to your PATH or run it directly from the installation directory:

4. Compilation Errors

Compilation errors can occur if the required libraries are not installed or compatible. Ensure you are using the latest version of Hydra and your environment is properly configured.


Uninstalling Hydra

If you need to remove Hydra from your system, follow these steps:

For WSL Installations:

  1. Navigate to the Hydra directory in the Ubuntu terminal:
    cd thc-hydra
  2. Run:
    sudo make uninstall

For Cygwin Installations:

  1. Delete the Hydra directory:
    rm -rf /path/to/thc-hydra

Conclusion

Although Hydra is not natively supported on Windows, it can be installed and used effectively through WSL, Cygwin, or other compatibility tools. WSL is the most efficient and recommended method due to its native integration with Windows and seamless Linux compatibility.

Always use Hydra responsibly and within legal and ethical guidelines. With the right setup, you can leverage Hydra’s powerful capabilities for ethical hacking, password auditing, and penetration testing on your Windows system.

Disclaimer: This post may contain affiliate links. If you make a purchase through one of these links, Cyberly may earn a small commission at no extra cost to you. Your support helps us continue providing free tutorials and content. Thank you!

Guide for Windows

Setting up Hydra on Windows OS

Last updated

Select the latest wallet version from the link below:

Here you will find wallets for different types of operating systems. For Windows there are two versions — one for 32 bit and for 64 bit systems. Please select the one matching your device and download.

For this installation, you only need the relevant .exe file for your computer. There is no need to download the .zip files.

Once you have downloaded the installation file, simply click to run it. Windows may ask you for additional confirmation, because it can’t verify the security of the app. By clicking ‘more info’ you can choose the option to run anyway and proceed.

Start the Hydra wallet from the Windows start menu. You can search for it by keyword «HYDRA» and click on the Mainnet version. If you want to connect to testnet (port 13333 should be open) you can start the version of hydra with testnet in the name. Once you run the application, the wallet will automatically start synchronizing with the network and start downloading the chain. This may take a while, depending on your connection quality.

Make sure to run the mainnet version of the wallet, which should appear when you search for «Hydra» on windows. Otherwise you may be connecting to the testnet.

The node runs on port 3338 for mainnet and 13333 for testnet. You may need to open the port on the router and operating system. Please see your routers documentation for port forwarding and for the windows OS please see the section .

✅ You can now proceed with

The Mainnet Explorer can be viewed at:

THC-Hydra Windows Install Guide



Ok So I had a difficult time as a beginner installing hydra so I’ll be helping
you today installing THC-Hydra in this Tutorial.

Step 1: Download the Cygwin that corresponds to your system.

DOWNLOAD

Note: you can find out if your system is either 64 or
32 bit by right clicking «Computer» in the start menu.


Step 2: Install Cygwin by clicking on your what you’ve downloaded from the
Cygwin website. Press next on everything until when asked for what server to
download from, click on anyone (I don’t think it matters which one you choose).
Stop again when you need to select packages and move to step 3.


Step 3: Press the + button besides the «Default» package (only
package that should be there) and a list of packages should show up; find the
package «devel» under the «Default» package and change
where it says «default» besides each package’s name to
«Install» only to the devel package by clicking on where it says
«default» besides devel.


Note: The «default» package I talk about sitting at the top is
not the same as the «default» installation besides each package
.


Step 4: Click next, select the required packages option, go on and finish your
download


Step 5: Not really a step but you should have a Cygwin terminal on your desktop
and if not go to the install destination (usually «C:\Cygwin» or
«C:\Program Files\Cygwin») and right click the batch file labeled
Cygwin and press «Create Shortcut» and move the shortcut into
wherever you find the most convenient to have it at.

Note: You will be using the Cygwin terminal every time you want to use
hydra.

IMPORTANT, ONLY FOR 64-BIT USERS:

1. Go into the folder where Cygwin was installed


2. Go into the folder inside the Cygwin installation folder named
«bin»


3. Right Click on a file in «bin», Go to properties and copy the
location (Ex. C:\Program Files\Cygwin\bin) which is essentially the location of
the bin folder.


4. Go to «Control Panel\System and Security\System»


5. Click Advanced System Setting located to your left


6. Sitting at the bottom right of the screen that just popped up press the
Environment Variables button


7. On the second box of text titled System Variables scroll down until you find
the variable «Path»


8. Click the variable «Path» and click the edit button


9. Don’t mess with anything in the text box just type this besides all the
already written shit in the text box «;[Bin location Here]»


10. Press Ok


Now that we have finished installing Cygwin we can get to the fun part and
install Hydra


Step 1: Download Hydra from either directly

DOWNLOAD

Step 2: Unzip the file using a program such as Winrar (can be downloaded at www.rarlab.com) to your desktop.


Step 3: Move the file from your desktop into your main drive «C:»


Step 4: Open the Cygwin terminal which if you listened to me you made a
shortcut to already.


Error Note: If it says «cannot find mintty would you like to browse for
it» then browse to your installation folder, go to bin and look
alphabetically for mintty until you find it.


Step 5: search for cmd at the start menu (if you can’t it’s placed in «C:\Windows\System32\cmd»)
when you do find it right click it and click «run as administrator»


Step 6: type «NetSh Advfirewall set allprofiles state off» to turn
off your firewall off. manually turn off your other antiviruses such as Norton
or McAfee

Note: I understand this might sound crazy but when you’re installing a
hacking software you don’t anti-hack softwares running.

Now you can test Cygwin out by issuing a few commands that you wouldn’t normally have use to in Windows that are common Linux commands. Here is a quick view of: «pwd», «cd /», «ls», «ps»:




Step 7: on Cygwin terminal type 


«cd /cygdrive/c/hydra-8.1.tar»



Once this is successful there should be yellow text besides your user name
saying «/cygdrive/c/hydra-8.1.tar»



Step 8: Type «./configure»


wait until it stops saying anything and then wait 2/3 minutes to make sure it
stopped.



step 9: Type «make»


wait until it stops saying anything and then wait 2/3 minutes to make sure it
stopped.


Step 10: Type «make install»


wait until it stops saying anything and then wait 2/3 minutes to make sure it
stopped.


Step 11: I hope by now everything has gone fine and Cygwin should be letting
you input but just close it if you’re done.


Step 12: Now right click your Cygwin shortcut, go into properties and make the
start in «C:\hydra-8.1.tar» and rename it hydra


Step 13: Turn your firewall back on by typing this in the admin cmd «NetSh
Advfirewall set allrprofiles state on» but make sure that it doesnt
intervene with hydra, google how to exclude programs from firewall and if you
have a antivirus same goes.

Home work.

Image Credit:
g-stockstudio/iStock/Getty Images

Hydra is a free application that lets users check for password vulnerabilities on servers or desktop computers. While Hydra is a Linux application, you can install it on a Windows system by using Cygwin, a Linux emulator for Windows. Installing Hydra on a Windows computer running Cygwin requires you to download the installation package and then unpack it and register its files by using specific terminal commands.

Step 1

Launch the Cygwin application on your Windows system. Download it from cygwin.com and install it on your computer if you have not already done so.

Step 2

Open your Internet browser in Cygwin and visit THC.org. Click on the download link for the latest version of Hydra and save the TGZ file on your hard drive.

Step 3

Open the X terminal application within Cygwin and navigate to the folder where you saved the TGZ file by using the «cd» command.

Step 4

Enter the following command in the terminal window to unpack the TGZ archive:

$ tar tgzfilename

Replace «tgzfilename» with the actual name of the TGZ file you previously downloaded.

Step 5

Type the next three commands in the terminal window to finish installing Hydra:

$ ./configure $ make $ make install

Press the «Enter» key after typing each command.

Skip to content



Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Repository files navigation

THC-HYDRA-windows

Description

The THC-HYDRA tool compiled for Windows

Features

  • Latest 9.1 version (2020-07-29)
  • Compiled for x64 only from version 9.1, older releases were compiled for x86 so they should work on x86 and x64 platforms
  • Compiled with SSH, MySQL, PostgreSQL and RDP optional modules
  • Embedded Cygwin DLLs

Usage

  1. Download the whole archive
  2. Extract it and run hydra.exe
  3. Profit

Prerequisites

  • Microsoft Visual C++ 2008 Redistributable Package (more info here)

Older versions

  • Browse the release section to find some old versions

Disclaimer & licence

The very same as mentioned on https://github.com/vanhauser-thc/thc-hydra.
I don’t own anything on THC brand or hydra, neither am I affiliated or working on the project.

Last but not least, antivirus softwares might report some binaries as hacktools or even malwares: this is a known and common issue. If you don’t trust this compilation, just don’t download it.

Credits

  • The Hackers Choice «THC» https://github.com/vanhauser-thc/thc-hydra

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Windows remote management перевод
  • Ози эксплорер для windows
  • Не могу зайти в службы windows 11 администратор заблокировал
  • Как настроить удаленный рабочий стол windows server 2019
  • Оптимизация windows 7 starter