Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
wphardening — 增强任何WordPress安装的安全性。 | Kitploit
工具/GitHubGitHub/elcodigok/wphardening
防御工具漏洞扫描器配置审计Web安全错误配置
GitHubelcodigok/wphardening

wphardening

增强任何WordPress安装的安全性。

查看仓库
160309年前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
网站

WPHardening Build Status Coverage Status

WPHardening

强化任何 WordPress 安装的安全性。

❮ 注意 ❯ 此工具会定期发布新版本。请确保经常更新依赖关系以获取最新版本。查看更新日志或 CHANGELOG.md 了解新功能。


安装

安装 WPHardening 需要执行一条控制台命令:

root@kitploit:~
$ pip install -r requirements.txt

用法

root@kitploit:~
$ python wphardening.py -h 

 __          _______  _    _               _            _
 \ \        / /  __ \| |  | |             | |          (_)
  \ \  /\  / /| |__) | |__| | __ _ _ __ __| | ___ _ __  _ _ __   __ _
   \ \/  \/ / |  ___/|  __  |/ _` | '__/ _` |/ _ \ '_ \| | '_ \ / _` |
    \  /\  /  | |    | |  | | (_| | | | (_| |  __/ | | | | | | | (_| |
     \/  \/   |_|    |_|  |_|\__,_|_|  \__,_|\___|_| |_|_|_| |_|\__, |
                                                                 __/ |
        Fortify the security of any WordPress installation.     |___/

     Caceria de Spammers - http://www.caceriadespammers.com.ar

Usage: python wphardening.py [options]

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -v, --verbose         Active verbose mode output results
  --update              Check for WPHardening latest stable version

  Target:
    This option must be specified to modify the package WordPress.

    -d DIRECTORY, --dir=DIRECTORY
                        **REQUIRED** - Working Directory.
    --load-conf=FILE    Load file configuration.

  Hardening:
    Different tools to hardening WordPress.

    -c, --chmod         Chmod 755 in directory and 644 in files.
    -r, --remove        Remove files and directory.
    -b, --robots        Create file robots.txt
    -f, --fingerprinting
                        Deleted fingerprinting WordPress.
    -t, --timthumb      Find the library TimThumb.
    --chown=user:group  Changing file and directory owner.
    --wp-config         Wizard generated wp-config.php
    --plugins           Download Plugins Security.
    --proxy=PROXY       Use a HTTP proxy to connect to the target url for
                        --plugins and --wp-config.
    --indexes           It deny you to display the contents of directories.
    --minify            Compressing static file .css and .js
    --malware-scan      Malware Scan in WordPress project.
    --6g-firewall       6G Firewall.
    --rest-api          Disable REST API.

  Miscellaneous:
    -o FILE, --output=FILE
                        Write log report to FILE.log

示例

检查 WordPress 项目

使用工具前,我们必须确保工作目录是 WordPress。

root@kitploit:~
$ python wphardening.py -d /home/path/to/wordpress -v

更改权限

此选项用于为文件和目录设置正确的权限。

root@kitploit:~
$ python wphardening.py -d /home/path/to/wordpress --chmod -v

移除未使用的文件

加固任何系统的一部分是移除不需要的文件、目录或组件。

root@kitploit:~
$ python wphardening.py -d /home/path/to/wordpress --remove -v

创建你的 robots.txt 文件

WordPress 默认不包含 robots.txt 文件,通过此选项我们可以自定义我们的 robots.txt。

root@kitploit:~
$ python wphardening.py -d /home/path/to/wordpress --robots -v

更多信息请参考 robots.txt

移除所有指纹和版本信息

root@kitploit:~
$ python wphardening.py -d /home/path/to/wordpress --fingerprinting -v

检查 TimThumb 库

root@kitploit:~
$ python wphardening.py -d /home/path/to/wordpress --timthumb -v

创建索引文件

创建此文件是为了避免在目录中浏览。

root@kitploit:~
$ python wphardening.py -d /home/path/to/wordpress --indexes -v

下载安全插件

以下是常用安全插件的列表,可以自动下载:

  • AntiVirus
  • Bad Behavior
  • Block Bad Queries
  • Exploit Scanner
  • Latch
  • NinjaFirewall
  • Simple History
  • Stream
  • WP Security Scan
  • WP-DBManager
  • WPS Hide Login
root@kitploit:~
$ python wphardening.py -d /home/path/to/wordpress --plugins

向导生成 wp-config.php

此命令会自动创建一个名为 wp-config-wphardening.php 的文件,之后可以重命名。

root@kitploit:~
$ python wphardening.py -d /home/path/to/wordpress --wp-config

6G 防火墙

root@kitploit:~
$ python wphardening.py -d /home/path/to/wordpress --6g-firewall

禁用 REST API

root@kitploit:~
$ python wphardening.py -d /home/path/to/wordpress --rest-api

WPHardening 更新

通过此选项,您可以随时拥有 WPHardening 的最新版本。

root@kitploit:~
$ python wphardening.py --update

使用所有选项

root@kitploit:~
$ python wphardening.py -d /home/path/to/wordpress -c -r -f -t --wp-config --indexes --plugins --6g-firewall --rest-api -o /home/user/wphardening.log

项目主页

www.caceriadespammers.com.ar

Git 仓库

https://github.com/elcodigok/wphardening

问题反馈

https://github.com/elcodigok/wphardening/issues

下载工具