Пример #1
0
 def patator_valid_creds(self, cmd_output):
     r = SmartModuleResult()
     m = re.findall('[0-9]+ \| (\S+):(\S*)\s+\|', cmd_output)
     if m:
         for username, password in m:
             r.add_credentials(username, password)
     return r
 def msdat_valid_creds(self, cmd_output):
     r = SmartModuleResult()
     m = re.findall('Valid credential: \'(\S+)\'/\'(\S+)\'', cmd_output)
     if m:
         for username, password in m:
             r.add_credentials(username, password)
     return r
 def ajpy_valid_creds(self, cmd_output):
     r = SmartModuleResult()
     m = re.findall('Found valid credz: (\S+):(\S*)', cmd_output)
     if m:
         for username, password in m:
             r.add_credentials(username, password)
     return r
Пример #4
0
 def jmxbf_valid_creds(self, cmd_output):
     r = SmartModuleResult()
     m = re.findall('We got a valid connection for: (\S+):(\S*)', cmd_output)
     if m:
         for username, password in m:
             r.add_credentials(username, password)
     return r
Пример #5
0
 def domiowned_valid_creds(self, cmd_output):
     r = SmartModuleResult()
     m = re.findall('^(\S+)\s+(\S+)\s+(Admin|User)\s*$',
                    cmd_output,
                    flags=re.MULTILINE)
     if m:
         for username, password in m:
             r.add_credentials(username, password, auth_type='lotusdomino')
     return r
Пример #6
0
    def changeme_valid_creds(self, cmd_output):
        MAPPING_CHANGEME = {
            'Apache Tomcat': 'tomcat',
            'Apache Tomcat Host Manager': 'tomcat',
            'Oracle Glassfish': 'glassfish',
            'JBoss AS 6': 'jboss',
            'JBoss AS 6 Alt': 'jboss',
        }
        r = SmartModuleResult()
        m = re.findall('[+] Found (.*) default cred (.*):(.*)', cmd_output)
        if m:
            for name, username, password in m:
                if name in MAPPING_CHANGEME.keys():
                    name = MAPPING_CHANGEME[name]
                name = name.replace(' ', '-').lower()

                if name in self.auth_types:
                    r.add_credentials(username, password, auth_type=name)
        return r