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

Feature idea, grab favicon #532

Open
digininja opened this issue Jun 9, 2021 · 7 comments
Open

Feature idea, grab favicon #532

digininja opened this issue Jun 9, 2021 · 7 comments
Assignees

Comments

@digininja
Copy link
Contributor

It would be a bit of extra work, but grabbing the favicon and including it with the report might be quite useful when the screenshot itself is rubbish because the page hasn't fully rendered by the time the shot is taken.

@digininja
Copy link
Contributor Author

Just got a perfect example, VMware ESXi rarely gives a screenshot but I recognise the favicon once the page starts loading.

@mattgrandy
Copy link
Contributor

That's a good idea, I think we can add that in when we get some time to work on this.

@mattgrandy mattgrandy self-assigned this Jun 9, 2021
@TheProdigyLeague
Copy link

@mattgrandy you're issue is still open, sir.

@Relkci
Copy link
Collaborator

Relkci commented May 26, 2024

Is there use in saving the favicon image to the folder, or just as bytes in the database + image src bytes in HTML? typically favicons are quite small in size

@digininja
Copy link
Contributor Author

digininja commented May 26, 2024 via email

@Relkci
Copy link
Collaborator

Relkci commented Jun 14, 2024

Brainstorming this:

Selenium doesn't have a method for this, so thats out.

Logic would look like inspecting the resulting page-source for the favicon link.
If it didn't exist, we'd check if the fallback url exists (http 200)

If either exist, we'd save the file (probably as base64) to the http_object object and just base64 image-inline it in the report later on.

If we later on want to use the favicon for categorization, we can hash the base64 and create a method for checking for known hashes.

@digininja
Copy link
Contributor Author

digininja commented Jun 17, 2024 via email

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

No branches or pull requests

5 participants