识别网站上使用的技术
webtech的Python项目详细描述
网络技术
识别网站上使用的技术。More info on the release's blogpost。
cli安装
WebTech在PIP上可用:
pip install webtech
也可以通过setup.py:
python setup.py install --user
BURP集成
下载Jython2.7.0独立版并将其安装到BURP中。
在“extender”>;“options”>;“python environment”中:
- 选择Jython jar位置
最后,在“extender”>;“extension”中:
- 单击“添加”
- 选择“py”或“python”作为扩展格式
- 选择此文件夹中的
Burp-WebTech.py
文件
用法
扫描网站:
$ webtech -u https://example.com/
Target URL: https://example.com
...
$ webtech -u file://response.txt
Target URL:
...
完全使用:
$ webtech -h
Usage: webtech [options]
Options:
-h, --help show this help message and exit
-u URLS, --urls=URLS url(s) to scan
--ul=URLS_FILE, --urls-file=URLS_FILE
url(s) list file to scan
--ua=USER_AGENT, --user-agent=USER_AGENT
use this user agent
--rua, --random-user-agent
use a random user agent
--db=DB_FILE, --database-file=DB_FILE
custom database file
--oj, --json output json-encoded report
--og, --grep output grepable report
--udb, --update-db force update of remote db files
将WebTech用作库
import webtech
# you can use options, same as from the command line
wt = webtech.WebTech(options={'json': True})
# scan a single website
try:
report = wt.start_from_url('https://shielder.it')
print(report)
except webtech.utils.ConnectionException:
print("Connection error")
有关更多示例,请参见webtech_example.py
。
用于数据库匹配的资源
http头信息-http://netinfo.link/http/headers.html
cookie名称-https://webcookies.org/top-cookie-names