wpbf 是一个暴力破解工具,用于远程测试 WordPress 站点的密码强度、用户名枚举和插件检测。
描述 ^^^^^^^^^^^
该脚本将尝试通过登录表单,使用枚举出的用户名、字典以及博客内容中的相关关键词组合登录 WordPress 管理后台。 如果指定了单个用户名,脚本将不再搜索其他用户名。
当用户名/密码匹配时,登录信息会被记录并显示在标准输出中。
为了更快获得结果,你可以生成多个线程,但请小心不要使网站过载或导致 DoS。默认 设置可以在 "config.py" 和 "logging.conf" 文件中更改。
字典文件必须每行一个条目,为测试目的提供了一个小型字典(wordlist.txt)和插件列表(plugins.txt)。
免责声明 ^^^^^^^^^
本软件仅用于教育和测试目的:请在你自己的网站或 获得所有者许可的网站上使用。对于人们决定使用本软件所采取的行动,我不承担任何责任。 如果有人使用本软件做出违反法律的事情,我同样不承担责任。请 保持善意,不要做任何有害的事情。
功能 ^^^^^^^^
要求 ^^^^^^^^^^^^
已知问题 ^^^^^^^^^^^^
用法 ^^^^^
wpbf.py [-h] [-w WORDLIST] [-u USERNAME] [-s SCRIPTPATH] [-t THREADS] [-p PROXY] [-nk] [-eu] url
positional arguments:
url base URL where WordPress is installed (ex: http://www.myblog.com/)
optional arguments:
-w WORDLIST, --wordlist WORDLIST Worldlist file (default: wordlist.txt)
-u USERNAME, --username USERNAME Username (default: enumerate users)
-s SCRIPTPATH, --scriptpath SCRIPTPATH Relative path to the login form (default: wp-login.php)
-t THREADS, --threads THREADS How many threads the script will spawn (default: 5)
-p PROXY, --proxy PROXY HTTP proxy (ex: http://localhost:8008/)
-eu, --enumerateusers Only enumerate users
-eut, --enumeratetolerance ENUMERATETOLERANCE User ID gap tolerance to use in username enumeration
-nk, --nokeywords Skip search for keywords in content for the wordlist
-nf, --nofingerprint Skip WordPress fingerprint (version/full path)
-nps, --nopluginscan Skip plugins bruteforce, discovery and fingerprint
-ds, --dontstop Don't stop when password is found, continue with all pending tasks
--test Run python doctests (you can use a dummy URL here)
如需扩展帮助,请运行 "./wpbf.py -h"。
示例 ^^^^^^^^
基本 +++++
它将使用默认设置(你可以在 config.py 文件中更改默认设置)::
$ ./wpbf.py http://www.mysite.com/blog/
自定义 ++++++
使用用户名 'john',不使用字典中的关键词,并通过本地代理访问::
$ ./wpbf.py --nokeywords -u john -p http://localhost:8008/ http://www.mysite.com/blog/
激进 +++++++++
它将使用默认设置并生成 23 个线程::
$ ./wpbf.py -t 23 http://www.mysite.com/blog/
用户名枚举 ++++++++++++++++++++ 仅执行用户枚举::
$ ./wpbf.py -eu http://www.mysite.com/blog/
输出示例 +++++++++++++ 或者脚本在正常运行时的表现::
$ ./wpbf.py http://localhost/wordpress/
2011-06-18 19:11:41,461 - wpbf - INFO - Target URL: http://localhost/wordpress/wp-login.php
2011-06-18 19:11:41,463 - wpbf - INFO - Checking URL & username...
2011-06-18 19:11:45,073 - wpbf - INFO - Bruteforcing...
3 words left
2011-06-18 19:11:55,147 - wpbf - INFO - Done.
2011-06-18 19:11:56,641 - wpbf - INFO - Password 'qawsed' found for username 'admin' on http://localhost/wordpress/wp-login.php
作者 ^^^^^^