zoukankan      html  css  js  c++  java
  • 暴力破解工具hydra

      Hydra是一个并行登录的裂解装置,它支持众多的协议来攻击。新的模块很容易的添加,旁边,它是灵活的,而且速度非常快。

      首先安装的是hydra的支持库包软件。

    yum -y install openssl-devel pcre-devel ncpfs-devel postgresql-devel libssh-devel subversion-devel libncurses-devel 

    root@localhost ~]# wget http://www.thc.org/releases/hydra-7.4.1.tar.gz
    
    
    root@localhost hydra-7.4.2]# ./configure  && make && make install
     

       但是安装完成后会报错:

    hydra 192.168.1.253 ssh -l  root -P passwrod.txt

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

     需要重新编译安装  libssh

    wget http://www.libssh.org/files/0.4/libssh-0.4.8.tar.gz
    tar zxvf libssh-0.4.8.tar.gz 
    cd libssh-0.4.8
    mkdir build
    cd build
    cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug -DWITH_SSH1=ON ..
    make
    make install

     但是任然报错:

    hydra : error : while loading shared libraries: libssh.so.4: cannot open shared object file: No such file

    分析原因:链接器ld提示找不到库文件。ld默认的目录是/lib和/usr/lib,如果放在其他路径也可以,需要让ld知道库文件所在的路径。

    1.将用户用到的库统一放到一个目录,如 /usr/loca/lib
    # cp libXXX.so.X /usr/loca/lib/           
    
    2.向库配置文件中,写入库文件所在目录
    # vim /etc/ld.so.conf.d/usr-libs.conf    
      /usr/local/lib  
    
    3.更新/etc/ld.so.cache文件
    # ldconfig  

    /etc/ld.so.conf的文件内容是include /etc/ld.so.conf.d/*.conf,所以在/etc/ld.so.conf.d目录下,加入任何以.conf为后缀的文件,都能被ld识别。

    ld.so.cache的更新是递增式的,就像PATH系统环境变量一样,不是从头重新建立,而是向上累加。只有重新开机,系统才从零开始建立ld.so.cache文件。

    然后再进入hydra目录下,重新编译安装:

    make clean
    ./configure  && make && make install 
  • 相关阅读:
    爬虫-requests-html
    pillow
    bs4-mysql-豌豆荚
    代理池-豆瓣电影
    Codeforces 1373D
    Codeforces 1365D
    AtCoder "NOMURA Programming Competition 2020" C
    Codeforces 1359D
    Codeforces 1359C
    Codeforces 1358D
  • 原文地址:https://www.cnblogs.com/taiguyiba/p/7705234.html
Copyright © 2011-2022 走看看