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

getting this error #22

Open
0xAshura opened this issue Jan 17, 2025 · 5 comments
Open

getting this error #22

0xAshura opened this issue Jan 17, 2025 · 5 comments
Assignees

Comments

@0xAshura
Copy link

traceback (most recent call last):
File "/root/fav-up/favUp.py", line 300, in
FavUpApp = FavUp(show=True)
^^^^^^^^^^^^^^^^
File "/root/fav-up/favUp.py", line 93, in init
self.run()
File "/root/fav-up/favUp.py", line 196, in run
'favhash': _fH,
^^^

@pielco11
Copy link
Owner

Hi, thanks for reaching out. Do you have more information to share? Please feel free to post an entire screenshot of your output.

Looking forward to assist you

@pielco11 pielco11 self-assigned this Jan 17, 2025
@0xAshura
Copy link
Author

Image

here is the error image

@pielco11
Copy link
Owner

pielco11 commented Feb 4, 2025

Hi, I'm unable to reproduce the error. May you double check that your are providing the right filenames including the extension of them?

Image

@aancw
Copy link
Collaborator

aancw commented Feb 4, 2025

As far as I understand, the first result tell us that the site is blocked(connection refused) and unable to get the favicon file.

The _FH is refer to this code:

        if self.web or self.webList:
            self.webList.extend(self.web)
            for w in self.webList:
                self._iterator.set_description(f"[+] iterating over domains | processing {w}")
                self._iterator.update(1)
                try:
                    headers = {
                        "User-Agent": self.get_user_agent(),
                    }
                    data = requests.get(f"https://{w}", stream=True, headers=headers, verify=False)
                    _dcL = self.deepConnectionLens(data)
                    data = self.searchFaviconHTML(f"https://{w}")
                    if not isinstance(data, str):    
                        _fH = self.faviconHash(data.content, web_source=True)
                    else:
                        _fH = "not-found"
                except requests.exceptions.ConnectionError:
                    self._iterator.write(f"[x] Connection refused by {w}.")
                    if len(self.webList) == 1:
                        exit(1)
                self.faviconsList.append({
                    "favhash": _fH,
                    "domain": f"https://{w}",
                    "maskIP": _dcL["mIP"],
                    "maskISP": _dcL["mISP"],
                    "_origin": w
                })

I think, it enter the exception block and there is no _FH.

Should add _fH = "not-found" in the exception block.

                except requests.exceptions.ConnectionError:
                    self._iterator.write(f"[x] Connection refused by {w}.")
                    if len(self.webList) == 1:
                        exit(1)

pielco11 added a commit that referenced this issue Feb 5, 2025
@pielco11
Copy link
Owner

pielco11 commented Feb 5, 2025

Yeah, good catch, thanks @aancw !

So I added a default value before the try/except

Please @0xAshura try and send us a note

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

3 participants