Skip to content

Instantly share code, notes, and snippets.

@mukesh-610
mukesh-610 / favicon_mapper.py
Created September 9, 2024 09:01
Grabs the favicon of a target site and searches it against a database of known favicons to fingerprint your target web application.
import hashlib
import requests
import yaml
import argparse
YAML_FILE = 'favicons-database.yml'
def fetch_favicon(url):
try:
response = requests.get(f'{url}/favicon.ico', timeout=10, verify=False)