mirror of
https://github.com/laramies/theHarvester.git
synced 2024-09-20 07:16:31 +08:00
Update crtsh to add params to exclude expired certs and de-duplicate
This commit is contained in:
parent
bc5844b3c3
commit
c047c7da8a
|
@ -10,7 +10,7 @@ def __init__(self, word) -> None:
|
|||
async def do_search(self) -> list:
|
||||
data: set = set()
|
||||
try:
|
||||
url = f'https://crt.sh/?q=%25.{self.word}&output=json'
|
||||
url = f'https://crt.sh/?q=%25.{self.word}&exclude=expired&deduplicate=Y&output=json'
|
||||
response = await AsyncFetcher.fetch_all([url], json=True, proxy=self.proxy)
|
||||
response = response[0]
|
||||
data = set([dct['name_value'][2:] if '*.' == dct['name_value'][:2] else dct['name_value'] for dct in response])
|
||||
|
|
Loading…
Reference in a new issue