CMSmap 是一个 Python 开源 CMS 扫描器,能够自动化检测主流内容管理系统(CMS)的安全漏洞。其核心目标是将不同 CMS 类型的常见漏洞整合到单一工具中。
目前,CMSmap 支持的 CMS 包括 WordPress、Joomla、Drupal 和 Moodle。
请注意,该项目尚处于早期阶段。因此,您可能会遇到错误、缺陷或功能异常。 请自行承担使用风险!
您可以通过克隆 GitHub 仓库来下载最新版本的 CMSmap:
git clone https://github.com/Dionach/CMSmap
然后需要在 cmsmap.conf 中配置 edbtype 和 edbpath 设置。如果您有 Exploit-db 的本地 Git 仓库,请使用 GIT:
[exploitdb]
edbtype = GIT
edbpath = /opt/exploitdb/
或者,如果您已安装 debian 的 exploitdb 软件包,请使用 APT。对于 Kali 系统,请使用以下设置:
[exploitdb]
edbtype = APT
edbpath = /usr/share/exploitdb/
如果您希望从系统的任何位置运行 cmsmap,可以使用 pip3 进行安装:
cd CMSmap
pip3 install .
要卸载它:
pip3 uninstall cmsmap -y
usage: cmsmap [-f W/J/D] [-F] [-t] [-a] [-H] [-i] [-o] [-E] [-d] [-u] [-p]
[-x] [-k] [-w] [-v] [-h] [-D] [-U W/J/D]
[target]
CMSmap tool v1.0 - Simple CMS Scanner
Author: Mike Manzotti
Scan:
target target URL (e.g. 'https://example.com:8080/')
-f W/J/D, --force W/J/D
force scan (W)ordpress, (J)oomla or (D)rupal
-F, --fullscan full scan using large plugin lists. False positives and slow!
-t , --threads number of threads (Default 5)
-a , --agent set custom user-agent
-H , --header add custom header (e.g. 'Authorization: Basic ABCD...')
-i , --input scan multiple targets listed in a given file
-o , --output save output in a file
-E, --noedb enumerate plugins without searching exploits
-c, --nocleanurls disable clean urls for Drupal only
-s, --nosslcheck don't validate the server's certificate
-d, --dictattack run low intense dictionary attack during scanning (5 attempts per user)
Brute-Force:
-u , --usr username or username file
-p , --psw password or password file
-x, --noxmlrpc brute forcing WordPress without XML-RPC
Post Exploitation:
-k , --crack password hashes file (Require hashcat installed. For WordPress and Joomla only)
-w , --wordlist wordlist file
Others:
-v, --verbose verbose mode (Default false)
-h, --help show this help message and exit
-D, --default rum CMSmap with default options
-U, --update use (C)MSmap, (P)lugins or (PC) for both
Examples:
cmsmap.py https://example.com
cmsmap.py https://example.com -f W -F --noedb -d
cmsmap.py https://example.com -i targets.txt -o output.txt
cmsmap.py https://example.com -u admin -p passwords.txt
cmsmap.py -k hashes.txt -w passwords.txt
如果您想为 CMSmap 做出贡献,请务必查看贡献指南。
在未获得双方事先同意的情况下使用 CMSmap 攻击目标是非法的。最终用户有责任遵守所有适用的地方、州和联邦法律。开发者不承担任何责任,也不对因使用本程序而导致的任何滥用或损害负责。