经过指纹库不断累计,当前指纹库共有34317条正则,涵盖了网站搭建的完整环境,各种类型的指纹,不限于cms
目前只支持python脚本语言的接口,因为为了节省宽带资源用到了json和zlib压缩,其他语言请自行研究
您的脚本必须依赖python requests
如果未安装可以pip install requests
为了最小化传递response,使用了zlib进行压缩
接口会不断优化,随时有可能更新或者更改,请关注本页面
以下代码在python2和python3均测试通过,原理是您只需要向服务端传入url,html,headers即可获取结果
#! /usr/bin/env python #coding=utf-8 #whatweb cms指纹识别api示例 #http://whatweb.bugscaner.com/ #进行json压缩传输,经测试,压缩后可节省将近5-10倍的宽带 try: import requests except: print(u"返回桌面,Shift+鼠标右键,在此处打开命令窗口(W),输入:pip install requests") import zlib import json def whatweb(url): response = requests.get(url,verify=False) #上面的代码可以随意发挥,只要获取到response即可 #下面的代码您无需改变,直接使用即可 whatweb_dict = {"url":response.url,"text":response.text,"headers":dict(response.headers)} whatweb_dict = json.dumps(whatweb_dict) whatweb_dict = whatweb_dict.encode() whatweb_dict = zlib.compress(whatweb_dict) data = {"info":whatweb_dict} return requests.post("http://whatweb.bugscaner.com/api.go",files=data) if __name__ == '__main__': request = whatweb("https://aliyun.bugscaner.com") print(u"今日识别剩余次数") print(request.headers["X-RateLimit-Remaining"]) print(u"识别结果") print(request.json())
在线cms指纹识别工具,仅是针对站长设计出来的一款工具,对于想要模仿或者学习网站开发的站长,可以快速帮助站长识别出所采用的cms建站系统
请勿用于非法用途,否则后果自负,与本人无关