Cleaned script
This commit is contained in:
parent
b9fbafc392
commit
6433bbdd1f
1 changed files with 23 additions and 28 deletions
|
@ -31,8 +31,6 @@ subdomains_list_stmt = "SELECT DISTINCT(urls.dns_name) AS domain_names "\
|
|||
"WHERE (hosts_urls.http = 'Y' and hosts.hostname = %(webserver)s and "\
|
||||
"urls.dns_name LIKE %(domain)s)"
|
||||
|
||||
|
||||
|
||||
default_conf_file="./etc/ot_certs.ini"
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
logger = logging.getLogger()
|
||||
|
@ -102,11 +100,8 @@ def get_subdomain_list(config, domain, ot_conn, ex_subdomains=tuple()):
|
|||
subdomains_res = ot_cursor.fetchall()
|
||||
ot_cursor.close()
|
||||
|
||||
#if filtered:
|
||||
subdomains_filtered = [s[0].decode('utf-8') for s in subdomains_res
|
||||
if not(s[0].decode('utf-8').startswith(ex_subdomains))]
|
||||
# else:
|
||||
# subdomains_filtered = [s[0].decode('utf-8') for s in subdomains_res]
|
||||
|
||||
return subdomains_filtered
|
||||
|
||||
|
|
Loading…
Reference in a new issue