记录python ssh 密码爆破过程
我的第一篇博客
记录python ssh 密码爆破过程
1.使用python pexpect 模块
*windows 下 pexpect.spawn()函数无效,必须在linux上使用
pexpect模块ssh连接源码
import pexpect
PROMPT = [’#’, ‘>>>’, ‘>’, ‘$’]
def send_command(child, cmd):
...
原创
2019-01-11 15:14:09 ·
924 阅读 ·
0 评论