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

Error checking for phishing #81

Open
TheTrailGeek opened this issue Apr 24, 2023 · 2 comments
Open

Error checking for phishing #81

TheTrailGeek opened this issue Apr 24, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@TheTrailGeek
Copy link

Getting the following error when running this command:

sudo python3 opensquat.py -c 0 --phishing phishing_domains.txt --dns --ct --subdomains --portcheck

Traceback (most recent call last):
File "opensquat.py", line 65, in
file_content = app.Domain().main(
File "/opensquat/app.py", line 637, in main
return self.worker()
File "/opensquat/app.py", line 365, in worker
self._process_doppelgagner_only(
File "/opensquat/app.py", line 445, in _process_doppelgagner_only
if not ct.CRTSH.check_certificate(domains):
File "/opensquat/ct.py", line 49, in check_certificate
for table in soup.find_all("table")[1]:

@atenreiro atenreiro added the bug Something isn't working label May 1, 2023
@atenreiro
Copy link
Owner

Hey! Thanks for reporting this - will take a look.

@prathamxx
Copy link

prathamxx commented Sep 30, 2023

According to the error message you provided, there may be a problem with how the "opensquat.py" script is being run. It appears to be running into a problem specifically with web scraping or processing HTML text from a web page. Change in opensquat.py file with following code to get perfect output.

try:
for table in soup.find_all("table")[1]:
...
except Exception as e:
print(f"Error while parsing HTML: {e}")

or you can also use the following command to solve the issue:
python opensquat.py -c 0 --phishing phishing_domains.txt --dns --ct --subdomains --portcheck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants