Skip to content
Thomas D edited this page Aug 16, 2020 · 7 revisions

Welcome to the thc-hydra-windows wiki !

Compile on Cygwin

  • How to compile on Cygwin without xhydra
$ ./configure --debug --disable-xhydra --prefix=$PWD/build
  • How to make a portable version once it is compiled on Cygwin
$ ldd hydra.exe | grep -iv WINDOWS | cut -d '>' -f 2 | cut -d ' ' -f 2-|sed -r 's/(.*)\s[(].*/\1/g'| xargs -n1 -I {} sh -c 'cp "{}" .'

Compile on MSYS2

  1. Install packages
$ pacman -S -s make gcc mingw-w64-x86_64-libssh openssl-devel libgcrypt-devel libidn-devel libpcre pcre-devel mingw-w64-x86_64-postgresql subversion apr-devel apr-util-devel mingw-w64-x86_64-firebird2-git mingw-w64-x86_64-libmariadbclient

Note that unlike Cygwin, there is currently no freerdp package for MSYS2, hence rdp will not be supported in the build.

  1. How to compile on MSYS2 without xhydra : https://github.com/vanhauser-thc/thc-hydra/issues/552
  2. How to make a portable version once it is compiled on MSYS2:
$ pacman -S -s mingw64/mingw-w64-x86_64-ntldd-git
$ /mingw64/bin/ntldd.exe -R hydra.exe | grep -iv WINDOWS | grep -iv "not found"|cut -d '>' -f 2  | cut -d ' ' -f 2-|sed -r 's/(.*)\s[(].*/\1/g'|sed '/^C\:/!d' | sed -r 's/C\:\\msys64\\/\//g' | tr \\\\ / | xargs -n1 -I {} sh -c 'cp "{}" .'
Clone this wiki locally