mirror of
https://github.com/laramies/theHarvester.git
synced 2025-02-25 23:13:24 +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):
|
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 = {
|
||||||
|
|
Loading…
Reference in a new issue