From 3664a04bbe01be8e5a6b14bdfa46c87a933e4473 Mon Sep 17 00:00:00 2001 From: NotoriousRebel Date: Sat, 9 May 2020 12:46:53 -0400 Subject: [PATCH] added clock. --- theHarvester/discovery/pentesttools.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/theHarvester/discovery/pentesttools.py b/theHarvester/discovery/pentesttools.py index 4f8266ae..f6d0d8ee 100644 --- a/theHarvester/discovery/pentesttools.py +++ b/theHarvester/discovery/pentesttools.py @@ -19,12 +19,16 @@ def __init__(self, word): async def poll(self, scan_id): start = timer() + clock = 300 while True: current_time = timer() - if current_time - start >= 300: - status = input('Pentesttools scan has reached 5 minute mark would you like to stop scan: y/n') + if current_time - start >= clock: + status = input(f'Pentesttools scan has reached {clock // 60 } minute mark would you like to stop scan: ' + f'y/n') + clock *= 2 if status == 'y': return self.total_results + time.sleep(3) # Get the status of our scan scan_status_data = {