コード例 #1
0
ファイル: baseframe.py プロジェクト: 2625668714/PocHunter
 def normalize_target(cls, target):
     if cls.poc_info['protocol']['name'] == 'http':
         return http.normalize_url(target)
     elif cls.poc_info['protocol']['name'] == 'https':
         return http.normalize_url(target, https=True)
     else:
         return target
コード例 #2
0
 def normalize_target(cls, target):
     if cls.poc_info['protocol']['name'] == 'http':
         return http.normalize_url(target)
     elif cls.poc_info['protocol']['name'] == 'https':
         return http.normalize_url(target, https=True)
     else:
         return target
コード例 #3
0
 def __normalize_target(self, target):
     if self.poc_info['protocol']['name'] == 'http':
         return http.normalize_url(target)
     elif self.poc_info['protocol']['name'] == 'https':
         return http.normalize_url(target, https=True)
     else:
         return target
コード例 #4
0
ファイル: baseframe.py プロジェクト: zuoshouxu/BB2
 def __normalize_target(self, target):
     if self.poc_info['protocol']['name'] == 'http':
         return http.normalize_url(target)
     elif self.poc_info['protocol']['name'] == 'https':
         return http.normalize_url(target, https=True)
     else:
         return target