Skip to content

Instantly share code, notes, and snippets.

@yehgdotnet
Last active September 24, 2025 04:18
Show Gist options
  • Save yehgdotnet/b9dfc618108d2f05845c4d8e28c5fc6a to your computer and use it in GitHub Desktop.
Save yehgdotnet/b9dfc618108d2f05845c4d8e28c5fc6a to your computer and use it in GitHub Desktop.

Revisions

  1. yehgdotnet revised this gist Apr 21, 2020. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions get-shodan-favicon-hash.py
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@
    import mmh3
    import requests

    response = requests.get('https://yehg.net/favicon.ico')
    response = requests.get('https://cybersecurity.wtf/favicon.ico')
    favicon = response.content.encode('base64')
    hash = mmh3.hash(favicon)
    print hash
    @@ -19,7 +19,7 @@
    import requests
    import codecs

    response = requests.get('https://yehg.net/favicon.ico')
    response = requests.get('https://cybersecurity.wtf/favicon.ico')
    favicon = codecs.encode(response.content,"base64")
    hash = mmh3.hash(favicon)
    print(hash)
  2. yehgdotnet renamed this gist Apr 21, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. yehgdotnet revised this gist Apr 21, 2020. 2 changed files with 25 additions and 11 deletions.
    11 changes: 0 additions & 11 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,11 +0,0 @@
    # https://twitter.com/brsn76945860/status/1171233054951501824

    pip install mmh3

    import mmh3
    import requests

    response = requests.get('https://yehg.net/favicon.ico')
    favicon = response.content.encode('base64')
    hash = mmh3.hash(favicon)
    print hash
    25 changes: 25 additions & 0 deletions shodanhash.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    # https://twitter.com/brsn76945860/status/1171233054951501824
    pip install mmh3

    -----------------------------
    # python 2
    import mmh3
    import requests

    response = requests.get('https://yehg.net/favicon.ico')
    favicon = response.content.encode('base64')
    hash = mmh3.hash(favicon)
    print hash

    -----------------------------

    # python 3

    import mmh3
    import requests
    import codecs

    response = requests.get('https://yehg.net/favicon.ico')
    favicon = codecs.encode(response.content,"base64")
    hash = mmh3.hash(favicon)
    print(hash)
  4. yehgdotnet created this gist Apr 21, 2020.
    11 changes: 11 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    # https://twitter.com/brsn76945860/status/1171233054951501824

    pip install mmh3

    import mmh3
    import requests

    response = requests.get('https://yehg.net/favicon.ico')
    favicon = response.content.encode('base64')
    hash = mmh3.hash(favicon)
    print hash