fix conflict

This commit is contained in:
L1ghtn1ng 2021-01-07 16:31:36 +00:00
commit d5e82252df
4 changed files with 7 additions and 9 deletions

View file

@ -1,6 +1,6 @@
apikeys: apikeys:
bing: bing:
key: key:
censys: censys:
id: id:
@ -10,7 +10,7 @@ apikeys:
key: key:
hunter: hunter:
key: key:
intelx: intelx:
key: key:
@ -22,10 +22,10 @@ apikeys:
key: key:
securityTrails: securityTrails:
key: key:
shodan: shodan:
key: key:
spyse: spyse:
key: key:

View file

@ -1,5 +1,3 @@
from pprint import pprint
from theHarvester.discovery.constants import * from theHarvester.discovery.constants import *
from theHarvester.lib.core import * from theHarvester.lib.core import *
import censys.certificates import censys.certificates
@ -20,11 +18,11 @@ async def do_search(self):
cert = censys.certificates.CensysCertificates(api_id=self.key[0], api_secret=self.key[1]) cert = censys.certificates.CensysCertificates(api_id=self.key[0], api_secret=self.key[1])
query = f'parsed.names: {self.word}' query = f'parsed.names: {self.word}'
try: try:
response = cert.search(query=query, fields=['parsed.names']) response = cert.search(query=query, fields=['parsed.names'], page=1)
except censys.base.CensysRateLimitExceededException: except censys.base.CensysRateLimitExceededException:
print('Censys rate limit exceeded') print('Censys rate limit exceeded')
for hosts in response: for hosts in response:
pprint(set(hosts['parsed.names']))
self.totalhosts.update(hosts['parsed.names']) self.totalhosts.update(hosts['parsed.names'])
async def get_hostnames(self) -> set: async def get_hostnames(self) -> set:

View file

@ -17,7 +17,6 @@ async def do_search(self):
response = await AsyncFetcher.fetch_all([url], json=True, headers={'User-Agent': Core.get_user_agent(), response = await AsyncFetcher.fetch_all([url], json=True, headers={'User-Agent': Core.get_user_agent(),
'Authorization': self.key}, 'Authorization': self.key},
proxy=self.proxy) proxy=self.proxy)
print(response)
self.total_results = [f'{domains}.{self.word}' for domains in response[0]['subdomains']] self.total_results = [f'{domains}.{self.word}' for domains in response[0]['subdomains']]
async def get_hostnames(self) -> set: async def get_hostnames(self) -> set:

View file

@ -1,4 +1,5 @@
# coding=utf-8 # coding=utf-8
from typing import Set, Union, Any, Tuple, List from typing import Set, Union, Any, Tuple, List
import yaml import yaml
import asyncio import asyncio