def osueta_valid_usernames(self, cmd_output):
     r = SmartModuleResult()
     m = re.findall('\[\+\] User: (\S+) exists', cmd_output)
     if m:
         for username in m:
             r.add_username(username)
     return r
 def smtpuserenum_valid_users(self, cmd_output):
     r = SmartModuleResult()
     m = re.findall(': (\S+) exists', cmd_output)
     if m:
         for username in m:
             r.add_username(username)
     return r
Пример #3
0
 def msf_tomcat_enum_usernames(self, cmd_output):
     r = SmartModuleResult()
     m = re.findall('Apache Tomcat (.*) found', cmd_output)
     if m:
         for username in m:
             r.add_username(username, auth_type='tomcat')
     return r
Пример #4
0
 def wpscan_valid_usernames(self, cmd_output):
     r = SmartModuleResult()
     try:
         m = re.findall(
             '\|\s+[0-9]+\s+\|\s+(\S+)\s+\|.*\|',
             cmd_output[cmd_output.index('Enumerating usernames'):])
         if m:
             for username in m:
                 r.add_username(username)
     except:
         pass
     return r
Пример #5
0
 def wpseku_valid_usernames(self, cmd_output):
     r = SmartModuleResult()
     try:
         m = re.findall('\|\s+[0-9]+\s+\|.*\|\s+(\S+)\s+\|',
                        cmd_output[cmd_output.index('Enumerating userds'):])
         if m:
             if 'None' in m:
                 m.remove('None')
             for username in m:
                 r.add_username(username, auth_type='wordpress')
     except:
         pass
     return r