jboss.py 文件源码

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

项目:python_pen 作者: RASSec 项目源码 文件源码
def check(i,total):
    global eu
    #os.system("title Spider,Current threads: %d,URLs left: %d,URLs exists:%d" %(threading.active_count(),total,eu)) 
    try:
        #payload = {'username': 'admin', 'passwd': '123456'}
        r=requests.get(i+'/invoker/JMXInvokerServlet',timeout=5)
        status=r.status_code
        c=r.content.count('jboss')
        r_l=len(r.text)
    except:
        print i,'Timeout'
        status = 0
    if  status == 200 and c !=0:
        r = 0
        print i,'Exists!!!!!'
        eu+=1
        f = open("good_jboss.txt", 'a')
        f.write(i+'\n')
        f.close()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号