added clock.

This commit is contained in:
NotoriousRebel 2020-05-09 12:46:53 -04:00
parent f7fc6119ef
commit 3664a04bbe

View file

@ -19,12 +19,16 @@ def __init__(self, word):
async def poll(self, scan_id): async def poll(self, scan_id):
start = timer() start = timer()
clock = 300
while True: while True:
current_time = timer() current_time = timer()
if current_time - start >= 300: if current_time - start >= clock:
status = input('Pentesttools scan has reached 5 minute mark would you like to stop scan: y/n') 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': if status == 'y':
return self.total_results return self.total_results
time.sleep(3) time.sleep(3)
# Get the status of our scan # Get the status of our scan
scan_status_data = { scan_status_data = {