WPSeku：一个找出 WordPress 安全问题的漏洞扫描器
WordPress 安全 漏洞
WordPress 是一个免费开源、可高度自定义的内容管理系统（CMS），它被全世界数以百万计的人来运行博客和完整的网站。因为它是被用的最多的 CMS，因此有许多潜在的 WordPress 安全问题/漏洞需要考虑。


![](/data/attachment/album/201705/28/180520mbwtthjwl27bjsqs.jpg)


然而，如果我们遵循通常的 WordPress 最佳实践，这些安全问题可以避免。在本篇中，我们会向你展示如何使用 WPSeku，一个 Linux 中的 WordPress 漏洞扫描器，它可以被用来找出你安装的 WordPress 的安全漏洞，并阻止潜在的威胁。


WPSeku 是一个用 Python 写的简单的 WordPress 漏洞扫描器，它可以被用来扫描本地以及远程安装的 WordPress 来找出安全问题。


### 如何安装 WPSeku - Linux 中的 WordPress 漏洞扫描器


要在 Linux 中安装 WPSeku，你需要如下从 Github clone 最新版本的 WPSeku。



```
$ cd ~
$ git clone https://github.com/m4ll0k/WPSeku

```

完成之后，进入 WPSeku 目录，并如下运行。



```
$ cd WPSeku

```

使用 `-u` 选项指定 WordPress 的安装 URL，如下运行 WPSeku：



```
$ ./wpseku.py -u http://yourdomain.com 

```

![WordPress Vulnerability Scanner](/data/attachment/album/201705/28/180533kpkq5r00qu4x7r2y.png)


*WordPress 漏洞扫描器*


以下命令使用 `-p` 选项搜索 WordPress 插件中的跨站脚本（`x`）、本地文件夹嵌入（`l`）和 SQL 注入（`s`）漏洞，你需要在 URL 中指定插件的位置：



```
$ ./wpseku.py -u http://yourdomain.com/wp-content/plugins/wp/wp.php?id= -p [x,l,s]

```

以下命令将使用 `-b` 选项通过 XML-RPC 执行暴力密码登录。另外，你可以使用 `--user` 和 `--wordlist` 选项分别设置用户名和单词列表，如下所示。



```
$ ./wpseku.py -u http://yourdomian.com --user username --wordlist wordlist.txt -b [l,x]   

```

要浏览所有 WPSeku 使用选项，输入：



```
$ ./wpseku.py --help

```

![WPSeku WordPress Vulnerability Scanner Help](/data/attachment/album/201705/28/180533stuftpop1u4duzt1.png)


*WPSeku WordPress 漏洞扫描帮助*


WPSeku Github 仓库：<https://github.com/m4ll0k/WPSeku>


就是这样了！在本篇中，我们向你展示了如何在 Linux 中获取并使用 WPSeku 用于 WordPress 漏洞扫描。WordPress 是安全的，但需要我们遵循 WordPress 安全最佳实践才行。你有要分享的想法么？如果有，请在评论区留言。




---


作者简介：


Aaron Kili 是一个 Linux 及 F.O.S.S 热衷者，即将成为 Linux 系统管理员、web 开发者，目前是 TecMint 的内容创作者，他喜欢用电脑工作，并坚信分享知识。




---


via: <https://www.tecmint.com/wpseku-wordpress-vulnerability-security-scanner/>


作者：[Aaron Kili](https://www.tecmint.com/author/aaronkili/) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
WordPress is a free and open-source, highly customizable content management system (CMS) that is being used by millions around the world to run blogs and fully functional websites. Because it is the most used CMS out there, there are so many potential WordPress security issues/vulnerabilities to be concerned about.

However, these security issues can be dealt with, if we follow common WordPress security best practices. In this article, we will show you how to use **WPSeku**, a WordPress vulnerability scanner in Linux, that can be used to find security holes in your WordPress installation and block potential threats.

**WPSeku** is a simple WordPress vulnerability scanner written using Python, it can be used to scan local and remote WordPress installations to find security issues.

### How to Install WPSeku – WordPress Vulnerability Scanner in Linux

To install **WPSeku** in Linux, you need to clone the most recent version of **WPSeku** from its Github repository as shown.

$ cd ~ $ git clone https://github.com/m4ll0k/WPSeku

Once you have obtained it, move into the **WPSeku** directory and run it as follows.

$ cd WPSeku

Now run the **WPSeku** using the `-u`

option to specify your WordPress installation URL like this.

$ ./wpseku.py -u http://yourdomain.com

![WordPress Vulnerability Scanner](https://www.tecmint.com/wp-content/uploads/2017/05/WordPress-Vulnerability-Scanner.png)

The command below will search for cross site scripting, local file inclusion, and SQL injection vulnerabilities in your WordPress plugins using the `-p`

option, you need to specify the location of plugins in the URL:

$ ./wpseku.py -u http://yourdomain.com/wp-content/plugins/wp/wp.php?id= -p [x,l,s]

The following command will execute a brute force password login and password login via XML-RPC using the option `-b`

. Also, you can set a username and wordlist using the `--user`

and `--wordlist`

options respectively as shown below.

$ ./wpseku.py -u http://yourdomian.com --user username --wordlist wordlist.txt -b [l,x]

To view all WPSeku usage options, type.

$ ./wpseku.py --help

![WPSeku WordPress Vulnerability Scanner Help](https://www.tecmint.com/wp-content/uploads/2017/05/WPSeku-WordPress-Vulnerability-Scanner-Help.png)

WPSeku Github repository: [https://github.com/m4ll0k/WPSeku](https://github.com/m4ll0k/WPSeku)

That’s it! In this article, we showed you how to get and use WPSeku for WordPress vulnerability scanning in Linux. WordPress is secure but only if we follow WordPress security best practices. Do you have any thoughts to share? If yes, then use the comment section below.

thanks for this wonderful article, very helpful.

Reply@Malid

Welcome, we are glad that your found it useful. Thanks for the feedback.

Reply]+[ Searching sql vulns…

ReplyTraceback (most recent call last):

File “./wpseku.py”, line 805, in

main.WPSekuMain()

File “./wpseku.py”, line 776, in WPSekuMain

WPAttack(self.url,self.path,self.query,self.headers).sqlattack()

File “./wpseku.py”, line 553, in sqlattack

params = dict([part.split(‘=’) for part in u.query.split(‘&’)])

ValueError: dictionary update sequence element #0 has length 1; 2 is required

@Bruce

Did you specify a valid URL? For example:


Reply./wpseku -u https://bruceferrel.comAnd for the -p option, you need to specify the location of plugins in the URL as shown in the article.

I think you should have blurred few more lines…

Reply@jsda

Sure, but for demonstration purposes, we only blurred the domain name(for security reasons).

Reply