MurMurHash is a tool used to calculate a MurmurHash value of a favicon to hunt phishing websites on the Shodan platform.
![](https://1.bp.blogspot.com/--c7sKeneWG8/YLhyGxYBGQI/AAAAAAAAJSU/Ilmumy_v4sEXV_pmS5KVKBb50syvzKxUgCLcBGAsYHQ/s2048/1.png)
What Is MurMurHash?
MurmurHash is a non-cryptographic hash function suitable for general hash-based lookup. The name comes from two basic operations, multiply (MU) and rotate (R), used in its inner loop. The current version is MurmurHash3 which yields a 32-bit or 128-bit hash value. When using 128-bits, the x86 and x64 versions do not produce the same values, as the algorithms are optimized for their respective platforms. MurmurHash3 was released alongside SMHasher—a hash function test suite.
How To Install?
git clone https://github.com/Viralmaniar/MurMurHash.git
cd MurMurHash
pip install -r requirements.txt
python MurMurHash.py
Hunting Phish Events For Paypal & Tesla
After reading about hunting of phishing websites using favicon hashes I thought to generalise it to accept Favicon URLs for quick analysis on the Shodan.
Looking for a favicon icon file on the orginal website of Paypal:
![](https://1.bp.blogspot.com/-mIlPOzske6k/YLhy_DvHhbI/AAAAAAAAJSc/X9MWaOQUx9Uvs52qf4_UVJl6f6ZLp51WQCLcBGAsYHQ/s2048/2.png)
Using MurMurHash.py
file generating hash of the icon:
![](https://1.bp.blogspot.com/-nvoDMuzkvTg/YLhzRR6LXvI/AAAAAAAAJSk/PJpP9XPd6CAjBXfLMetRkbmAzSQP9p-DgCLcBGAsYHQ/s717/3.png)
Searching on Shodan for Paypal phishing domains/IPs:
https://www.shodan.io/search?query=http.favicon.hash%3A309020573
![](https://1.bp.blogspot.com/-LXM39PtT4Xs/YLhzprvpEYI/AAAAAAAAJSs/PhtlqBrWOd4GUaxBbN6H0_WuHIecepwzACLcBGAsYHQ/s2048/4.png)
![](https://1.bp.blogspot.com/-vAhdV2FUOjo/YLh0L0dgCXI/AAAAAAAAJS4/NPrZSrZoqNEVI5N-X5Z4GJ1OlcDLb1afACLcBGAsYHQ/s1979/5.png)
![](https://1.bp.blogspot.com/-TRf4L4_c-TE/YLh0ebubo5I/AAAAAAAAJTE/Bxlfk4EyKU0mUhpa828BDdVJ7hsmW9suwCLcBGAsYHQ/s2048/6.png)
Now, let’s search for Tesla icon on the original site:
![](https://1.bp.blogspot.com/-8jYTS03akmc/YLh06fqRDSI/AAAAAAAAJTM/osvj-eyAlaoaE9mUz8PvW6WzD9jqrDBiACLcBGAsYHQ/s1053/7.png)
Searching on Shodan for Tesla phishing domains/IPs:
![](https://1.bp.blogspot.com/-GBWX62oGkwU/YLh1OADpRcI/AAAAAAAAJTU/h483YyOTing3kxHOLRAg0EA0tpgpMbLzwCLcBGAsYHQ/s1527/8.png)
![](https://1.bp.blogspot.com/-xtHiJRzo0QU/YLh1hm0cmOI/AAAAAAAAJTc/1-23LKrgzJEjv-Gvj0cw45UMOELg3lfjACLcBGAsYHQ/s2048/9.png)
Validating Shodan results:
![](https://1.bp.blogspot.com/-UAxeYcIF2xg/YLh1ypO3j-I/AAAAAAAAJTk/pP36w7BbkdsBi8RJ7gw1E0aZNlqSr8HSwCLcBGAsYHQ/s2048/10.png)