Skip to content

Commit

Permalink
Update favfreak.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rix4uni authored Jun 1, 2024
1 parent 4fe3996 commit f4ef2cf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions favfreak.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
import requests
import hashlib
import base64
import urllib3

urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

# Define the version
__version__ = "v0.0.1" # Current Version of Favfreak
Expand Down Expand Up @@ -86,7 +89,7 @@ def main():
favicon_urls.append(favicon_url) # Collect favicon URLs

# Calculate and print the hash of the favicon content
hash_value = hashlib.md5(requests.get(favicon_url, timeout=5).content).hexdigest()
hash_value = hashlib.md5(requests.get(favicon_url, verify=False, timeout=5).content).hexdigest()
unique_hashes.add(hash_value) # Add hash to the set of unique hashes
else:
print("\u001b[31m[ERR]\u001b[0m Not Fetched '%s'" % original_url)
Expand Down Expand Up @@ -1893,4 +1896,4 @@ def main():
print(f"~ \u001b[36m[{len(a[i])}] : \u001b[35m[{i}]\u001b[0m ")

except KeyboardInterrupt:
print("\n\u001b[31m[EXIT]KeyBoard Interrucpt Encountered \u001b[0m")
print("\n\u001b[31m[EXIT]KeyBoard Interrucpt Encountered \u001b[0m")

0 comments on commit f4ef2cf

Please sign in to comment.