From 6de7423357dd91aa7ab2e0338adaae9ee68fd321 Mon Sep 17 00:00:00 2001 From: devplayer55221 Date: Tue, 8 Oct 2024 08:55:42 +0530 Subject: [PATCH] Modified the CloudFlare.CloudFlare to include email parameter --- mantis/modules/dns/Cloudflare.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mantis/modules/dns/Cloudflare.py b/mantis/modules/dns/Cloudflare.py index 2bcd2a7..5f9c80a 100644 --- a/mantis/modules/dns/Cloudflare.py +++ b/mantis/modules/dns/Cloudflare.py @@ -32,7 +32,7 @@ async def main(self): Prerequisite for this script - A CLoudflare DNS Zone Read only API key \n """ - token = None + token = None #Edit the value with actual token per_page = 100 output_dict_list = [] results = {} @@ -41,13 +41,13 @@ async def main(self): try: try: logging.info("[+] Using Cloudflare token - {}".format(token)) - cf = CloudFlare.CloudFlare(token, raw=True) + cf = CloudFlare.CloudFlare("", token, raw=True) zones = cf.zones.get(params={'per_page': per_page, 'page': 0}) results["success"] += 1 except Exception as e: results["failure"] += 1 results["exception"] = str(e) - logging.error("[!] Error in accessing Cloudflare token - {}".format(token)) + logging.error("[!] Error - {}".format(str(e))) for zone_page in range(zones['result_info']['total_pages']): zones = cf.zones.get(params={'per_page': per_page, 'page': zone_page})