Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UTF-8 decoding error #57

Open
geovanidps opened this issue Sep 26, 2024 · 0 comments
Open

UTF-8 decoding error #57

geovanidps opened this issue Sep 26, 2024 · 0 comments

Comments

@geovanidps
Copy link

image

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:

image

adding the following

rs_tool_output_file = open(temp_file, errors='ignore').read()

I also adjusted the time interval in the following:
image

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:

image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant