Exemple #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)
Exemple #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)
Exemple #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}
Exemple #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}