搜索网站icon的hash值


一、安装python相关库

https://www.shodan.io/     国外平台需要登录才能使用

    比  https://www.zoomeye.org/ 钟馗之眼 最早的     https://fofa.so/ 白客打造       还早

可以搜索icon图标
语法:http.favicon.hash:-1507567067  (shodan网站语法)
问题:如何计算icon的 hash值
atp-get install python-dev
pip install mmh3
pip install requests
二、编写python脚本
vim icon_hash.py


#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: superbean
# @Date: 2021-01-06 16:25:38
# @Last Modified by: subin
# @Last Modified time: 2021-01-06 16:30:08

import mmh3
import requests

response = requests.get('https://目标网址/favicon.ico')
favicon = response.content.encode('base64')
hash = mmh3.hash(favicon)
print hash

用于计算icon的hash值

踩坑日记:在之前安装memcached时python未进行指定版本执行pip的安装脚本,导致pip绑定python3.
python2.7 get-pip.py
实验日志1:kali上无法安装mmh3库,真是操了
实验日志2:已解决无法安装mmh3库的原因---->升级tools
      升级setuptools, 再安装即可。
      error: invalid command 'egg_info' 解决办法
      pip install --upgrade setuptools.
      运行执行脚本执行正常

 

-------------------------------------转载文章--error: invalid command 'egg_info' 解决办法--------------------------------------------

【已解决】安装pyleus遇到的'bdist_wheel'错误

墨羯 2015-09-22 14:21:53 26870 收藏
文章标签: python 安装
版权
今天用pip命令安装pyleus时遇到以下错误
Failed building wheel for PyYAML
Running setup.py bdist_wheel for msgpack-python
Complete output from command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build-685OEx/msgpack-python/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpUJDHTSpip-wheel-:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help

error: invalid command 'bdist_wheel'

查了下bdist_wheel,发现似乎是pip的一个子命令,wheel本质上是一种zip包,用于py模块的安装,它的出现是为了替代Eggs。

尝试运行pip wheel,果然有告错

ERROR: 'pip wheel' requires setuptools >= 0.8 for dist-info support. To fix this, run: pip install --upgrade setuptools

于是根据它的建议,升级pip的安装工具setuptools ,命令是
sudo pip install --upgrade setuptools
再试,出现如下信息
[linyc@localhost etc]$ pip wheel
You are using pip version 7.1.0, however version 7.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
You must give at least one requirement to wheel (see "pip help wheel")


我不确定pip本身升级是不是必要,读者可以试一试不升级而直接安装pyleus

升级pip完毕,尝试pip安装pyleus,啊,提示已存在。那么先uninstall,再安装
一阵等待……后,ok搞定
————————————————
版权声明:本文为CSDN博主「墨羯」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/jishan7/article/details/48653659

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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM