mirror of
https://github.com/laramies/theHarvester.git
synced 2025-02-25 15:03:01 +08:00
added clock.
This commit is contained in:
parent
f7fc6119ef
commit
3664a04bbe
1 changed files with 6 additions and 2 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue