Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR] Compiled without LIBSSH v0.4.x support, module is not available! #344

Closed
ddistler opened this issue Jul 24, 2018 · 17 comments
Closed

Comments

@ddistler
Copy link

ddistler commented Jul 24, 2018

Compiled hyrda with SSH support. When I run hydra I get the above error message.

Here are my libssh libraries:

root@leonard:/opt/thc-hydra# dpkg -l | grep libssh
ii libssh-4:amd64 0.6.3-4+deb8u2 amd64 tiny C SSH library (OpenSSL flavor)
ii libssh-dev 0.6.3-4+deb8u2 amd64 tiny C SSH library. Development files (OpenSSL flavor)
ii libssh2-1:amd64 1.4.3-4.1+deb8u1 amd64 SSH2 client-side library

Here is the output of my ./configure --debug (I pulled other modules out for cleaner reading).

root@leonard:/opt/thc-hydra# ./configure --debug

Starting hydra auto configuration ...
Detected 64 Bit Linux OS

Checking for libssh (libssh/libssh.h) ...
DEBUG: SSH_PATH=/usr/lib/x86_64-linux-gnu/libssh
DEBUG: SSH_IPATH=/usr/include/libssh/libssh.h
... found

Hydra will be installed into .../bin of: /usr/local
(change this by running ./configure --prefix=path)

DEBUG: XDEFINES= -DHAVE_MYSQL_MYSQL_H -DLIBOPENSSL -DLIBNCURSES -DLIBFIREBIRD -DLIBIDN -DHAVE_PR29_H -DHAVE_PCRE -DLIBMYSQLCLIENT -DLIBPOSTGRES -DLIBSVN -DLIBSSH -DHAVE_ZLIB -DHAVE_MATH_H
DEBUG: XLIBS= -lz -lcurses -lssl -lfbclient -lidn -lpcre -lmysqlclient -lpq -lsvn_client-1 -lapr-1 -laprutil-1 -lsvn_subr-1 -lssh -lcrypto
DEBUG: XLIBPATHS=-L/usr/lib -L/usr/local/lib -L/lib -L/usr/lib/i386-linux-gnu -L/usr/lib/x86_64-linux-gnu -L/lib/i386-linux-gnu -L/usr/lib/x86_64-linux-gnu -L/usr/lib/i386-linux-gnu -L/usr/lib/x86_64-linux-gnu
DEBUG: XIPATHS= -I/usr/include/mysql -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include/postgresql -I/usr/include -I/usr/include/subversion-1 -I/usr/include/apr-1.0 -I/usr/include/subversion-1
DEBUG: PREFIX=/usr/local
DEBUG: XHYDRA_SUPPORT=xhydra
DEBUG: STRIP=strip
Writing Makefile.in ...
now type "make"

@vanhauser-thc
Copy link
Owner

I guess you just ran "hydra" without a path prefix so one in /usr/bin or /usr/local/bin was executed, not the one you compiled in the hydra source directory.
Try "./hydra -h" and ssh should be in the list of supported protocols.

@ddistler
Copy link
Author

I first tried from ./hydra then when to the /usr/local/bin. Same issue

The OS is Debian Stretch (9.5). I recently upgraded from Jessie (8) so I did a make clean, git pull and rebuilt.

Here is my output from ./hydra -h

root@leonard:/opt/thc-hydra# ./hydra
Hydra v8.7-dev (c) 2018 by van Hauser/THC - Please do not use in military or secret service organizations, or for illegal purposes.

