Skip to content

Commit

Permalink
Modified the CloudFlare.CloudFlare to include email parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
devplayer55221 committed Oct 8, 2024
1 parent 6352016 commit 6de7423
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mantis/modules/dns/Cloudflare.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand All @@ -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})
Expand Down

0 comments on commit 6de7423

Please sign in to comment.