声明:##############仅限学习交流和防范漏洞,切勿随意攻击###############
import requests import re vulurl = "/weaver/bsh.servlet.BshServlet" print "===== The ulnerable systems are as follows =====" url = open('url.txt','r') for lowb in url: lowb = str(lowb.strip()) try: b = str(re.findall("http://.*:\d+",lowb)[0]) b = b + vulurl s = requests.get(b) if s.status_code == 200: print b except: pass try: c = str(re.findall("http://.*.com",lowb)[0]) c = c + vulurl s = requests.get(c) if s.status_code == 200: print c except: pass try: d = str(re.findall("http://.*.cn",lowb)[0]) d = d + vulurl s = requests.get(d) if s.status_code == 200: print d except: pass url.close()免责声明:本站某些文章、信息、图片、软件等来源于互联网,由本网整理发表,希望传递更多信息和学习之目的,并不意味赞同起观点或证实其内容的真实性以及非法用途。 如设计、版权等问题,请立即联系管理员,我们会给予更改或删除相关文章,保证您的权利。
评论