Ejemplo n.º 1
0
 def execute_run(self, ip, port, bdomain, taskid):
     if bdomain == DOMAIN_TYPE[0]:
         webscan = WebScan(make_url(ip, port), webdomain=True, proxy=False)
     elif bdomain == DOMAIN_TYPE[1]:
         webscan = WebScan(make_url(ip, port), webdomain=False, proxy = False)
     self.threadpool.add_job(webscan.run)
     self.async_deal_into_db(bdomain, taskid)
Ejemplo n.º 2
0
 def execute_run(self, ip, port, bdomain, taskid):
     if bdomain == DOMAIN_TYPE[0]:
         webscan = WebScan(make_url(ip, port), webdomain=True, proxy=False)
     elif bdomain == DOMAIN_TYPE[1]:
         webscan = WebScan(make_url(ip, port), webdomain=False, proxy=False)
     self.threadpool.add_job(webscan.run)
     self.async_deal_into_db(bdomain, taskid)
Ejemplo n.º 3
0
 def __test_iisput(self, *args, **kwargs):
     '''
     验证是否存在iis PUT 漏洞
     :param url:
     :return:
     '''
     (ip, port) = args
     url = make_url(ip, port)
     txt_url = urlparse.urljoin(url, '1.txt')
     try:
         req = requests.put('%s' % txt_url, data = "test!", timeout=2)
         if req.status_code == 201:  #201 created
             return {'url':url, 'status': True}
         else:
             return {'url':url, 'status': False}
     except:
         return {'url':url, 'status': False}
Ejemplo n.º 4
0
 def __test_iisput(self, *args, **kwargs):
     '''
     验证是否存在iis PUT 漏洞
     :param url:
     :return:
     '''
     (ip, port) = args
     url = make_url(ip, port)
     txt_url = urlparse.urljoin(url, '1.txt')
     try:
         req = requests.put('%s' % txt_url, data="test!", timeout=2)
         if req.status_code == 201:  #201 created
             return {'url': url, 'status': True}
         else:
             return {'url': url, 'status': False}
     except:
         return {'url': url, 'status': False}