Syntax: hydra [[[-l LOGIN|-L FILE] [-p PASS|-P FILE]] | [-C FILE]] [-e nsr] [-o FILE] [-t TASKS] [-M FILE [-T TASKS]] [-w TIME] [-W TIME] [-f] [-s PORT] [-x MIN:MAX:CHARSET] [-c TIME] [-ISOuvVd46] [service://server[:PORT][/OPT]]

Options:
-l LOGIN or -L FILE login with LOGIN name, or load several logins from FILE
-p PASS or -P FILE try password PASS, or load several passwords from FILE
-C FILE colon separated "login:pass" format, instead of -L/-P options
-M FILE list of servers to attack, one entry per line, ':' to specify port
-t TASKS run TASKS number of connects in parallel per target (default: 16)
-U service module usage details
-h more command line options (COMPLETE HELP)
server the target: DNS, IP or 192.168.0.0/24 (this OR the -M option)
service the service to crack (see below for supported protocols)
OPT some service modules support additional input (-U for module help)

Supported services: adam6500 asterisk cisco cisco-enable cvs firebird ftp ftps http[s]-{head|get|post} http[s]-{get|post}-form http-proxy http-proxy-urlenum icq imap[s] irc ldap2[s] ldap3[-{cram|digest}md5][s] mssql mysql nntp oracle-listener oracle-sid pcanywhere pcnfs pop3[s] postgres rdp redis rexec rlogin rpcap rsh rtsp s7-300 sip smb smtp[s] smtp-enum snmp socks5 svn teamspeak telnet[s] vmauthd vnc xmpp

Hydra is a tool to guess/crack valid login/password pairs. Licensed under AGPL
v3.0. The newest version is always available at http://www.thc.org/thc-hydra
Don't use in military or secret service organizations, or for illegal purposes.

Example: hydra -l user -P passlist.txt ftp://192.168.0.1

@tbennett6421
Copy link

Not sure if you're still having the issue, but I ran into this compiling hydra as well.
If you ran ./configure and make without the libssh packages installed; installed the packages and reran the commands make will not recognize the new configuration.

after installing the libssh packages I ran make clean followed by ./configure && make and the resulting hydra had libssh support

@tbennett6421
Copy link

Ah just saw you ran make clean already. Sorry

@XUZHONGYIQIANG
Copy link

现在有什么好的解决办法了?遇到了这个问题一直没有解决办法

@XUZHONGYIQIANG
Copy link

What's a good solution now? There is no solution to this problem

@vanhauser-thc
Copy link
Owner

the solution is to install ibssh ...

@XUZHONGYIQIANG
Copy link

It is also not allowed after installation,
Is there any installation method?

@vanhauser-thc
Copy link
Owner

you recompile it

@fabiojrsantos
Copy link

Not sure if you're still having the issue, but I ran into this compiling hydra as well.
If you ran ./configure and make without the libssh packages installed; installed the packages and reran the commands make will not recognize the new configuration.

after installing the libssh packages I ran make clean followed by ./configure && make and the resulting hydra had libssh support

thanks for support, it's a big help.

@Liam3452
Copy link

Hay what i did was just this "apt-get purge hydra" and then it started working after

@alessandrobelottidev
Copy link

That's what I did in order:

  • Installed libssh: apt-get install libssh-dev
  • Entered into the directory I've installed hydra in: cd /thc-hydra
  • Cleaned make as sudo: sudo make clean
  • Run configure: ./configure
  • Run make install: sudo make install

@vanhauser-thc
Copy link
Owner

what did the output of ./configure show you? it tells you if it can find libssh or not

@Anon-Exploiter
Copy link

That's what I did in order:

  • Installed libssh: apt-get install libssh-dev
  • Entered into the directory I've installed hydra in: cd /thc-hydra
  • Cleaned make as sudo: sudo make clean
  • Run configure: ./configure
  • Run make install: sudo make install

Thanks, worked fine.

@anugrahiyyan
Copy link

That's what I did in order:

* Installed libssh: apt-get install libssh-dev

* Entered into the directory I've installed hydra in: cd /thc-hydra

* Cleaned make as sudo: sudo make clean

* Run configure: ./configure

* Run make install: sudo make install

It's work, thanks man :)

@00xPh4ntom
Copy link

That's what I did in order:

* Installed libssh: apt-get install libssh-dev

* Entered into the directory I've installed hydra in: cd /thc-hydra

* Cleaned make as sudo: sudo make clean

* Run configure: ./configure

* Run make install: sudo make install

thanks your solution worked

@Dipak-Kalaskar077
Copy link

sudo apt install libssh-dev

cd thc-hydra/

sudo make clean

sudo ./configure

sudo make install

HERE YOU GO

Just run hydra command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests