Merge branch 'dev' into master

This commit is contained in:
Matt 2020-02-13 17:57:05 -05:00 committed by GitHub
commit 9c7c1153b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,11 +16,10 @@ async def do_search(self):
dct = responses
self.totalhosts: set = {
host.split(',')[0].replace('www.', '') if ',' in host and self.word.replace('www.', '') in host.split(',')[
0] in host else
host.split(',')[0].replace('www','') if ',' in host and self.word.replace('www.', '') in host.split(',')[0] in host else
host.split(',')[1] for host in dct['FDNS_A']}
self.totalips: set = {ip.split(',')[0] for ip in dct['FDNS_A'] if
self.totalips: set = {ip.split(',')[0]for ip in dct['FDNS_A'] if
re.match(r"^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$", ip.split(',')[0])}
async def get_hostnames(self) -> set: