You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I also adjusted the time interval in the following:
def display_time(seconds, granularity=3):
result = []
seconds = seconds + 1
for name, count in intervals:
value = seconds // count
if value > 0:
seconds -= value * count
if value == 1:
name = name.rstrip('s')
result.append('{} {}'.format(value, name))
return ', '.join(result[:-1]) + ' and ' + result[-1] if len(result) > 1 else result[0]
adding the following:
def scan_domain(domain):
print(f"Scanning {domain}...")
start_time = time.time()
# Add your scanning logic here
end_time = time.time()
elapsed_time = end_time - start_time
print(f"Scan completed in {display_time(elapsed_time)}")
In summary, the scan_domain function provides a basic structure for scanning a domain but man, the actual scanning logic needs to be implemented within the function.
I hope I helped with something
The text was updated successfully, but these errors were encountered:
UTF-8 decoding error
The 'utf-8' codec cannot decode byte 0xe1 at position 12948, the continuation byte is invalid.
I corrected the following lines:
adding the following
rs_tool_output_file = open(temp_file, errors='ignore').read()
I also adjusted the time interval in the following:
def display_time(seconds, granularity=3):
result = []
seconds = seconds + 1
for name, count in intervals:
value = seconds // count
if value > 0:
seconds -= value * count
if value == 1:
name = name.rstrip('s')
result.append('{} {}'.format(value, name))
return ', '.join(result[:-1]) + ' and ' + result[-1] if len(result) > 1 else result[0]
adding the following:
def scan_domain(domain):
print(f"Scanning {domain}...")
start_time = time.time()
# Add your scanning logic here
end_time = time.time()
elapsed_time = end_time - start_time
print(f"Scan completed in {display_time(elapsed_time)}")
In summary, the scan_domain function provides a basic structure for scanning a domain but man, the actual scanning logic needs to be implemented within the function.
I hope I helped with something
The text was updated successfully, but these errors were encountered: