jboss.py 文件源码

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

项目:python_pen 作者: RASSec 项目源码 文件源码
def main():
    global eu
    eu = 0
    total=len(open('8080.txt','rU').readlines())
    print 'Total URLs:%d' %total
    for i in open("8080.txt").readlines():
        i=i.strip('\n')
        t=threading.Thread(target=check, args=(i,total))
        t.setDaemon(True)
        total-=1
        while True:
            if(threading.active_count() == 1 and total == 0 ):
                print 'All Done at %s' %time.strftime("%Y-%m-%d[%H.%M.%S]")
                break
            elif (threading.active_count() < 200):
                if (total == 0):
                    time.sleep(10)
                else:
                    os.system("title Spider,Current threads: %d,URLs left: %d,URLs exists:%d" %(threading.active_count(),total,eu))
                    t.start()
                    break
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号