java中的接口是类吗
470
2022-10-02
渗透之——Hydra安装报错 Compiled without LIBSSH v0.4.x support, module is not available!
注:大家可以到链接下载Hydra一键安装包,内含冰河亲做一键安装脚本,直接运行即可。
在我们安装Hydra的过程中,可能会出现如下错误:
[ERROR] Compiled without LIBSSH v0.4.x support, module is not available!
下面,就如何安装Hydra和解决上述问题,冰河将方法分享出来:
如何装libssh呢?方法如下:
方法一、支持apt-get的话
apt-get purge hydraapt-get install cmake libssl-dev
方法二、编译安装
2.1 libssh
wget zxf libssh-0.4.8.tar.gzcd libssh-0.4.8mkdir buildcd buildcmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug -DWITH_SSH1=ON ..makemake install
2.2 hydra
yum -y install openssl-devel pcre-devel ncpfs-devel postgresql-devel libssh-devel subversion-devel libncurses-develwget zxvf hydra-7.4.2.tar.gzcd hydra./configuremake && make install
安装过程中如果出现如下错误:
hydra: error while loading shared libraries: libssh.so.4: cannot open shared object file: No such file or directory
1.安装locate命令
# yum install mlocate# updatedb
之后查看libssh.so.4的在系统中的位置
[root@liuyazhuang ~]# locate libssh.so.4/usr/lib/libssh.so.4/usr/lib/libssh.so.4.1.4
接着执行如下命令,即可解决问题:
[root@liuyazhuang lib64]# ln -s /usr/lib/libssh.so.4.1.4 /usr/lib64/libssh.so.4
Hydra用法实例:
[root@liuyazhuang ~]# hydra -L u.lst -P p.lst -t 1 -vV -e ns 123.242.11.186 sshHydra v7.4.2 (c)2012 by van Hauser/THC & David Maciejak - for legal purposes onlyHydra (starting at 2013-06-10 00:05:24[DATA] 1 task, 1 server, 3 login tries (l:1/p:3), ~3 tries per task[DATA] attacking service ssh on port 22[VERBOSE] Resolving addresses ... done[ATTEMPT] target 123.222.11.186 - login "lyz" - pass "lyz" - 1 of 3 [child 0][ATTEMPT] target 123.222.11.186 - login "lyz" - pass "" - 2 of 3 [child 0][ATTEMPT] target 123.222.11.186 - login "lyz" - pass "wei123hu" - 3 of 3 [child 0][22][ssh] host: 123.222.11.186 login: lyz password: wei123hu[STATUS] attack finished for 123.222.11.186 (waiting for children to complete tests)1 of 1 target successfully completed, 1 valid password foundHydra (finished at 2019-01-06 00:05:27
也可以使用 -o 选项指定结果输出文件。
# hydra -L users.txt -P password.txt -t 1 -vV -e ns -o save.log 192.168.1.104 ssh
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~