fix conflict

This commit is contained in:
L1ghtn1ng
2021-01-07 16:31:36 +00:00
4 changed files with 7 additions and 9 deletions
+4 -4
View File
@@ -1,6 +1,6 @@
apikeys:
bing:
key:
key:
censys:
id:
@@ -10,7 +10,7 @@ apikeys:
key:
hunter:
key:
key:
intelx:
key:
@@ -22,10 +22,10 @@ apikeys:
key:
securityTrails:
key:
key:
shodan:
key:
spyse:
key:
key:
+2 -4
View File
@@ -1,5 +1,3 @@
from pprint import pprint
from theHarvester.discovery.constants import *
from theHarvester.lib.core import *
import censys.certificates
@@ -20,11 +18,11 @@ class SearchCensys:
cert = censys.certificates.CensysCertificates(api_id=self.key[0], api_secret=self.key[1])
query = f'parsed.names: {self.word}'
try:
response = cert.search(query=query, fields=['parsed.names'])
response = cert.search(query=query, fields=['parsed.names'], page=1)
except censys.base.CensysRateLimitExceededException:
print('Censys rate limit exceeded')
for hosts in response:
pprint(set(hosts['parsed.names']))
self.totalhosts.update(hosts['parsed.names'])
async def get_hostnames(self) -> set:
@@ -17,7 +17,6 @@ class SearchDiscovery:
response = await AsyncFetcher.fetch_all([url], json=True, headers={'User-Agent': Core.get_user_agent(),
'Authorization': self.key},
proxy=self.proxy)
print(response)
self.total_results = [f'{domains}.{self.word}' for domains in response[0]['subdomains']]
async def get_hostnames(self) -> set:
+1
View File
@@ -1,4 +1,5 @@
# coding=utf-8
from typing import Set, Union, Any, Tuple, List
import yaml
import asyncio