示例#1
0
 def run(self):
     info('Starting fingerprint target...')
     try:
         req = self.Send(url=self.url, method="GET")
         s = server(self.kwarg, self.url).run()
         if s: plus('Server: %s' % (s))
         cms = detectCms(req.headers, req.content)
         for c in cms:
             if c != None and c != "":
                 plus('CMS: %s' % (c))
         framework = detectFramework(req.headers, req.content)
         for f in framework:
             if f != None and f != "":
                 plus('Framework: %s' % (f))
         lang = detectLanguage(req.content)
         for l in lang:
             if l != None and l != "":
                 plus('Language: %s' % (l))
         os = detectOs(req.headers)
         for o in os:
             if o != None and o != "":
                 plus('Operating System: %s' % o)
         waf = detectWaf(req.headers, req.content)
         for a in waf:
             if a != None and a != "":
                 plus('Web Application Firewall (WAF): %s' % a)
         checkHeaders(req.headers, req.content)
         null()
     except Exception, e:
         print e
示例#2
0
 def run(self):
     info('Starting fingerprint target...')
     try:
         # -- request --
         req = self.Send(url=self.url, method="GET")
         # -- detect server --
         __server__ = server(self.kwarg, self.url).run()
         if __server__:
             # plus('Server: %s'%(__server__),'Server')
             plus('httpserver', '%s' % (__server__))
         # -- detect cms
         __cms__ = Cms(req.headers, req.content)
         for cms in __cms__:
             if cms != (None and ""):
                 plus('cms', '%s' % (cms))
         # -- detect framework
         __framework__ = Framework(req.headers, req.content)
         for framework in __framework__:
             if framework != (None and ""):
                 plus('Framework', '%s' % (framework))
         # -- detect lang
         __lang__ = Language(req.content)
         for lang in __lang__:
             if lang != (None and ""):
                 plus('Language', '%s' % (lang))
         # -- detect os
         __os__ = Os(req.headers)
         for os in __os__:
             if os != (None and ""):
                 plus('os_info', '%s' % os)
         # -- detect waf
         __waf__ = Waf(req.headers, req.content)
         for waf in __waf__:
             if waf != (None and ""):
                 plus('waf', '%s' % waf)
         # Headers(req.headers,req.content)
     except Exception as e:
         print e
         pass
 def run(self):
     info('Starting fingerprint target...')
     try:
         # -- request --
         req = self.Send(url=self.url, method="GET")
         # -- detect server --
         __server__ = server(self.kwarg, self.url).run()
         if __server__:
             plus('Server: %s' % (__server__))
         # -- detect cms
         __cms__ = Cms(req.headers, req.content)
         for cms in __cms__:
             if cms != (None and ""):
                 plus('CMS: %s' % (cms))
         # -- detect framework
         __framework__ = Framework(req.headers, req.content)
         for framework in __framework__:
             if framework != (None and ""):
                 plus('Framework: %s' % (framework))
         # -- detect lang
         __lang__ = Language(req.content)
         for lang in __lang__:
             if lang != (None and ""):
                 plus('Language: %s' % (lang))
         # -- detect os
         __os__ = Os(req.headers)
         for os in __os__:
             if os != (None and ""):
                 plus('Operating System: %s' % os)
         # -- detect waf
         __waf__ = Waf(req.headers, req.content)
         for waf in __waf__:
             if waf != (None and ""):
                 plus('Web Application Firewall (WAF): %s' % waf)
         Headers(req.headers, req.content)
     except Exception as e:
         pass