mirror of
https://github.com/laramies/theHarvester.git
synced 2026-09-28 20:44:53 +02:00
fix conflict
This commit is contained in:
+4
-4
@@ -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:
|
||||
|
||||
@@ -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,4 +1,5 @@
|
||||
# coding=utf-8
|
||||
|
||||
from typing import Set, Union, Any, Tuple, List
|
||||
import yaml
|
||||
import asyncio
|
||||
|
||||
Reference in New Issue
Block a user