From d748277c022d328bf5cac0681fabdc5299ab62b4 Mon Sep 17 00:00:00 2001 From: Aiden Lee Date: Sat, 25 Jun 2022 20:42:56 +0900 Subject: [PATCH 1/2] Bug Fixed When first run as --crawl option. There was a issue FileNotFoundError: [WinError 3] /hydra_report/response_body --- hydrarecon.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hydrarecon.py b/hydrarecon.py index 59f9fde..2cc44e4 100644 --- a/hydrarecon.py +++ b/hydrarecon.py @@ -264,6 +264,7 @@ def crawl_sitemap(path, threads, domain): else: path_to_save = args.out + init_hydra_report(path_to_save) parse_js(path_to_save, args.threads) gurl_crawler(path_to_save, host) crawl_robots(path_to_save, args.threads, host) From acb6079335c50bb3e40a1f11ebc86f60740ac3ef Mon Sep 17 00:00:00 2001 From: Aiden Lee Date: Sat, 25 Jun 2022 21:00:43 +0900 Subject: [PATCH 2/2] Bug Fixed When first run as --session option. There was a issue FileNotFoundError: [WinError 3] /hydra_report/response_body --- hydrarecon.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hydrarecon.py b/hydrarecon.py index 2cc44e4..12a2eec 100644 --- a/hydrarecon.py +++ b/hydrarecon.py @@ -155,6 +155,7 @@ def probe(domain, threads, path, timeout): def take_screenshot(path): + print(Fore.BLUE + f'[#] {Fore.GREEN}Take Screenshot for subdomains') time.sleep(1) screenshot.screenshot(path) @@ -241,8 +242,11 @@ def crawl_sitemap(path, threads, domain): path_to_save = HOME_PATH else: path_to_save = os.path.abspath(args.out) - take_screenshot(path_to_save) - report_generator.render(path_to_save) + if os.path.isdir(f'{HOME_PATH}/hydra_report'): + take_screenshot(path_to_save) + report_generator.render(path_to_save) + else: + print(Fore.RED + '[!] Please Do --basic Method') elif args.basic and not args.crawl: if args.out is None: