'Regex the potential_vuln string against a regex with all
the vulnerabilities given by WPscan. Returns a regex match object with
the vulnerability\'s name and severity if the regex found something
and (None, None) if the regex found nothing.'

def __get_name_and_severity(self, potential_vuln):

    critical_search = re.search('Website    is    not    fully    configured|Debug    log    file    found|wp-config\\.php    backup    file    has    been    found|searchreplacedb2.php    has    been    found', potential_vuln)
    if critical_search:
        return (critical_search.group(0), 'critical')
    info_search = re.search("Directory    listing    is    enabled|An    error_log    file    has    been    found|file    exists    exposing    a    version    number|Full    Path    Disclosure|Registration    is    enabled|(Upload|Includes)    directory    has    directory    listing    enabled|Default    first    Wordpress    username    'admin'    is    still    used", potential_vuln)
    if info_search:
        return (info_search.group(0), 'info')
    return (None, None)
